xsl-list
[Top] [All Lists]

Re: how do I select a specific number of nodes from a tree

2003-12-09 04:02:50

Depends on the context node, as this will determine the axis to use (child or following sibling). In general you will use the proper axis along with position tests like

*[position() < 11]


hth,

Manos



Paul Barclay wrote:
I want to express the following as XSL, could anybody help?

"From a given position in a tree select the next 10 children."

the tree might look like:

<root>
        <child .../>
        <child .../>
        <child .../>
        <child .../>
        <child .../>
        <child .../>
        <child .../>
        <child .../>
        <child .../>
        <child .../>
        <child .../>
        <child .../>
        <child .../>
        <child .../>
        


________________________________________________________________________

E-mail is an informal method of communication and may be subject to data 
corruption, interception and unauthorised amendment for which Digital Bridges 
Ltd will accept no liability. Therefore, it will normally be inappropriate to 
rely on information contained on e-mail without obtaining written confirmation.

This e-mail may contain confidential and/or privileged information. If you are 
not the intended recipient (or have received this e-mail in error) please 
notify the sender immediately and destroy this e-mail. Any unauthorized 
copying, disclosure or distribution of the material in this e-mail is strictly 
forbidden.

________________________________________________________________________


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



--
Manos Batsis

    _  __    __                    __
   / |/ /__ / /____ __ _ ___ _____/ /_
  /    / -_) __(_-</  ' Y _ `/ __/ __/
 /_/|_/\__/\__/___/_/_/_|_,_/_/  \__/


http://www.netsmart.gr
mailto:mbatsisSPAM_TRAP(_at_)netsmart(_dot_)gr
tel:+302103240940
http://forte.netsmart.gr/foaf/manos_foaf.rdf




XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



<Prev in Thread] Current Thread [Next in Thread>