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

Re: How to design XML to have broad utility and yet also enabl

  • From: Michael Kay <mike@s...>
  • To: Stephen Cameron <steve.cameron.62@g...>
  • Date: Fri, 22 Nov 2013 08:19:16 +0000

Re:  How to design XML to have broad utility and yet also enabl
> 
> 
> 
> "we're so used to people not getting namespaces right that we hardly even notice any more"
> 
> Some simple examples would be much appreciated, for my education.
> 

Cases of beginners getting namespaces wrong are too legion to be interesting. But perhaps a more interesting case is that XSLT, despite herculean efforts to do the right thing, still struggles with some simple cases. For example given this XML fragment (actually an XSD fragment)

<xs:schema xmlns="http://something" xmlns:xs="theUsual" xmlns:t="http://t">
<xs:complexType name="T">
  <xs:restriction base="t:base">
    <xs:group ref="agroup" xmlns=""/>
  </xs:restriction>
</xsl:complexType>
</xs:schema>

an xsl:copy-of instruction applied to the xs:complexType element will lose the namespace undeclaration xmlns="", and thus invalidate the QName-valued attribute ref="agroup".

We've spent untold hours of WG time trying to find a solution to this bug, without success. If we can't get it right, how can mere mortals with more important things in their lives to worry about?

Sorry, I just noticed you asked for simple examples. If only namespaces were simple.

Michael Kay
Saxonica


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


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
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

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.