Subject: RE: [xsl] [XPath] matching elements which satisfy a specific content model From: Américo Albuquerque <aalbuquerque@xxxxxxxxxxxxxxxx> Date: Mon, 13 Jan 2003 17:00:58 -0000 |
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: [xsl] [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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] [XPath] matching elements, Tobias Reif | Thread | Re: [xsl] [XPath] matching elements, Tobias Reif |
[xsl] Sorting based on a calculated, AWK | Date | Re: [xsl] [XPath] matching elements, Tobias Reif |
Month |