[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] XSL:FO Identify Transforms


Subject: Re: [xsl] XSL:FO Identify Transforms
From: Liam R E Quin <liam@xxxxxx>
Date: Fri, 16 Sep 2011 12:47:11 -0400

On Fri, 2011-09-16 at 12:33 -0400, G. Ken Holman wrote:
[...]
> ><xsl:template match="@*" >
> >                 <xsl:element name="attribute">
> >                                 <xsl:attribute name="name">
> >                                                 <xsl:value-of 
> > select="local-name()" />
> >                                 </xsl:attribute>
> >                                 <xsl:value-of select="." />
> >                 </xsl:element>
> ></xsl:template>
> 
> Unrelated to your question, the above can be replaced with:
> 
> <xsl:template match="@*"><xsl:copy/></xsl:template>

Note that one version copies namespace nodes an the other doesn't.

> ... but it is still inappropriate in your stylesheet to go to XSL-FO.

Agreed there. Unless the input is already xsl-fo of course :)

Liam

-- 
Liam Quin - XML Activity Lead, W3C, http://www.w3.org/People/Quin/
Pictures from old books: http://fromoldbooks.org/


Current Thread
Keywords
xml