On 7 Jul 2009, at 07:26 , Ben Stover wrote:
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
xmlns:aaa: = "http:// ..."
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.
HTH
--
****************************************************************
* C. M. Sperberg-McQueen, Black Mesa Technologies LLC
* http://www.blackmesatech.com
* http://cmsmcq.com/mib
* http://balisage.net
****************************************************************
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--