?

Log in

No account? Create an account

Previous Entry | Next Entry

Which is better
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
or
xmlns:xs="http://www.w3.org/2001/XMLSchema"

I cannot find find a best answer...

xsd is the one I like better and it is the one used here
http://www.w3.org/TR/xmlschema-0/

But the O'Reilly book "XML Schema" uses xs

The right answer is just to pick one I guess. The current files I am working with use both which is very annoying.

Comments

( 3 comments — Leave a comment )
tobyaw
Apr. 25th, 2007 03:27 pm (UTC)
Almost all the files I can find use the xs: namespace. Its only w3.org that use xsd: - but they note that anything can be used. But yes, standardise on one or the other.
ggreig
Apr. 25th, 2007 06:03 pm (UTC)
To standardise is more important than what you standardise on.

Having said that, I prefer xsd because it's more explicit. There are too many other things that start with xs in the world of XML for xs to be unambiguous. Maybe not an issue if you're up to your elbows in it all the time, but clearer for occasional dabblers.

Google gives me twice as many hits for "xmlns:xsd" as "xmlns:xs" (605k vs 302k).
qidane
Apr. 25th, 2007 10:30 pm (UTC)
Thanks, I really want the files to work well for the occasional user. The poor sod that gets handed the files and told to implement the format by next week.
( 3 comments — Leave a comment )

Profile

pink
qidane
Andrew Patterson
Qidane

Latest Month

September 2016
S M T W T F S
    123
45678910
11121314151617
18192021222324
252627282930 
Powered by LiveJournal.com
Designed by Lilia Ahner