Posted by
HankRatz on
Jan 22, 2010; 4:45pm
URL: https://discuss.orbeon.com/need-example-of-recursive-xpath-tp1099971p1100789.html
Jeremiah,
I'm not sure what that would look like, as XPath's intent was more to
find specific targets in the document.
If you can pass the document through XSLT, then you can indeed recurse
with templates to ... shred ... the document down to each element.
To traverse either attributes or nodes:
<xsl:apply-templates select="@* | node()"/>
Cheers,
Hank
On Jan 22, 2010, at 3:52 AM, Jeremiah Jahn wrote:
> Does anyone have an example of a recursive xpath expression? ie. an xpath that can be used in a repeat to walk an entire tree of unknown depth?
>
>
>
> --
> You receive this message as a subscriber of the
[hidden email] mailing list.
> To unsubscribe: mailto:
[hidden email]
> For general help: mailto:
[hidden email]?subject=help
> OW2 mailing lists service home page:
http://www.ow2.org/wwsHank Ratzesberger
NEES@UCSB
Institute for Crustal Studies,
University of California, Santa Barbara
805-893-8042
--
You receive this message as a subscriber of the
[hidden email] mailing list.
To unsubscribe: mailto:
[hidden email]
For general help: mailto:
[hidden email]?subject=help
OW2 mailing lists service home page:
http://www.ow2.org/wws