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

Re:

Subject: Re:
From: "George Cristian Bina" <george@xxxxxxx>
Date: Wed, 7 Jan 2004 12:31:50 +0200
 Re:
Hi Pierre,

The answer is no in the general case. Consider for instance
<test>
    <a>a</a>
    <b>b</b>
</test>

<?xml version="1.0" encoding="UTF-8" ?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
    <xsl:template match="/">
        result from which you cannot get the initial XML document
    </xsl:template>
</xsl:stylesheet>

But you can get some information about the document and its content if you
look inside the stylesheet and to the result.

If in this case we will have for instance the stylesheet as

<?xml version="1.0" encoding="UTF-8" ?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
    <xsl:template match="/">
        [<xsl:value-of select="test/a"/>]
        [<xsl:value-of select="test/b"/>]
    </xsl:template>
</xsl:stylesheet>

and the output:

[a]
[b]

Then you can infere that the initial document has test as root element and
at least two children a and b with content "a" and "b" respectivelly.

HTH,
George
-------------------------------------------------------------
George Cristian Bina mailto:george@xxxxxxxxxxxxx
<oXygen/> XML Editor - http://www.oxygenxml.com/


----- Original Message -----
From: "Bonnefoy Pierre" <pierre.bonnefoy@xxxxxxxxxx>
To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Wednesday, January 07, 2004 11:14 AM


> Hi all !
> My problem :
> An HTML file is generated by an XML file and a stylesheet, serverside.
> I've the HTML file and the stylesheet. Can I retrieve the original XML,
and
> if yes, how ?
>
> Manythanks,
> /Pierre
>
>
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
>


 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.