Sylvain Wallez wrote: > Morrison, John wrote: > > 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 ?
Can't we test to see if the length of the content is longer than 0? <xsl:if test="string-length(string(.)) > 0"> <!-- do the real stuff --> </xsl:if> -- "They that give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety." - Benjamin Franklin --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]