469,363 Members | 2,566 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,363 developers. It's quick & easy.

xsd:schema targetNamespace="nondomainstring" possible ?

Somewhere (I don't remember where) that Is it possible to enter a simple string as namespace
in a xsd schema definiton. E.g.:

<xsd:schema targetNamespace="mydomainstring">

Is this true?

Marcus
Jul 20 '05 #1
3 2451
Cat
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Sun, 27 Jun 2004 22:11:56 +0200, Markus Meckler wrote:
Somewhere (I don't remember where) that Is it possible to enter a simple string as namespace
in a xsd schema definiton. E.g.:

<xsd:schema targetNamespace="mydomainstring">

Is this true?

Marcus

Yes it is true, it's useful for testing etc. Anything you release in the wild
should..
"have the characteristics of uniqueness and persistence"

http://www.w3.org/TR/REC-xml-names/

See above for other details.
- --
Cat

http://www.ratrobot.com/writing/sport/ Would you cheat in a $100 million
dollar lottery if you knew they wouldn't catch you? This is the problem with
drugs in sport. How do we solve it?
Mon Jun 28 21:38:31 UTC 2004
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFA4I/XKHRjYtwQ1QARAg+tAJ9SFCa+GNhKLC+jyIxos+sCD45DHwCdG 9K9
pdQZieafy+gwQK3lopV9AWs=
=GCa9
-----END PGP SIGNATURE-----

Jul 20 '05 #2
MM****@yahoo.com (Markus Meckler) writes:
Somewhere (I don't remember where) that Is it possible to enter a simple string as namespace
in a xsd schema definiton. E.g.:

<xsd:schema targetNamespace="mydomainstring">

Is this true?


Yes. Although XML Namespaces deprecates the use of relative URIs
(which is what that is, technically), W3C XML Schema does not enforce
this. In practice virtually any string can be used as a namespace
name. Strictly speaking, it must be a syntactically valid URI or URI
reference, but that imposes only very modest constraint.

ht
--
Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh
Half-time member of W3C Team
2 Buccleuch Place, Edinburgh EH8 9LW, SCOTLAND -- (44) 131 650-4440
Fax: (44) 131 650-4587, e-mail: ht@inf.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]
Jul 20 '05 #3
Yes, the targetNamespace attribute is typed as xs:anyURI in the
SchemaForSchema, and hence it can contain any string that is allowed by the
lexical representation for xs:anyURI. xs:anyURI allows absolute as well as
relative uris.

Thanks,
Priya

"Markus Meckler" <MM****@yahoo.com> wrote in message
news:cb*************@news.t-online.com...
Somewhere (I don't remember where) that Is it possible to enter a simple string as namespace in a xsd schema definiton. E.g.:

<xsd:schema targetNamespace="mydomainstring">

Is this true?

Marcus

Jul 20 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Julia Briggs | last post: by
36 posts views Thread by rbt | last post: by
1 post views Thread by AAA | last post: by
25 posts views Thread by Piotr Nowak | last post: by
14 posts views Thread by bjorklund.emil | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.