[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Difference between xmlns:aaa= and xmlns:aaa:= in a

Subject: Re: 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
Re:  Difference between xmlns:aaa= and xmlns:aaa:= in a
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
****************************************************************

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.