Also you can check this for a more readable version of your xsl:
<?xml version="1.0" encoding="utf-8"?>
<book>
<Item_Code>001</Item_Code>
<Item_Description>Tea</Item_Description>
<Current_Count>10</Current_Count>
<On_Order>20</On_Order>
</book>
XSL
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet xmlns:xsl="http://ift.tt/ore0Pe; version="1.0">
<xsl:template match="book">
<table width="100%">
<TR>
<TD>Item_Code</TD>
<TD>
<xsl:value-of select="Item_Code"/>
</TD>
</TR>
<TR>
<TD>Item_Description</TD>
<TD>
<xsl:value-of select="Item_Description"/>
</TD>
</TR>
<TR>
<TD>Current_Count</TD>
<TD>
<xsl:value-of select="Current_Count"/>
</TD>
</TR>
<TR>
<TD>On_Order</TD>
<TD>
<xsl:value-of select="On_Order"/>
</TD>
</TR>
</table>
</xsl:template>
</xsl:stylesheet>
Useful testing tool:
http://ift.tt/1boT3PS
Fouad Roumieh
No comments:
Post a Comment