Hi woric, >>My advice for keeping presentation and content >>seperate, which is what vlad is promoting here, >>though he doesnt know that, is to author in XML >>and then use XSLT to create the HTML for you. I think we're saying the same thing. XHTML is XML and the latest XHTML spec (with the exception of maybe 4 tags) cleanly separates formatting from data.
>>One of the main benefits of using XSLT is that it >>seperates the presentation [the HTML] and the content XSLT is a wonderful language but it has nothing to do with separating presentation from content. XSLT does one thing and one thing only - it transforms in input document into an output document based on rules. >>For example, write the faq in Xml: >><FAQ Q="Place question here"> >>The answer goes in here. >></FAQ> There is nothing wrong with this. But when you write semantically rich content, you end up using a dialect of XML like DocBook or XHTML. Regards, -Vlad XStandard Development Team http://xstandard.com XStandard XHTML WYSIWYG editor ----- Original Message ----- From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, March 24, 2004 6:07 PM Subject: Re: [WSG] Serving XHTML as application/xhtml+xml > > Depending on the type of document (FAQs, press release, staff list, etc), > > they run an XSLT to re-format the content. For example, for FAQs, the > XSLT > > goes through each header, anchors it and creates a list of hyperlinks at > the > > top of the page to jump to each FAQ. You can only do this if you author > your > > content in XHTML. > > Sorry to be a pedant, but this statement is misleading and in my opinion, > not very good advice. > > Using XSLT to transform a document is not limited to XHTML, and using XHTML > as the source for XSLT is taking one step forward so you can take 2 steps > backwards. One of the main benefits of using XSLT is that it seperates the > presentation [the HTML] and the content, which wont happen if you use XHTML. > > My advice for keeping presentation and content seperate, which is what vlad > is promoting here, though he doesnt know that, is to author in XML and then > use XSLT to create the HTML for you. > > For example, write the faq in Xml: > > <FAQ Q="Place question here"> > The answer goes in here. > </FAQ> > > Then apply a XSLT script to transform this into a valid Html document. > > woric > > PS: I do this on every website I make. See http://xsltfilter.tigris.org > > ***************************************************** > The discussion list for http://webstandardsgroup.org/ > See http://webstandardsgroup.org/mail/guidelines.cfm > for some hints on posting to the list & getting help > ***************************************************** > > ***************************************************** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list & getting help *****************************************************