[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

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

Not tried it myself, mind...

Ben

> -----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:  http://www.mulberrytech.com/xsl/xsl-list
> 


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



Current Thread