cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christopher Painter-Wakefield" <>
Subject Re: [C2] using HTML "nowrap" in a <TD>
Date Fri, 26 Oct 2001 14:40:42 GMT

With Cocoon, you write XHTML and not HTML.  The main difference is that
XHTML is well-formed like XML, which is why you write e.g., <br/> instead
of <br> by itself.  Also, all attributes must have a value.  See for more info.  (This document, btw,
suggests that <td nowrap="nowrap"> is the preferred approach.)

If you look at the source in your browser, though, you'll just see <td
nowrap>, because Cocoon formats your XHTML into HTML as a final step.


Please respond to


Subject:  [C2] using HTML "nowrap" in a <TD>

This is weird.

I just tried putting a "nowrap" param to my <TD> tag in my XSL file like
  <td nowrap>

to prevent the table cell in HTML from wrapping and got this error on the
  Error creating the resource
    Failed to execute pipeline.

and in the log:
   org.xml.sax.SAXParseException: Attribute name "td" must be followed by
the '=' character.

I was able to get "around" this by changing my tag to this:
  <td nowrap="">

While obviously not valid HTML, the browser still takes it (IE anyway --
haven't tested with NetScrape)


Please check that your question has not already been answered in the
FAQ before posting. <>

To unsubscribe, e-mail: <>
For additional commands, e-mail: <>

View raw message