[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Controlling Whitespace in IE
Hi Spencer, The solution which Mukul gave to you, seems to work in general: you can "append" whitespace to element-nodes but not to text-nodes. Oddly enough, there is also a differemce in whitespace handling for output indent="no" and indent="yes": only "no" eliminates all whitespace. Regards, Manfred On 04/05/06, Martin Gadbois <martin.gadbois@xxxxxxxxxxxx> wrote: href="something"><em><xsl:apply-templates/></em></a>-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 </xsl:text></xsl:when>> </xsl:template> > > <xsl:template match="text()"> > <xsl:choose> > <xsl:when test="normalize-space(.) = ''"><xsl:text> > <xsl:otherwise><xsl:value-of select="."/></xsl:otherwise> > </xsl:choose> > </xsl:template> > > </xsl:stylesheet> > > IE does not seem to be translating the normalize-space funtion correctly. > > For instance, when I put a 1 before the <xsl:text> </xsl:text> in > firefox I get 1's exactly where I would expect them and foo and bar > are seperated by a space. However in IE, no 1's appear. Does anybody > know of a hack or work around for this. > > Thanks, > > Spencer > Victoria BC, Canada
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|