FW: A quesiton on XPath-datamodel (Mapping PSVI addition to Node Properties)

"Yu, Zhiqiang" <[email protected]> Sun, 21 Jan 2007 00:33:49 +0800
Newsgroups gmane.comp.web.query-languages
Message-ID <094BCE01AFBE9646AF220B0B3F367AAB0131BF39@pdsmsx413.ccr.corp.intel.com>
This is a multi-part message in MIME format.

------_=_NextPart_001_01C73CB0.C515DDAC
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

I encountered some problem when reading the spec of 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#dt-expanded-qna
me>  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 .....
	*	If there is no declared type, and the actual type is a
union, then: ......
	*	Otherwise: ......

=20

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
type 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.=20

=20

Does anyone know it and  give me some clarification on this?  Thanks a
lot in advance!

=20

=20

=20


------_=_NextPart_001_01C73CB0.C515DDAC
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html>

<head>
<meta http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dus-ascii">
<meta name=3DGenerator content=3D"Microsoft Word 11 (filtered)">
<style>
<!--
 /* Font Definitions */
 @font-face
	{font-family:SimSun;
	panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
	{font-family:SimSun;
	panose-1:2 1 6 0 3 1 1 1 1 1;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0cm;
	margin-bottom:.0001pt;
	text-align:justify;
	text-justify:inter-ideograph;
	font-size:10.5pt;
	font-family:"Times New Roman";}
a:link, span.MsoHyperlink
	{color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{color:purple;
	text-decoration:underline;}
span.emailstyle17
	{font-family:Arial;
	color:windowtext;}
span.EmailStyle19
	{font-family:Arial;
	color:navy;}
@page Section1
	{size:595.3pt 841.9pt;
	margin:72.0pt 90.0pt 72.0pt 90.0pt;
	layout-grid:15.6pt;}
div.Section1
	{page:Section1;}
 /* List Definitions */
 ol
	{margin-bottom:0cm;}
ul
	{margin-bottom:0cm;}
-->
</style>

</head>

<body lang=3DZH-CN link=3Dblue vlink=3Dpurple =
style=3D'text-justify-trim:punctuation'>

<div class=3DSection1 style=3D'layout-grid:15.6pt'>

<p class=3DMsoNormal><font size=3D1 face=3DArial><span lang=3DEN-US =
style=3D'font-size:
9.0pt;font-family:Arial'>I encounter<font color=3Dnavy><span =
style=3D'color:navy'>ed</span></font>
some problem when reading the spec of XQuery 1.0 and XPath 2.0 Data =
Model
(XDM).</span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3DArial><span lang=3DEN-US =
style=3D'font-size:
9.0pt;font-family:Arial'><a
href=3D"http://www.w3.org/TR/xpath-datamodel/#PSVI2Types">http://www.w3.o=
rg/TR/xpath-datamodel/#PSVI2Types</a></span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3DArial><span lang=3DEN-US =
style=3D'font-size:
9.0pt;font-family:Arial'>In the Chapter 3.3.1 ( Mapping PSVI addition to =
Node
Propterties), it says:</span></font></p>

<ul style=3D'margin-top:0cm' type=3Ddisc>
 <li class=3DMsoNormal =
style=3D'color:black;margin-top:3.6pt;margin-bottom:3.6pt;
     text-align:left'><font size=3D2 color=3Dblack face=3DArial><span =
lang=3DEN
     style=3D'font-size:10.5pt;font-family:Arial'>The <b><span =
style=3D'font-weight:
     bold'>[validity]</span></b> and <b><span =
style=3D'font-weight:bold'>[validation
     attempted]</span></b> properties exist and have the values =
&quot;<em><i><font
     face=3DArial><span =
style=3D'font-family:Arial'>valid</span></font></i></em>&quot;
     and &quot;<em><i><font face=3DArial><span =
style=3D'font-family:Arial'>full</span></font></i></em>&quot;,
     respectively, the schema type of an element or attribute =
information item
     is represented by an <a
     =
href=3D"http://www.w3.org/TR/xpath-datamodel/#dt-expanded-qname#dt-expand=
ed-qname"
     title=3Dexpanded-QName>expanded-QName</a> whose namespace and local =
name
     correspond to the first applicable items in the following =
list:</span></font></li>
 <ul style=3D'margin-top:0cm' type=3Dcircle>
  <li class=3DMsoNormal =
style=3D'color:black;margin-top:3.6pt;margin-bottom:3.6pt;
      text-align:left'><font size=3D2 color=3Dblack face=3DArial><span =
lang=3DEN
      style=3D'font-size:10.5pt;font-family:Arial'>If the declared type =
exists
      and is a union and the actual type is &#8230;..</span></font></li>
  <li class=3DMsoNormal =
style=3D'color:black;margin-top:3.6pt;margin-bottom:3.6pt;
      text-align:left'><font size=3D2 color=3Dblack face=3DArial><span =
lang=3DEN
      style=3D'font-size:10.5pt;font-family:Arial;background:yellow'>If =
there is
      no declared type, and the actual type is a union, then: =
&#8230;&#8230;</span></font></li>
  <li class=3DMsoNormal =
style=3D'color:black;margin-top:3.6pt;margin-bottom:3.6pt;
      text-align:left'><font size=3D2 color=3Dblack face=3DArial><span =
lang=3DEN
      style=3D'font-size:10.5pt;font-family:Arial'>Otherwise: =
&#8230;</span></font><font
      color=3Dnavy face=3DArial><span lang=3DEN =
style=3D'font-family:Arial;color:navy'>&#8230;</span></font></li>
 </ul>
</ul>

<p class=3DMsoNormal><font size=3D1 face=3DArial><span lang=3DEN =
style=3D'font-size:9.0pt;
font-family:Arial'>&nbsp;</span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dblack face=3DArial><span =
lang=3DEN
style=3D'font-size:10.5pt;font-family:Arial;color:black'>Regarding the =
second
bullet, I can NOT understand in which cases there will be no declared =
type?
&nbsp;I think it is impossible. Since the declared type reference the =
<b><span
style=3D'font-weight:bold'>[type definition]</span></b> associated with =
the
declaration,&nbsp; if an element/attribute is validated, it should be =
already
associated with a element/attribute declaration, which should have the =
type
definition. </span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dblack face=3DArial><span =
lang=3DEN
style=3D'font-size:10.5pt;font-family:Arial;color:black'>&nbsp;</span></f=
ont></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
lang=3DEN
style=3D'font-size:10.5pt;font-family:Arial;color:navy'>Does anyone know =
it and &nbsp;</span></font><font
color=3Dblack face=3DArial><span lang=3DEN =
style=3D'font-family:Arial;color:black'>give
me some clarification on this?&nbsp; Thanks a lot in =
advance!</span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3DArial><span lang=3DEN-US =
style=3D'font-size:
9.0pt;font-family:Arial'>&nbsp;</span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3DArial><span lang=3DEN-US =
style=3D'font-size:
9.0pt;font-family:Arial'>&nbsp;</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3D"Times New Roman"><span =
lang=3DEN-US
style=3D'font-size:10.0pt'>&nbsp;</span></font></p>

</div>

</body>

</html>

------_=_NextPart_001_01C73CB0.C515DDAC--