Subject: Re: [xsl] Need help with tokenize functionality in XSLT 1.0 From: "Leo Studer leo.studer@xxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Date: Thu, 20 Aug 2020 16:52:12 -0000 |
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>
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Re: Need help with tokeni, Norman Tovey-Walsh n | Thread | Re: [xsl] Need help with tokenize f, Prady Prady prady.ch |
Re: [xsl] Re: Need help with tokeni, Norman Tovey-Walsh n | Date | [xsl] Performance of XSLT in a neur, Roger L Costello cos |
Month |