xsl-list
[Top] [All Lists]

Re: [xsl] An (almost) identity stylesheet

2008-04-10 02:45:40
yeah missed the '@' sign in the name attribute. also, failed to mention that this is for XSLT 2.0.

Thanks for pointing this out.

-- Jeff

On 04 10, 08, at 5:33 PM, Michael Ludwig wrote:

Jeff Sese schrieb:
you just have to create a template for the @atttrib2:

<template match="@attrib2">
    <xsl:attribute name="@attrib2" select="'0'"/>
</template>

In XSLT 2.0, this should be written without the "@":

    <xsl:attribute name="attrib2" select="'0'"/>

In XSLT 1.0, it should read:

    <xsl:attribute name="attrib2">0</xsl:attribute>

Using xsl:attribute with @select in a 1.0 transformation provokes a
variety of reactions from processors. Xalan C++ 1.10.0 throws an error,
LibXSLT 10120 ignores it, Saxon 9.0.0.2J processes @select as if
allowed.

Michael

--~------------------------------------------------------------------
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>
--~--


Jeferson L. Sese
jeferson dot sese at asiatype dot com
Asiatype Inc.
Suite 114 Columbia Tower
Ortigas Ave., Greenhills
Mandaluyong City 1550 Philippines
Tel: +632-744-6262
Mobile: +63927-671-7901




--~------------------------------------------------------------------
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>
--~--