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

Re: Lifting xml values to use as html attributes / ren

Subject: Re: Lifting xml values to use as html attributes / rendering data to html
From: Peter Davis <pdavis152@xxxxxxxxx>
Date: Tue, 2 Jul 2002 01:24:23 -0700
lifting table
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tuesday 02 July 2002 01:05, Jarkko.Moilanen@xxxxxx wrote:
> <xsl:element name="table">
> <xsl:attribute name = "bgcolor" >
> <xsl:value-of select = "row/cell/navcolour" />
> </xsl:attribute>
> <p>text</p>
> </xsl:element>

No need to use <xsl:element>; you can do it with just:

<table>
  <xsl:attribute name="bgcolor">
    <xsl:value-of select="row/cel/navcolour"/>
  </xsl:attribute>
  ...
</table>

Or, even simpler, you can use an Attribute Value Template (curly-braces) and 
skip the <xsl:attribute tag as well:

<table bgcolor="{row/cell/navcolour}">
  ...
</table>

- -- 
Peter Davis
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE9IWM5NSZCJx7tYycRAgKAAKC7lPKlbfDRZr6jcmRXbkdlTJwgQwCdHUwm
V3uytzSKZmV/jC1fEvRpmz8=
=mdZH
-----END PGP SIGNATURE-----


 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.