A quesiton on XPath-datamodel (Mapping PSVI addition to Node Properties)
"Zhiqiang Yu" <[email protected]> Sun, 21 Jan 2007 23:24:02 +0800
| Newsgroups | gmane.comp.web.query-languages |
|---|---|
| Message-ID | <[email protected]> |
------=_Part_188758_14167686.1169393042518
Content-Type: text/plain; charset=WINDOWS-1252; format=flowed
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
Hi, All
I am a software engineer and encounter some problem when reading the spec o=
f
XQuery 1.0 and XPath 2.0 Data Model (XDM).
http://www.w3.org/TR/xpath-datamodel/#PSVI2Types
In the Chapter 3.3.1 ( Mapping PSVI addition to Node Propterties), it says:
- The *[validity]* and *[validation attempted]* properties exist and
have the values "*valid* " and "*full*", respectively, the schema type
of an element or attribute information item is represented by an
expanded-QName<http://www.w3.org/TR/xpath-datamodel/#dt-expanded-qname%2=
3dt-expanded-qname>whose
namespace and local name correspond to the first applicable items in
the following list:
- If the declared type exists and is a union and the actual type
is =85..
- If there is no declared type, and the actual type is a union,
then: =85=85
- Otherwise: =85.
Regarding the second bullet, I can NOT understand in which cases there
will be no declared type? I think it is impossible. Since the declared typ=
e
reference the *[type definition] *associated with the declaration, if an
element/attribute is validated, it should be already associated with a
element/attribute declaration, which should have the type definition.
could anyone give me some clarification on this? Thanks a lot in advance=
!
------=_Part_188758_14167686.1169393042518
Content-Type: text/html; charset=WINDOWS-1252
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
<span class=3D"gmail_quote"></span>
<div><font face=3D"Arial" size=3D"1"><span lang=3D"EN-US" style=3D"FONT-SIZ=
E: 9pt; FONT-FAMILY: Arial">Hi, All</span></font></div>
<div><font face=3D"Arial" size=3D"1"><span lang=3D"EN-US" style=3D"FONT-SIZ=
E: 9pt; FONT-FAMILY: Arial"></span></font> </div>
<div><font face=3D"Arial" size=3D"1"><span lang=3D"EN-US" style=3D"FONT-SIZ=
E: 9pt; FONT-FAMILY: Arial">I am a software engineer and encounter some pro=
blem when reading the spec of XQuery 1.0 and XPath 2.0 Data Model (XDM). </=
span>
</font></div>
<p><font face=3D"Arial" color=3D"#800080" size=3D"1"><span lang=3D"EN-US" s=
tyle=3D"FONT-SIZE: 9pt; FONT-FAMILY: Arial"><a title=3D"http://www.w3.org/T=
R/xpath-datamodel/#PSVI2Types" onclick=3D"return top.js.OpenExtLink(window,=
event,this)" href=3D"http://www.w3.org/TR/xpath-datamodel/#PSVI2Types" targ=
et=3D"_blank">
http://www.w3.org/TR/xpath-datamodel/#PSVI2Types</a></span></font></p>
<p><font face=3D"Arial" size=3D"1"><span lang=3D"EN-US" style=3D"FONT-SIZE:=
9pt; FONT-FAMILY: Arial">In the Chapter 3.3.1 ( Mapping PSVI addition to N=
ode Propterties), it says:</span></font></p>
<ul style=3D"MARGIN-TOP: 0cm" type=3D"disc">
<li style=3D"MARGIN-TOP: 3.6pt; MARGIN-BOTTOM: 3.6pt; COLOR: black; TEXT-AL=
IGN: left"><font face=3D"Arial" color=3D"black" size=3D"2"><span lang=3D"EN=
" style=3D"FONT-SIZE: 10.5pt; FONT-FAMILY: Arial">The <b><span style=3D"FON=
T-WEIGHT: bold">
[validity]</span></b> and <b><span style=3D"FONT-WEIGHT: bold">[validation =
attempted]</span></b> properties exist and have the values "<em><i><fo=
nt face=3D"Arial"><span style=3D"FONT-FAMILY: Arial">valid</span></font></i=
></em>
" and "<em><i><font face=3D"Arial"><span style=3D"FONT-FAMILY: A=
rial">full</span></font></i></em>", respectively, the schema type of a=
n element or attribute information item is represented by an <a title=3D"ht=
tp://www.w3.org/TR/xpath-datamodel/#dt-expanded-qname#dt-expanded-qname
expanded-QName" onclick=3D"return top.js.OpenExtLink(window,event,this)" hr=
ef=3D"http://www.w3.org/TR/xpath-datamodel/#dt-expanded-qname%23dt-expanded=
-qname" target=3D"_blank"><font color=3D"#800080">expanded-QName</font></a>=
whose namespace and local name correspond to the first applicable items in=
the following list:=20
</span></font>
<ul style=3D"MARGIN-TOP: 0cm" type=3D"circle">
<li style=3D"MARGIN-TOP: 3.6pt; MARGIN-BOTTOM: 3.6pt; COLOR: black; TEXT-AL=
IGN: left"><font face=3D"Arial" color=3D"black" size=3D"2"><span lang=3D"EN=
" style=3D"FONT-SIZE: 10.5pt; FONT-FAMILY: Arial">If the declared type exis=
ts and is a union and the actual type is =85..=20
</span></font>
<li style=3D"MARGIN-TOP: 3.6pt; MARGIN-BOTTOM: 3.6pt; COLOR: black; TEXT-AL=
IGN: left"><font face=3D"Arial" color=3D"black" size=3D"2"><span lang=3D"EN=
" style=3D"FONT-SIZE: 10.5pt; BACKGROUND: yellow; FONT-FAMILY: Arial">If th=
ere is no declared type, and the actual type is a union, then: =85=85
</span></font>=20
<li style=3D"MARGIN-TOP: 3.6pt; MARGIN-BOTTOM: 3.6pt; COLOR: black; TEXT-AL=
IGN: left"><font face=3D"Arial" color=3D"black" size=3D"2"><span lang=3D"EN=
" style=3D"FONT-SIZE: 10.5pt; FONT-FAMILY: Arial">Otherwise: =85.</span> </=
font></li>
</li></li></ul></li></ul>
<p><font face=3D"Arial" size=3D"1"><span lang=3D"EN" style=3D"FONT-SIZE: 9p=
t; FONT-FAMILY: Arial"> </span></font><font face=3D"Arial" color=3D"bl=
ack" size=3D"2"><span lang=3D"EN" style=3D"FONT-SIZE: 10.5pt; COLOR: black;=
FONT-FAMILY: Arial">
Regarding the second bullet, I can NOT understand in which cases there wil=
l be no declared type? I think it is impossible. Since the declared t=
ype reference the <b><span style=3D"FONT-WEIGHT: bold">[type definition]</s=
pan>
</b>associated with the declaration, if an element/attribute is vali=
dated, it should be already associated with a element/attribute declaration=
, which should have the type definition. </span></font></p>
<p><font face=3D"Arial" color=3D"black"><span lang=3D"EN" style=3D"COLOR: b=
lack; FONT-FAMILY: Arial">could anyone </span></font><font face=3D"Ari=
al" color=3D"black" size=3D"2"><span lang=3D"EN" style=3D"FONT-SIZE: 10.5pt=
; COLOR: black; FONT-FAMILY: Arial">
give me some clarification on this? Thanks a lot in advance!</=
span></font></p>
------=_Part_188758_14167686.1169393042518--