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

RE: list of homogeneus elements semantically different

Subject: RE: list of homogeneus elements semantically different...
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Fri, 1 Apr 2005 14:33:01 +0100
homogeneus
It's the same as the problem of arranging items in a two-column table, which
is well covered in the FAQ. The key is that "position() mod 2" is zero for
even-numbered elements.

Michael Kay
http://www.saxonica.com/
 

> -----Original Message-----
> From: dalloro@xxxxxxxxx [mailto:dalloro@xxxxxxxxx] 
> Sent: 01 April 2005 13:57
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  list of homogeneus elements semantically different...
> 
> Hi,
> 
> How can I translate a structure like the following:
> 
>   <m t="6">
>     <m t="0" e="2000"/>
>     <m t="0" e="141"/>
>     <m t="0" e="3000"/>
>     <m t="0" e="143"/>
>     <m t="0" e="6000"/>
>     <m t="0" e="142"/>
>     <m t="0" e="7000"/>
>     <m t="0" e="145"/>
>     <m t="0" e="11000"/>
>     <m t="0" e="185"/>
>     <m t="0" e="28000"/>
>     <m t="0" e="140"/>
>   </m>
> 
> into a structure like this:
> 
> <A a="2000" b="141" />
> <A a="3000" b="143" />
> <A a="6000" b="142" />
> <A a="7000" b="145" />
> <A a="11000" b="185" />
> <A a="28000" b="140" />
> 
> I don't know how to distinguish among the first and the second element
> "m" in the list...Any ideas?
> 
> Best regards.
> 
> Livio

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.