Re: [xsl] Identify transform with disabled output escaping

Subject: Re: [xsl] Identify transform with disabled output escaping
From: David Carlisle <davidc@xxxxxxxxx>
Date: Wed, 15 Nov 2006 17:18:01 GMT
> I have found some older messages claiming that the identify
> transformation can not be done without xsl:copy

well that's not true of course as xsl:copy is more or less the same
thing as <xsl:element name="{name()}" on element names and xsl:copy-of
on everything else.

> For me, these two statements imply that the
> identify transformation can not be done with output escaping disabled.

so there is no problem except that use of the deprecated d-o-e feature
implies that there is a problem with the input source, most likely.

> Is there a workaround for this?
just take the identity transform from the archives or the xsl spec and
add a template that matches text() and does xsl:value-of with d-o-e set
to yes.


David

Current Thread