[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Need help with tokenize functionality in XSLT 1.0
Nice, a recursive template with a parameter ;-) Cheers Leo > > <xsl:template match="Payment"> > <xsl:param name="details" select="invoiceDetails"/> > <xsl:variable name="car" select="substring-before($details,';')"/> > <xsl:variable name="cdr" select="substring-after($details,';')"/> > <Order> > <OrderNumber><xsl:value-of select="substring-before($car,'#')"/></OrderNumber> > <Ammount><xsl:value-of select="substring-after($car,'#')"/></Ammount> > </Order> > <xsl:if test="contains($cdr,'#')"> > <xsl:apply-templates select="."> > <xsl:with-param name="details" select="$cdr"/> > </xsl:apply-templates> > </xsl:if> > </xsl:template>
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|