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

xsl:element question

Subject: xsl:element question
From: mjyoungblut@xxxxxxx
Date: Mon, 5 Mar 2001 12:10:35 -0600
element question
I have a series of elements that I want to add an attribute to.  So I want
to call a template that will work on any element, and add the attribute to
that element.  The problem that I am having is having a generic template do
this because I am not able to name the element.  I am trying to do this:

<xsl:element name="name( )"> or <xsl:element name="$THIS_ELEMENTS_NAME">
     <xsl:copy-of select="@*"/>
     <xsl:attribute name="Action"><xsl:value-of select
="$ACTION"/></xsl:attribute>
     <xsl:value-of select="."/>
</xsl:element>

I get a recoverable error at the first line, but an error after that
because I have an empty element.  Is there a way to solve this problem?

Thanks in advance,
     Matt Youngblut


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.