- From: Henry S. Thompson <ht@cogsci.ed.ac.uk>
- Date: 03 Dec 2002 09:12:38 +0000
- To: "Lambrechts tom" <tom.lambrechts@ebitec.com>
- Cc: <xmlschema-dev@w3c.org>
"Lambrechts tom" <tom.lambrechts@ebitec.com> writes:
> I want to include the xsd scheme of my xml in the document itself,
> like in the ado xml-recordset. (ex:
> http://www.vbxml.com/xsl/articles/xsl_ado/) In xml spy it doesn’t
> validate, the error is that he can't find the scheme. Is there
> something wrong with my XML, or is it just xml spy?
In principle this is possible -- in practice in the absence of
agreement on a fragment ID syntax for the XML media types, there isn't
good interop here yet. I've heard it claimed that some form of this
works in Xerces and/or Microsoft schema processors.
Some comments below
> <xml xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="#CMODataSchema">
^^^^^^^^^^^^^^
relative NS
URIs are
deprecated, let's
say you use
http://www.example.com/CMODS
> <xsd:schema id="CMODataSchema">
^ targetNamespace="http://www.example.com/CMODS"
<snip/>
> </xsd:schema>
> <myComposite>
^ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.example.com/CMODS #CMODataSchema"
> <myDouble>45454.444</myDouble>
> <myFloat>5.4454546E16</myFloat>
> <myString>Ikke</myString>
> <subComposite>
> <myDate>2002-01-01</myDate>
> <myFloat>5.4454546E16</myFloat>
> <myString>Ikke</myString>
> </subComposite>
> </myComposite>
> </xml>
Hope this helps.
ht
--
Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh
W3C Fellow 1999--2002, part-time member of W3C Team
2 Buccleuch Place, Edinburgh EH8 9LW, SCOTLAND -- (44) 131 650-4440
Fax: (44) 131 650-4587, e-mail: ht@cogsci.ed.ac.uk
URL: http://www.ltg.ed.ac.uk/~ht/
[mail really from me _always_ has this .sig -- mail without it is forged spam]
Received on Tuesday, 3 December 2002 04:12:45 UTC