W3C home > Mailing lists > Public > public-xml-id@w3.org > April 2004

XPath 2 without WXS (XSD)

From: Tobias Reif <tobiasreif@pinkjuice.com>
Date: Sun, 18 Apr 2004 10:07:12 +0200
To: public-xml-id@w3.org
Message-ID: <20040418080712.GA3319@linux>

Hi

Regarding

http://www.w3.org/TR/2004/WD-xml-id-20040407/#IDAQVQRB
:
"XPath 2.0: No change required. The id() function recognizes both DTD-
and Schema-declared identifiers, and as such would also recognize
xml:id attributes identified with a minimally conforming schema
processor."

Scenario:

I receive an XML document which includes xml:ids, and neither contains
any (DTD, WXS) internal subset nor does it reference a DTD or XSD or
any other schema instance which modifies it (I might validate it with
Relax NG).

I process the doc using a fully conforming Basic XSLT Processor [1]
which thusly is not schema-aware.

id() [2] should return element nodes with matching xml:id value.
AFAICS this requires a change/addition to XPath 2.0 [3] (currently in
last call), but I might miss something.

Tobi

[1]
http://www.w3.org/TR/xslt20/#basic-conformance

[2]
http://www.w3.org/TR/xpath-functions/#func-id

[3]
http://www.w3.org/TR/xpath-functions/

-- 
Vim users, don't forget to
   http://iccf-holland.org/donate.html
Received on Sunday, 18 April 2004 04:04:51 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 19:53:49 UTC