[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: [xml] `id` function for XPath
- From: Daniel Veillard <veillard redhat com>
- To: Daniel Albeseder <daniel albeseder tttech com>
- Cc: xml gnome org
- Subject: Re: [xml] `id` function for XPath
- Date: Mon, 27 Jul 2009 13:36:46 +0200
On Mon, Jul 27, 2009 at 01:08:00PM +0200, Daniel Albeseder wrote:
> Hi!
>
> As I could determine from the archive, the `id` function of XPath only
> works with the xml:id attribute and the attributes declared as ID inside
> the DTD. However attributes of the type xs:ID inside an XML schema does
> not work.
yes,
> This sounds strange, since XML schema is a superset of DTD.
Ah, that's brand new to me, care to provide a normative proof of this ?
More seriously, no XSD is not an extension of DTD it's a completely
separate validation step, not part of parsing.
> Is there are reason, why XML schema does not work with `id`?
Depends on your application. But basic XPath does not require or
depend on validation, just loading of DTDs to get attribute type. That's
not generally doable with XSD,
Daniel
--
Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/
daniel veillard com | Rpmfind RPM search engine http://rpmfind.net/
http://veillard.com/ | virtualization library http://libvirt.org/
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]