Subject: [xsl] Handling Non Well conformed HTML content From: Senthilkumaravelan Krishnanatham <senthil@xxxxxxxxx> Date: Mon, 2 Oct 2006 18:45:46 -0700 |
<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"> <xsl:apply-templates select="content_vars/content" />
<xsl:variable name="temp1" select="translate(., '[]', '')" /> <xsl:variable name="temp2"
select="normalize-space(../following-sibling::*[contains($temp1, local-name())])" /> <xsl:variable name="temp3" select="local-name(../following-sibling::*[contains($temp1, local-name())])" /> <xsl:value-of select="substring-before($temp1, $temp3)" /><xsl:value-of select="$temp2" /><xsl:value-of select="substring-after($temp1, $temp3)" /> </xsl:template>
Expected output <html> Hello Senthil REF Order W12345 </html>
Thank, Senthil --~--
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] saxon:output doctype inhe, Michael Kay | Thread | RE: [xsl] Handling Non Well conform, Michael Kay |
Re: [xsl] For-each-group problem, Mario Madunic | Date | [xsl] new increment question, Jonathan Marenus |
Month |