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

Re: [Summary] Dangers of Copying Text into an XML Document

  • From: "bryan rasmussen" <rasmussen.bryan@g...>
  • To: "Costello, Roger L." <costello@m...>
  • Date: Thu, 6 Sep 2007 23:32:09 +0200

Re:  [Summary] Dangers of Copying Text into an XML Document
> Namespace Mismatch: The text may contain references to namespaces that
> are not defined in the XML document, or it may overwrite a namespace
> that already exists in the XML document, or it may contain markup that
> is not allowed in the XML document's namespace.

Well the overwrite a namespace can be subtle, for example if I copy in
<a:a> from a document where a prefix is bound to a1 namespace to a
document where a prefix is bound to a2 namespace problems could be:

1. the meaning of a:a has changed meaning with the change of namespace binding.

2. the namespace bindings are carried with the copying resulting in
prefix rebinding. Now the meaning of the elements are correct but
probable processing of the document will have problems (if processing
expects only namespace to which a prefix is originally bound).

3. the 'a' element is not allowed in the 'a' namespace of document
where XML is copied.

4. prefix re-binding such in the particular target format has specific
rules that will raise problems. One can see why such copying in an
XSL-T even if it is not 2.0 could raise problems, you are essentially
changing the expected performance of the program.

Not sure if I can think of others for this particular copying problem.'




Cheers,
Bryan Rasmussen


[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.