[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: incrementing the index value

Subject: Re: incrementing the index value
From: Arulraj <p_arulraj@xxxxxxxxx>
Date: Thu, 9 Jun 2005 07:32:43 -0700 (PDT)
tabindex in xslt
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 

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.