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



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.





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