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

Re: Identity transformation for XSLT 2.0

Subject: Re: Identity transformation for XSLT 2.0
From: "Jesper Tverskov" <jesper@xxxxxxxxxxx>
Date: Wed, 19 Dec 2007 12:04:17 +0100
 Re: Identity transformation for XSLT 2.0
Update

I have now updated my better identity transformation for XSLT 2.0,
www.xmlplease.com/identity-template.xsl.

The tutorial will also be updated in a day or two.

I have added one more replacement character to protect all forms of
entities simply by replacing the ampersands. This works nicely for
named entities declared in a DTD and for character entities. Compare
that to the traditional identity template replacing e.g. &#160; with a
space!

I now use restricted words as parameters instead of UNICODE characters
from the Private Use Area. Words are clumsy but less confusing, and it
is easier to detect if they are already used in input. Such testing is
also now in place using xsl:message.

The REGEX for DOCTYPE now also gets internal DTD subsets right, I hope.

I have tested it with my poor man's test suite, including the XSLT 2.0
spec and a heavy Chinese homepage well-formed but far from valid.

I both cases the identity transformation is 100%. I would call them
photographic. But there must still be a lot of issues?

Cheers,
Jesper Tverskov
www.xmlplease.com/identity-template

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.