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

Re: XML doesn't deserve its "X".

xml other processcontents xpath
Elliotte Rusty Harold wrote:

>>I am changing a text leaf node into a mixed content including 2 text
>>nodes separated by a child element and this will likely break 90+% of
>>the existing applications.
> Yes. However, XPath and XSLT based applications will process this 
> correctly without blinking because this hasn't changed the string 
> value of the ns1:foo element. The more I learn about XPath and XSLT 
> the more I'm amazed by them.
Exactly. This goes together with other tips such as "define the 
structure of the output document in your stylesheets", "don't rely on 
the order of elements in the instance documents", ... which increase the 
capacity to deal with the unexpected.

It's unfortunately an exception amongst APIs, tools and languages to 
process XML documents.

This makes me think that it could make a useful extension for W3C XML 
Schema to define how to deal with the wilcard elements, something such as:

<xs:any namespace="##other" processContents="skip" 

See you in Seattle.
Eric van der Vlist       http://xmlfr.org            http://dyomedea.com
http://xsltunit.org      http://4xt.org           http://examplotron.org


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.
First Name
Last Name
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.