Hi Eugene,
You can write XSL like this -
<xsl:template match="items">
<!-- iterate all child nodes -->
<xsl:for-each select="*">
<!--
use <xsl:value-of select="{name()}" />
for getting node name ;
use <xsl:value-of select="." /> ,
for getting node value
-->
</xsl:for-each>
</xsl:template>
This will make the code independent of node names..
Regards,
Mukul
--- jeb501(_at_)sanmargroup(_dot_)com wrote:
Hi All,
Please find below a part of XML file, In this the
node name "Feb04" is
depends on
node value of cdy. (ie node name Feb04 will Jan05 if
cdy's value is
01-01-2005 )
I want to make a table with with headings oano....to
cdy and also
want to include the values of nodes with varying
node name.
can anybody share there ideas of XSL codes.
Thanks
Eugene
<?xml version="1.0" encoding="Windows-1252"
standalone="yes" ?>
- <exblog>
- <items>
<oano>1359/5</oano>
<oasl>2</oasl>
<custpo>P128483</custpo>
<posl>2</posl>
<custcode>X001</custcode>
<code>BF177003</code>
<desc>Desc 2" BODY</desc>
<grade>CF8M</grade>
<bqty>2</bqty>
<npr>40.70</npr>
<cdy>01.02.2004</cdy>
<Feb04>81.40</Feb04>
</items>
</exblog>
**End of snippet..
--~------------------------------------------------------------------
XSL-List info and archive:
http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to:
http://lists.mulberrytech.com/xsl-list/
or e-mail:
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--
__________________________________
Do you Yahoo!?
Yahoo! Mail - 250MB free storage. Do more. Manage less.
http://info.mail.yahoo.com/mail_250
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--