|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: [XPath] matching elements which satisfy a specific
Yes, but all other Xpath functions and patterns are namespace aware. The DTD like argument is not, in your example 'title?, varlistentry+', are these nodes in a default namespace or in a no namespace? For example, wich one of the varlist the content-model() will get? <variablelist> <title></title> <varlistentry></varlistentry> <varlistentry></varlistentry> ... </variablelist> <variablelist xmlns="www.foo.bar"> <title></title> <varlistentry></varlistentry> <varlistentry></varlistentry> ... </variablelist> Will get both?? Just the first variablelist?? You see, in the other xpath functions you bound a prefix to a namespace and use: function(foo:title) The DTD content model doesn't have this If you have: <foo:variablelist xmlns:foo="www.foo.bar"> <foo:title></foo:title> <foo:varlistentry></foo:varlistentry> <foo:varlistentry></foo:varlistentry> ... </foo:variablelist> This and the example with the default namespace are treated as the same by the xpath but are not the same when validated by the dtd The first is: <element variablelist> And the latest is: <element foo:variablelist> -----Original Message----- From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Tobias Reif Sent: segunda-feira, 13 de Janeiro de 2003 16:38 To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: Re: [XPath] matching elements which satisfy a specific content model Américo Albuquerque wrote: > How does your function handle nodes with namespace??? Exactly like all other XPath functions and patterns. Please see all the other posts. Tobi -- Vim users donate. http://iccf-holland.org/donate.html Web developers check. http://www.pinkjuice.com/check/ XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








