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

RE: [XPath] matching elements which satisfy a specific

Subject: RE: [XPath] matching elements which satisfy a specific content model
From: Américo Albuquerque <aalbuquerque@xxxxxxxxxxxxxxxx>
Date: Mon, 13 Jan 2003 17:00:58 -0000
xpath namespace aware
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


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.