[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: how do I print a variable?
> 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
|
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
|