Subject: Re: [xsl] 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 |
-----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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Lifting xml values to use, Jarkko . Moilanen | Thread | RE: [xsl] Lifting xml values to use, Conal Tuohy |
RE: [xsl] pushing XML to a javascri, "Braumüller, Hans" | Date | RE: [xsl] one or two stylesheets to, Conal Tuohy |
Month |