[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Why aren't rules matched with "*"?

Subject: RE: Why aren't rules matched with "*"?
From: "Darrin Bishop" <dbishop@xxxxxxxxxxxxxxxxx>
Date: Fri, 21 Jul 2000 12:06:01 -0500
RE: Why aren't rules matched with "*"?
I spent some time looking over the original source and transformation that
started this thread.  By looking at the XML, the issue for why '*' did not
work became apparent.  * returns true for the default element for the
current axis, the current axis was an element, there for it found elements.
What was not stated was off the current context element there were children
text nodes. * was not returning true since they were not element nodes.  By
using node() instead of *, all the child nodes were processed.

-----Original Message-----
From: owner-xsl-list@xxxxxxxxxxxxxxxx
[mailto:owner-xsl-list@xxxxxxxxxxxxxxxx]On Behalf Of Kay Michael
Sent: Friday, July 21, 2000 7:56 AM
To: 'xsl-list@xxxxxxxxxxxxxxxx'
Subject: RE: Why aren't rules matched with "*"?


> child::* means, essentially:
>
>   from among all the nodes along the child axis,
>   just the ones that are elements with any name,
>   in no namespace.

No, it means "with any name, in any namespace". If you want only those
elements whose name has a null namespace URI, I think the only way to get
them is

child::*[namespace-uri()=""]

Mike Kay


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


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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.