Hi,
I'm new at this and I appreciate any help you can give.
Example XML
Code:
<CATALOG>
<CD>
<TYPE>45 rpm</TYPE>
<TITLE>Empire Burlesque</TITLE>
<PRICE>10.90</PRICE>
</CD>
<CD>
<TYPE>75 rpm</TYPE>
<TITLE>Hide your heart</TITLE>
<PRICE>9.90</PRICE>
</CD>
<CD>
<TYPE>45 rpm</TYPE>
<TITLE>Greatest Hits</TITLE>
<PRICE>9.90</PRICE>
</CD>
<CD>
<TYPE>75 rpm</TYPE>
<TITLE>Still got the blues</TITLE>
<PRICE>10.20</PRICE>
</CD>
</CATALOG>
I have an XSLT for-each for each CD.
How do I get it to stop once it finds a 45 rpm.
The first time I want it to find the first 45 rpm, but the next time I want it to find the second, or third.
OUTPUT IS LIKE THIS KIND OF
Page 1
Blah Blah Blah
Blah Blha etc.
Price $10.90
Page 2
Blah Blah Blah
Blah Blha etc.
Price $9.90
I'm doing something like this but it always brings back both prices for the 45 rpm
Code:
<xsl:for-each select="/CATALOG/CD"/>
<xsl:if test="type='45 rpm'"/>
do some stuff here
</xsl:if>
</xsl:for-each>
I know there is no BREAK an no LOOPS or VARIABLES, but I want it to break.
Any assistance is going to really help.
Thanks,
Mike