xsl-list
[Top] [All Lists]

Re: [xsl] [xslt] enhance match condition for next node referance

2009-03-19 12:24:37


David, it was my understanding that any text node containing only
whitespace was always stripped. Is this an option, or am I just wrong?

do you <b>really</b> <i>want</i> <b>this</b>

to appear as reallywantthis? in a browser>

msxml famously does this by default but it should not. it breaks things.

In XSLT2 there are modified default stripping behaviour for documents
that are validated by dtd or schema (losing white space in element
content) but in both xslt 1 and 2 the safest way to strip white space on
input is to use xsl:strip-space elements="*"



David

________________________________________________________________________
The Numerical Algorithms Group Ltd is a company registered in England
and Wales with company number 1249803. The registered office is:
Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.

This e-mail has been scanned for all viruses by Star. The service is
powered by MessageLabs. 
________________________________________________________________________

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--