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

RE: Inverting a Stylesheet

Subject: RE: Inverting a Stylesheet
From: "Michael Kay" <mhk@xxxxxxxxx>
Date: Mon, 2 Jun 2003 08:39:46 +0100
xsl invert
> If I can transform a specific XML to, say, a specific HTML 
> document like 
> this
> 
>   data.xml ----------------> data.html
>                data.xsl
> 
> is there an algorithm (e.g. called "invert") that, given the 
> input data.xsl 
> can produce  invert(data.xsl) so that
> 
>   data.html ----------------------> data.xml
>                invert(data.xsl)
> 
> ?
> 
> IOW, is there an algorithm, that can (more or less) exactly 
> produce the re- 
> transformation from the transformed result back into the source?

It's easy to demonstrate by example that this is impossible. Consider
the stylesheet:

<answer xsl:version="1.0" xmlns:xsl="....">42</answer>

Since the result of executing this stylesheet is the same regardless of
the contents of the source document, how could you possibly reconstruct
the source document from the output?

Michael Kay


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.