This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: how to use // starting from the root, when i am few steps und er the root,
- To: "'xsl-list at mulberrytech dot com'" <xsl-list at mulberrytech dot com>
- Subject: RE: how to use // starting from the root, when i am few steps und er the root,
- From: "Spychalski, Frank" <frank dot spychalski at sap dot com>
- Date: Tue, 22 Aug 2000 22:30:44 +0200
- Reply-To: xsl-list at mulberrytech dot com
->-----Original Message-----
->From: Wendell Piez [mailto:wapiez@mulberrytech.com]
->Subject: RE: how to use // starting from the root, when i am few steps
->und er the root,
Hi,
->At 07:06 PM 8/22/00 +0200, Frank wrote:
...
->It's not more logical to write "///" if you know that "//" is an
->abbreviation of "/descendent-or-self::node()/" (XPath 2.5).
->It is *not*
->"the short version for descendant-or-self": it's more precise
->than that.
ok, I read that part of the XPath Spec again, you are 100% right (I never
really realized that there was a '/' before 'descendant'...
...
->To suggest that it's "more logical" to do it a way that makes no sense
->according to the spec because the "average user" would be
->confused by what
->the spec says, and what the heck, is basically to say that
->it's okay to be
->confused, as long as we can make something up, and in fact we should
->encourage it, and what the spec says simply doesn't matter.
->Do any of us really want to go that way?
ok, I got it wrong, please forgive me, I just flew over the XPath Spec and
that's what first came to my mind when I needed it and it worked, so I never
really thought about it.
->Please don't defend Xalan's bug. My $0.02 (okay $0.03).
->
->Cheers,
->Wendell
bye
Frank
-
Frank Spychalski
Research Engineer
SAP Labs, Palo Alto frank.spychalski@sap.com
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list