V
Venkat
Hi There,
Can you please help me with this XSLT ? I am trying to extract
erp,catalog and description,price from the following xml , each record
in a single row.
Sample XSL which I am trying to use
=====================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:java="http://xml.apache.org/xslt/java"
exclude-result-prefixes="java"
version="1.0">
<xslutput method="text"/>
<xsl:template match="//group">
<xsl:for-each select="product">
<xsl:value-of select="price"/>
<xsl:value-of select="description"/>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>
Sample XML
========
<group>
<product erp="111-V1111" catalog="X43343IHG">
<description> Test Description 1</description>
<price>250.00</price>
</product>
<product erp="222-V2222" catalog="X433333N">
<description>Test Description 2</description>
<price>200.00</price>
</product>
<product erp="333-V3332" catalog="X43534347B">
<description>Test Description 3</description>
<price>200.00</price>
</product>
</group>
Thanks in advance.
Venkat
Can you please help me with this XSLT ? I am trying to extract
erp,catalog and description,price from the following xml , each record
in a single row.
Sample XSL which I am trying to use
=====================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:java="http://xml.apache.org/xslt/java"
exclude-result-prefixes="java"
version="1.0">
<xslutput method="text"/>
<xsl:template match="//group">
<xsl:for-each select="product">
<xsl:value-of select="price"/>
<xsl:value-of select="description"/>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>
Sample XML
========
<group>
<product erp="111-V1111" catalog="X43343IHG">
<description> Test Description 1</description>
<price>250.00</price>
</product>
<product erp="222-V2222" catalog="X433333N">
<description>Test Description 2</description>
<price>200.00</price>
</product>
<product erp="333-V3332" catalog="X43534347B">
<description>Test Description 3</description>
<price>200.00</price>
</product>
</group>
Thanks in advance.
Venkat