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

Re: Roundtripability of identity transform

Subject: Re: Roundtripability of identity transform
From: David Carlisle <davidc@xxxxxxxxx>
Date: Wed, 31 Aug 2005 10:38:05 +0100
xslt identity transform with dtd
> I was thinking more of changing/losing some useful data - 

That's the catch, no one ever specifies that they throw away useful data,
but one person's usless dom padding white space, is another person's 
inter word space. 

> The only biggie I can think of is defaulted values - if the DTD
> changes and the new data doesn't keep the reference to the DTD then
> the new data won't reflect any changes in the defaulted values.


You can always get xsl:output to to stick a doctype back on.

> As an aside, from what you've just said, if the DTD expects a
> namespace declaration but that namespace is redundant and gets
> removed, the document would no longer validate after the identity
> transform (if the DTD was generated in the output).

yes, if you wrote a dtd that demands xmlns="" on every element
then process it through xslt identity transform you will get no xmlns=""
at all in the output. Tough:-) You can make it validate again by making
the dtd  default the namespace back.

David

________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

Current Thread

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