|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] xsl: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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








