Subject: [xsl] Recursive Replacement of the Escapes From: Senthilkumaravelan Krishnanatham <senthil@xxxxxxxxx> Date: Tue, 14 Nov 2006 09:21:10 -0800 |
Hi All, I have difficulty in recursive replacement of escapes.
<ORDER_FEED> <ORDER> <ORDER_HEADER> <BUYERS_NAME>Senthil</BUYERS_NAME> <WEB_ORDER_NUMBER>W12345<WEB_ORDER_NUMBER> </ORDER_HEADER> <!--Line Items--> </ORDER> </ORDER_FEED> </broadcast>
<xsl:template match="/broadcast"> <html> <xsl:apply-templates select="content_vars/content" /> </html> </xsl:template>
<xsl:template match="content"> <xsl:variable name="temp1" select="translate(., '[]', '')" /> <xsl:variable name="temp2" select="//*[not(*)][contains($temp1, local-name())]" /> <xsl:variable name="temp3" select="local-name(//*[not(*)][contains($temp1, local-name())])" /> <p> <xsl:value-of select="substring-before($temp1, $temp3)" /><xsl:value-of select="$temp2" /><xsl:value-of select="substring-after($temp1, $temp3)" /> </p> </xsl:template>
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Recursive Replacement of the , Senthilkumaravelan K | Thread | [xsl] Reading from and writing to t, Steven Grossman |
RE: [xsl] Getting unique items from, Michael Kay | Date | [xsl] Reading from and writing to t, Steven Grossman |
Month |