Altova Mailing List Archives>Archive Index >xsl-list Archive Home >Recent entries >Thread Prev - Re: [xsl] XSL 2.0 and .NET and VB >Thread Next - Re: [xsl] XSL 2.0 and .NET and VB Re: [xsl] XSL 2.0 and .NET and VBTo: Date: 7/1/2007 12:06:00 PM "M. David Peterson" wrote:
> On Sun, 01 Jul 2007 05:27:13 -0600, Florent Georges wrote:
> > Actually, this is still a problem if you use @xml:space in
> > your stylesheet to preserve some whitespace nodes in literal
> > result elements, instead of using xsl:text. Hence your
> > advice: always use xsl:text for significant characters
> I knew there was a reason I was doing that!
The other point to use xsl:text is to not have non intended
whitespace in the output when you "indent" the stylesheet and have a
"well-indented" stylesheet where a string is surrounded by spaces and
newlines. The human eye is used to strip white spaces in XML, so you
not always see them:
<xsl:attribute name="href">
http://www.fgeorges.org/
</xsl:attribute>
<xsl:attribute name="href">
<xsl:text>http://www.fgeorges.org/</xsl:text>
</xsl:attribute>
Regards,
--drkm
_____________________________________________________________________________
Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
