|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: incrementing the index value
Hello David,
Thanks for the solution. Its is working.
<xsl:apply-templates select=".//Box/*[@id]">
<xsl:sort
select="substring-before($order,name())"/>
</xsl:apply-templates>
but here i dont want to sort.
So, I removed this <xsl:sort> and solution is perfect.
Once again thanks for the solution.
Regards,
Arul
--- David Carlisle <davidc@xxxxxxxxx> wrote:
>
> <xsl:stylesheet version="1.0"
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
> <xsl:output method="xml" indent="yes" version="1.0"
> />
>
> <xsl:variable name="order" select="' textbox radio
> '"/>
>
> <xsl:template match="Layout">
> <taborder>
> <fieldlist>
> <xsl:apply-templates select=".//Box/*[@id]">
> <xsl:sort
> select="substring-before($order,name())"/>
> </xsl:apply-templates>
> </fieldlist>
> </taborder>
> </xsl:template>
>
> <xsl:template match="Box/*">
> <field name="{@id}" tabindex="{position()}"/>
> </xsl:template>
>
> </xsl:stylesheet>
>
>
>
> $ saxon box.xml box.xsl
> <?xml version="1.0" encoding="utf-8"?>
> <taborder>
> <fieldlist>
> <field name="textbox" tabindex="1"/>
> <field name="textbox1" tabindex="2"/>
> <field name="TextBox2" tabindex="3"/>
> <field name="TextBox3" tabindex="4"/>
> <field name="radio" tabindex="5"/>
> </fieldlist>
> </taborder>
>
>
________________________________________________________________________
> This e-mail has been scanned for all viruses by
> Star. The
> service is powered by MessageLabs. For more
> information on a proactive
> anti-virus service working around the clock, around
> the globe, visit:
> http://www.star.net.uk
>
________________________________________________________________________
>
>
__________________________________
Discover Yahoo!
Find restaurants, movies, travel and more fun for the weekend. Check it out!
http://discover.yahoo.com/weekend.html
|
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








