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(_at_)lists(_dot_)mulberrytech(_dot_)com
[mailto:owner-xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com] On Behalf Of
Tobias Reif
Sent: segunda-feira, 13 de Janeiro de 2003 16:38
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
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