Re: [xml-dev] XML doesn't deserve its "X".
by Eric van der Vlist other posts by this author
Mar 5 2002 4:39PM messages near this date
Re: [xml-dev] XML doesn't deserve its "X".
|
Re: [xml-dev] XML doesn't deserve its "X".
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"
foo:process="remove|value-of|copy-of"/>
Eric
--
See you in Seattle.
http://knowledgetechnologies.net/
------------------------------------------------------------------------
Eric van der Vlist http://xmlfr.org http://dyomedea.com
http://xsltunit.org http://4xt.org http://examplotron.org
------------------------------------------------------------------------
-----------------------------------------------------------------
The xml-dev list is sponsored by XML.org <http://www.xml.org> , an
initiative of OASIS <http://www.oasis-open.org>
The list archives are at http://lists.xml.org/archives/xml-dev/
To subscribe or unsubscribe from this list use the subscription
manager: <http://lists.xml.org/ob/adm.pl>
Thread:
Eric van der Vlist
Francis Norton
Eric van der Vlist
=?iso-8859-1?Q?Bill_de_h=D3ra?=
Eric van der Vlist
Simon St.Laurent
Michael Fitzgerald
Mike Champion
Eric van der Vlist
Mike Champion
Leigh Dodds
Klaus Backert
Eric van der Vlist
Klaus Backert
Eric van der Vlist
Eric van der Vlist
Klaus Backert
Elliotte Rusty Harold
John Cowan
Elliotte Rusty Harold
Michael Fitzgerald
Eric van der Vlist
John Cowan
Simon St.Laurent
|