Subject: basic question about xpath support of xml schema (was RE:An issue with XPath 2.0 sequences (Was Re: RE: Muenchian method, and keys 'n stuff))
From: "Bryan Rasmussen" <bry@xxxxxxxxxx>
Date: Thu, 31 Jan 2002 19:59:27 +0100
|
>>Mike Kay wrote:
>> I asked some questions about how this decision came about from
>> colleagues on
>> the various working groups. The basic rationale is that it's a
consequence
>> of the XML schema type system. Sequences were added to the XPath
>> data model
>> because XML Schema supports sequences of simple values. Schema doesn't
>> support sequences of sequences, so we don't either; if you want a
>> hierarchic
>> structure, you use a complex-valued element. So it comes down to the fact
>> that we're designing a language for processing XML documents, not a
>> general-purpose programming language.
was just wondering, have been skimming through the xml path language 2.0 wd
and haven't found exactly where it's described how the processors knows what
schema it should work with.
for example the example code: $x instance of element of type animal should
return true if the value associated with variable $x is an element whose
type is an instance of the type animal. but how do I tell my processor what
schema to get and associate with the document so I can check if $x is indeed
an instance of element type animal?
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
| Current Thread |
- RE: An issue with XPath 2.0 sequences (Was Re: RE: Muenchian method, and keys 'n stuff), (continued)
- Joerg Pietschmann - Thu, 31 Jan 2002 04:10:33 -0500 (EST)
- Michael Kay - Thu, 31 Jan 2002 04:47:47 -0500 (EST)
- Evan Lenz - Thu, 31 Jan 2002 13:14:54 -0500 (EST)
- Bryan Rasmussen - Thu, 31 Jan 2002 13:59:25 -0500 (EST) <=
- Charly - Thu, 31 Jan 2002 15:44:14 -0500 (EST)
- Michael Kay - Thu, 31 Jan 2002 18:59:06 -0500 (EST)
- Michael Kay - Thu, 31 Jan 2002 18:53:29 -0500 (EST)
- Evan Lenz - Thu, 31 Jan 2002 19:21:20 -0500 (EST)
|
|