Re: [xsl] Identity transformation for XSLT 2.0

Subject: Re: [xsl] Identity transformation for XSLT 2.0
From: Colin Paul Adams <colin@xxxxxxxxxxxxxxxxxx>
Date: Mon, 17 Dec 2007 08:30:57 +0000
>>>>> "Jesper" == Jesper Tverskov <jesper@xxxxxxxxxxx> writes:

    Jesper> As I say in the tutorial, we can do without saxon:parse()
    Jesper> and saxon:serialize(), using temporary files instead and
    Jesper> reload them with collection() and unparsed-text().

Well, you can't use collection() portably anyway.

    Jesper> I have that solution working too except that I have not
    Jesper> managed yet to make it work if input is not UNICODE.

    Jesper> But since the "files" solution also only works in SAXON,
    Jesper> AltovaXML not allowing unparsed-text() to read files saved
    Jesper> by the same stylesheet

Hm. That is certainly not in violation with the spec. And it is very
much in the spirit of the spec, as you cannot use doc() or document()
to read files written out by xsl:result-document().

    Jesper> Using saxon:parse() and saxon:serialize() gives us a much
    Jesper> more elegant solution, and much more user-friendly with no

Hardly more user-friendly - the transformation won't compile with Gestalt.
Colin Adams
Preston Lancashire

Current Thread