This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Re: RE: Re: XPath riddle


Nikolas,

In terms of XML Schema and XSLT would a use case be useful?

<xsd:schema xmlns:xsd="http://www.we.org/2001/XMLSChema";>
<xsd:element name="list" type="xsd:string"/>
<xsd:complexType name="list">
<xsd:element ref="list" maxOccurs="unbounded"/>
</xsd:complexType>
</xsd:schema>

Given such a schema, the case of lists within lists within lists is
possible.

If I understand correctly, you are looking for an XSLT way of picking out
a specific node for any and all possible source trees [note that XSLT
deals with _nodes_]. You want the first node, the last node, the nth node
from the last? The first, last, or nth sibling of a node? The nth
descendant or ancestor? The specificity of the selection or match you are
seeking to achieve with XSLT depends upon the target tree you are seeking
to construct. 

Francois Lachance


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]