RE: Standalone Attributes?

Subject: RE: Standalone Attributes?
From: Ben Robb <Ben@xxxxxxxxxx>
Date: Tue, 6 Jun 2000 14:19:32 +0100
Use the following:

<xsl:output method="html"/>

According to the spec (16.2)

"The html output method should output boolean attributes (that is attributes
with only a single allowed value that is equal to the name of the attribute)
in minimized form. For example, a start-tag written in the stylesheet as

<OPTION selected="selected">

should be output as

<OPTION selected>

>From this I read that <TD nowrap="nowrap"> should be outputted as <TD

Not tried it myself, mind...


> -----Original Message-----
> From: Carlson, Thor [mailto:CarlsonT@xxxxxxx]
> Sent: 06 June 2000 14:02
> To: 'xsl-list@xxxxxxxxxxxxxxxx'
> Subject: Standalone Attributes?
> To render the following HTML:
>         <TD NOWRAP BGCOLOR="white">
> I know how to set the BGCOLOR name/value with xsl:attribute.  
> Does anyone
> know how to describe "NOWRAP", a standalone attribute?
> TIA.
> - Thor
>  XSL-List info and archive:

 XSL-List info and archive:

Current Thread