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

RE: several questions on XML to HTML processing with XSL

Subject: RE: several questions on XML to HTML processing with XSL
From: Kay Michael <Michael.Kay@xxxxxxx>
Date: Tue, 13 Jun 2000 17:56:19 +0100
RE: several questions on XML to HTML processing with XSL
> I thought it would be nice to do something like this, but I 
> couldn't get it to work (does anybody know if a construct 
> like this is possible):
> <xsl:variable name="ParamName">param2</xsl:variable>
> <xsl:template match="blah_blah">
>   <xsl:call-template name="SomeTemplateName">
>     <xsl:with-param>
>       <xsl:attribute name="name">
>         <xsl:value-of select="$ParamName"/>
>       </xsl:attribute>
>     </xsl:with-param>
>   </xsl:call-template>
> </xsl:template>

No. <xsl:with-param> creates the root node of a new tree. You can't call
<xsl:attribute> unless the current node on the current output tree is an
element; in this case it isn't, it's a root. Root nodes can't have
attributes.

Mike Kay


 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.