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

Identity transformation for XSLT 2.0

Subject: Identity transformation for XSLT 2.0
From: "Jesper Tverskov" <jesper@xxxxxxxxxxx>
Date: Mon, 17 Dec 2007 06:44:20 +0100
 Identity transformation for XSLT 2.0
Hi list

I have tried to make a stylesheet that can make a complete identity
transformation in XSLT 2.0. I have probably forgotten a few things,
please have a look.

I have published a tutorial about it:
http://www.xmlplease.com/identity-template.

The stylesheet is here:
http://www.xmlplease.com/identity-template.xsl.

The traditional identity template is not complete:

1. The XML declaration is not recreated.
2. The DOCTYPE declaration is not recreated.
3. Linefeed and indention in the prolog are ignored outside comments and PIs.
4. Leading whitespace is normalized for content in PIs in prolog
removing linefeeds and indention.
5. CDATA sections are replaced with their content escaped.
6. Default attributes in DTD are added to the output.

I hope I have solved all problems.

Cheers,

Jesper Tverskov
http://www.xmlplease.com

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.