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
http://www.w3.org/TR/xhtml1/#diffs 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.

-Christopher




Please respond to [EMAIL PROTECTED]

To:   [EMAIL PROTECTED]
cc:

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
this:
  <td nowrap>

to prevent the table cell in HTML from wrapping and got this error on the
screen:
  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)

Comments?
-Mark





---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>

Reply via email to