Subject: Re: [xsl] xpath help? From: "John Lumley john.lumley@xxxxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Date: Thu, 13 Feb 2025 15:27:13 -0000 |
In my early XSLT days (>20 years ago ;-), I found the axis diagrams in Michael Kaybs XPath book to be really helpful, illustrating what the axes meant in terms of tree traversal. If anyone is having trouble with XSLT 2, then his books (https://www.wiley.com/en-se/XSLT+2.0+and+XPath+2.0+Programmer's+Reference%2C +4th+Edition-p-9780470192740) is more than recommended reading. John Lumley john@xxxxxxxxxxxxxx > On 13 Feb 2025, at 15:08, Piez, Wendell A. (Fed) wendell.piez@xxxxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > > Hey Dan, > > > > Actually, you have (used the axes). Often people use XPath without knowing thatbs what they are doing. > > > > Every time you say bdiv/h1b you are saying bchild::div/child::h1b. > > bspan/@classb is short for bchild::span/attribute::classb. Etc. > > Search for bXPath abbreviationsb b for example, I get this page back: > > https://www.stylusstudio.com/docs/v2007/d_xpath95.html > > There is also the XPath 1.0 Recommendation: > > https://www.w3.org/TR/1999/REC-xpath-19991116/#path-abbrev > > > > Cheers, Wendell
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] xpath help?, Piez, Wendell A. (Fe | Thread | Re: [xsl] xpath help?, Michael Kay michaelk |
Re: [xsl] xpath help?, Piez, Wendell A. (Fe | Date | [xsl] Advantages and disadvantages , Roger L Costello cos |
Month |