|
[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
-----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
|
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








