[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: An (almost) identity stylesheet

Subject: Re: An (almost) identity stylesheet
From: Michael Ludwig <mlu@xxxxxxxxxxxxx>
Date: Thu, 10 Apr 2008 11:33:41 +0200
Re:  An (almost) identity stylesheet
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

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.