newbie concat loop question
Posted: Tue Dec 07, 2010 6:01 pm
I have area text that can be contained in one or many records.
I can select and print the text with the code below, however, what I would like to do is concatenate the text into one long string that will wrap in the width provided. Can anyone help me with this?
Also, does anyone have a book or online class they recommend for learning XPath and XSLT?
Current code snippet:
<xsl:template match="AREA/SMRACMT_ROWSET/SMRACMT_SET">
<fo:block font-size="8">
<xsl:for-each select="SMRACMT_TEXT" />
<xsl:value-of select="."/>
</fo:block>
</xsl:template>
Output:
* COMPASS or ACT test scores that place applicant into
MTH 121 or higher, or completion of Intermediate
Algebra (MTH 111) with a minimum grade of 2.0.
Test scores and course work needs to be within the last 5
years.
Desired Output:
* COMPASS or ACT test scores that place applicant into MTH 121 or higher, or completion of Intermediate Algebra (MTH 111) with a minimum grade of 2.0. Test scores and course work needs to be within the last 5
years.
Thanks!
I can select and print the text with the code below, however, what I would like to do is concatenate the text into one long string that will wrap in the width provided. Can anyone help me with this?
Also, does anyone have a book or online class they recommend for learning XPath and XSLT?
Current code snippet:
<xsl:template match="AREA/SMRACMT_ROWSET/SMRACMT_SET">
<fo:block font-size="8">
<xsl:for-each select="SMRACMT_TEXT" />
<xsl:value-of select="."/>
</fo:block>
</xsl:template>
Output:
* COMPASS or ACT test scores that place applicant into
MTH 121 or higher, or completion of Intermediate
Algebra (MTH 111) with a minimum grade of 2.0.
Test scores and course work needs to be within the last 5
years.
Desired Output:
* COMPASS or ACT test scores that place applicant into MTH 121 or higher, or completion of Intermediate Algebra (MTH 111) with a minimum grade of 2.0. Test scores and course work needs to be within the last 5
years.
Thanks!