[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]
Re: [xml-dev] missing XPath axis
- From: Mukul Gandhi <gandhi.mukul@gmail.com>
- To: "Johannes.Lichtenberger" <Johannes.Lichtenberger@uni-konstanz.de>
- Date: Sat, 24 Sep 2011 21:07:49 +0530
I think it's good to keep number of alternate language syntax (i.e the
built-in language keywords) to minimum, if they achieve the same
purpose. This also helps with following aspects,
1) reduces the construction complexity/effort of the language processor
2) reduces the functional complexity, verbosity and learning curve for
the language
For the case of your proposed syntax 'child-or-self::', I think the
following (already available) XPath expression may also serve the
purpose,
.|node()
On Sat, Sep 24, 2011 at 8:28 PM, Johannes.Lichtenberger
<Johannes.Lichtenberger@uni-konstanz.de> wrote:
> Hello,
>
> I just wandered what was the reason for the authors of the XPath
> recommendations to not include the XPath axis 'child-or-self::' as a
> counterpart to 'descendant-or-self::' in XPath 1.0, 2.0 or at all?
>
> Although I'm not sure if this is the appropriate mailinglist to ask --
> just in case, please point me to the right mailinglist.
>
> I know it's doable via 'expression/(self::node()|node())' but I think
> that's more or less a work around to the lack of the 'child-or-self::' axis.
>
> kind regards,
> Johannes
--
Regards,
Mukul Gandhi
- References:
- missing XPath axis
- From: "Johannes.Lichtenberger" <Johannes.Lichtenberger@uni-konstanz.de>
[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]