Altova Mailing List Archives>Archive Index >xsl-list Archive Home >Recent entries >Thread Prev - >Thread Next - RE: [xsl] select/except based on position() [xsl] select/except based on position()To: xsl-list@-----.------------.--- Date: 10/3/2009 9:31:00 AM I would like to generate a sequence of numbers. @no contains a number. $num the item position not to be included. The following works: select="/items/item/@no except /items/item[$num]/@no" But I would like to base the selection on position(). The following first step of the new solution is also working: select="/items/item[position() != $num]/@no" Now, I would like to drop @no. I only made it up because I couldn't solve my problem without it. @no contains the position of the item! The following is the closed I have been able to get so far, but it doesn't work: select="/items/item[position() != $num]/position()" This is what I want: For an item, return the item positions of the other items. Any hints for how to change the select statement? Cheers, Jesper --~------------------------------------------------------------------ XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/ or e-mail: <mailto:xsl-list-unsubscribe@l...> --~-- | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
