Posted by Marc on 01/24/06 11:09
David Dorward wrote:
>>>My own CMS takes XHTML input but runs it through some XSLT to
>>>output HTML 4.01, and this works pretty well for me.
>
>>For what reason? Why not just take HTML input and save your CMS the
>>work of converting it using XSLT?
>
> I had a lot of content in XHTML format already (from my XHTML fanboy days),
> and it makes it easier to convert content to ATOM and other XML formats.
I have a Java-based rich-text editor which outputs XHTML, and although
none of it is complex, my main problem is tag termination - ('<img ...
/>' instead of '<img ... >'). If I revert back to HTML, would XSLT be
the best way to convert this before putting it into the database? Or
would I be better of using some kind of regular expression in my PHP to
convert it?
Marc
[Back to original message]
|