Morrison, John wrote: >>From: Sylvain Wallez [mailto:[EMAIL PROTECTED]] >> > ><snip/> > >>The next thing that's needed for XSP to be as fast as a regular >>generator is a way to remove unneeded white space used for >>indenting in >>the XSP source : about half of produced SAX events are blank strings. >> > >*please*!!! Anything I can do to help... > Cool ;)
I was thinking of using a special attribute to direct white space filtering. The xml spec provides the xml:space attribute which can have the values "default" or "preserve". The xml spec says that when a document has no DTD, the default is to keep whitespace. We could violate this a bit and say that in an XSP the default is to strip whitespaces. Or, if we do not want to violate the spec, we can use a new xsp:space attribute, but we then have to take care or the interactions between this attribute and any xml:space in the XSP document. Implementation of this filter could take place in XSPMarkupLanguage.PreProcessFilter. Thoughts ? Sylvain -- Sylvain Wallez Anyware Technologies - http://www.anyware-tech.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]