[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]
RE: [xml-dev] 2 questions about Relax NG: ID/IDREF datatype and whitespace facet
- From: "Costello, Roger L." <costello@mitre.org>
- To: <xml-dev@lists.xml.org>
- Date: Thu, 15 Nov 2007 12:44:28 -0500
Dave Pawson pointed me to a web page [1] that appears to answer my
question:
By default, Jing enforces the constraints imposed by RELAX NG DTD
Compatibility with respect to ID/IDREF/IDREFS.
What is "RELAX NG DTD Compatibility"? The Guidelines document that I
referenced in my first posting says this:
[DTD Compatibility] defines the concept of an ID-type, which is an
additional semantic for datatypes that allows datatypes to have [XML
1.0] cross-reference semantics. An implementation of [DTD
Compatibility] that supports these guidelines should associate the ID,
IDREF and IDREFS datatypes of [W3C XML Schema Datatypes] with the
ID-types ID, IDREF, and IDREFS respectively.
So I conclude that, unless otherwise specified, a Relax NG validator
will treat ID and IDREF values the same way that XML treats them, i.e.
an IDREF value must reference an ID value.
/Roger
[1] http://www.thaiopensource.com/relaxng/jing.html
-----Original Message-----
From: Len Bullard [mailto:len.bullard@uai.com]
Sent: Thursday, November 15, 2007 10:47 AM
To: Costello, Roger L.; xml-dev@lists.xml.org
Subject: RE: [xml-dev] 2 questions about Relax NG: ID/IDREF datatype
and whitespace facet
The technical clarification will be interesting to read, but
marketwise,
given that ID/IDREF checking has been provided since ISO 8879 SGML, not
validating that in a *validator* would be surprising even if not in the
lexical parse.
Assert: a tool can only be abstracted so far before it loses cohesion
with
the original application and user base. Don't shock the monkey.
len
From: Costello, Roger L. [mailto:costello@mitre.org]
Hi Folks,
I am reading the "Guidelines for using W3C XML Schema Datatypes with
RELAX NG"[1], and am confused about a couple of things.
QUESTION #1
This paragraph in the Guidelines discusses the ID, IDREF datatypes:
The semantics defined by [W3C XML Schema Datatypes] for the ID, IDREF
and IDREFS datatypes are purely lexical and do not include the
cross-reference semantics of the corresponding [XML 1.0] datatypes. The
cross-reference semantics of these datatypes in XML Schema comes from
XML Schema Part 1. Furthermore, the [XML 1.0] cross-reference semantics
of these datatypes do not fit into the RELAX NG model of what a
datatype is. Therefore, RELAX NG validation will only validate the
lexical aspects of these datatypes as defined in [W3C XML Schema
Datatypes].
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the sender. This message contains confidential information and is
intended only for the individual named. If you are not the named
addressee you should not disseminate, distribute or copy this e-mail.
[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]