[Xweb-developers] XWeb and JTidy
Brought to you by:
peterbecker
|
From: murphee (W. Schuster) <wer...@ne...> - 2004-01-06 16:00:15
|
howdy Peter, I am about to use XWeb to maintain a Website, well actually I am building the skeleton for a website, and other users will maintain it and provide content. Now, my problem is, those users, while tech savy, don't know a lot about XML, and even if they do, I don't want to force them to produce valid XHTML as input (I can picture myself getting mails telling me that "XWeb crashes with an exception", just because some input file was not valid). Now, this can be solved by pre-processing each file with JTidy; Initially I wanted to do this with Ant (basically just processing each file with JTidy and writing the resulting files to a temp directory, and then using that directory as input for XWeb; I won't do that right now, for some reasons, but might reconsider in the future). Now, I think it would be best to simply adapt XWeb to simply pre-process a file with JTidy before handing it to XSL; I found that I could simply do that in XSLDocument, where you open the file and generate it's DOM tree from it; Is this the only place that I have to change, or do I have to adapt something else? murphee -- Werner Schuster (murphee) Student of SoftwareEngineering and KnowledgeManagement Maintainer of the OGO-JOGI Project @ http://ogo-jogi.sourceforge.net/ |