|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Indexing in xsl
Hi,
I wanted to know how (if) we can do indexing on a element name
I have a input xml:
<orders>
<order id="1">
<order id="2">
<order id="3">
<order id="4">
.
<orders>
which has to be converted to
<orders order1-id="1" order2-id="2" order2-id="3" order2-id="4" />
Is this right?
<xsl:attribute name="{concat(local-name(), 'var', '-','id')}">
<xsl:value-of select="@id"/>
</xsl:attribute>
How do I change the val of 'var'
Any pointers on this?
Thanks,
~Bharathy
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








