Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - Re: How to sort sequences by scan code? >Thread Next - Re: How to sort sequences by scan code? Re: How to sort sequences by scan code?To: NULL Date: 10/10/2008 9:45:00 AM > You should just do something like: > <xsl:apply-templates select="//key"> > <xsl:sort select="scan-code" data-type="number" /> > </xsl:apply-templates> > > <xsl:template match="key"> > <!-- create array elements here --> > </xsl:template> > Yes but my input data contains a mixture of individual keys and key sequences. A key sequence (I should have explained this in the initial post but was hoping everyone would infer it from the data I posted) is a series of keys of the same size with consequitive scan codes. So Dimitre and Martin (thanks guys!), in a another post entitled "How to write nested for loop to generate SVG rectangles" graciously showed me how to expand these key sequences into individual keys. Now if I want to (1) expand these key sequences into indivisual keys and (2) sort the resulting individual keys by scan code can I do that in a single XSLT or do I have have a two stage pipleline connected by a temporary file? Thanks! Siegfried | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
