xsl-list
[Top] [All Lists]

Re: [xsl] XSL:FO Identify Transforms

2011-09-16 11:47:55
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/


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>