Re: [xslt] <td nowrap width="123"> legal xml ?



On Mon, 16 Jul 2001, Tom Moog wrote:

>
> An attribute without a value appears to be common
> in html, but is it legal xml ?  libxslt gives the
> following message:
>
>   Specification mandate value for attribute nowrap
>
> If it is not legal xml, should I treat it as text
> (e.g. &lt;td ...) ?
>
> When I look at the xhtml schema I see this:
>
> <xsd:attributeGroup name="th.legacy.attlist">
>   <xsd:attribute name="nowrap" use="default" value="none"/>
>   <xsd:attribute name="bgcolor" type="Color"/>
>   <xsd:attribute name="width" type="Length"/>
>   <xsd:attribute name="height" type="Length"/>
> </xsd:attributeGroup>
>
> the "value=none" seems to imply that this is legal.
>
> Tom Moog
> Polhode, Inc.

It's not legal; according to the specs you have to say 'nowrap="nowrap"'. The
output method should deal with it appropriately.

-- 
Ignacio Vazquez-Abrams  <ignacio@openservices.net>





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]