Subject: Re: [xsl] Difference between xmlns:aaa= and xmlns:aaa:= in an XML Schema? From: "C. M. Sperberg-McQueen" <cmsmcq@xxxxxxxxxxxxxxxxx> Date: Thu, 9 Jul 2009 17:06:50 -0600 |
When I create a XSD Schema file then there are namespace declaration at the top similar to
xmlns:aaa:="http://....." xmlns:bbb="http://...." targetNamespace="http://..." elementFormDefault="qualified" attributeFormDefault="qualified" ...
When do I have to write a "=" and when a ":=" ?
In XML attribute-value specifications, you always write = and never :=.
You write := when writing assignment statements in Algol, Pascal, and related languages. :)
If the text you quote was generated by a tool, then either there's a bug in the tool or possibly the input to the tool specified that the namespace prefix to use was "aaa:" instead of the expected "aaa". If the tool trusted its input (always a risk!), it might write the above, meaning
which is well-formed XML and may be accepted by a namespace-ignorant XML tool (are there any still?). It's not namespace-well-formed, though, and any tool that is generating XSD schema documents really ought to be namespace-aware.
-- **************************************************************** * C. M. Sperberg-McQueen, Black Mesa Technologies LLC * http://www.blackmesatech.com * http://cmsmcq.com/mib * http://balisage.net ****************************************************************
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Difference between xmlns:, Scott Trenda | Thread | Re: [xsl] Difference between xmlns:, Florent Georges |
Re: [xsl] processing following-sibl, C. M. Sperberg-McQue | Date | RE: [xsl] processing following-sibl, Michael Kay |
Month |