On Fri, Feb 11, 2005 at 02:29:13PM +1100, James Gray wrote:
> On Fri, 11 Feb 2005 12:37 pm, Gavin Carr wrote:
> > On Fri, Feb 11, 2005 at 12:03:12PM +1100, Voytek wrote:
> > > I need to place contents of word files on a web pages;
> > > I've sorted catdoc/charset to output correct codepage text files,
> > >
> > > catdoc -scp1250 -d8859-2 381.rtf > 381.php
> > >
> > > but, then I need to insert '<br><br>' after every paragraph
> >
> > No, you need to wrap <p> </p> around every paragraph, and end up
> > with nice compliant xhtml. This is the 21st century, after all. ;-)
> 
> I thought the closing </p> was optional?  I know syntactically, leaving the 
> closing paragraph tag will be interpretted correctly by any modern browser, 
> but is it explicity a requirement to be xhtml compliant??

Absolutely.  XHTML is an XML-derived HTML-like markup language, and XML is
an SGML subset with the requirement that all tags must be closed, or
explicitly single (eg <br /> -- that slash at the end is the "don't look for
a closing tag because it ain't there" marker).

And shit does it make the parsing sooooo much easier to not have to know the
closing tag status of everything you hit...

- Matt

Attachment: signature.asc
Description: Digital signature

-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to