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

RE: how do I print a variable?

Subject: RE: how do I print a variable?
From: "Harbarth, Juliane" <jhb@xxxxxxxxxxxxxx>
Date: Wed, 4 Aug 1999 10:26:30 +0200
variable print
> From: Rolande Kendal [mailto:kendal@xxxxxxxxxxxx]
> Subject: how do I print a variable?
>
> How do I set a variable and then print it out?
> I would have though the following would set the "x" variable to "3",
> and then print "<text x="3"/>" on the next line.
>
> <xsl:variable name="x" select="3"/>
> <text x="{$x}"/>
>
Yes, it does, i.e. it prints "<text x="3"></text>" for me
using XT. If you are, however, transforming into HTML and
looking at your result using a browser, you might not see 
it, since the browser (at least some browsers) ignore tags
they don't know (and the respective attributes also).

Regards,
Juliane.


 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.