Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: [xsl] XSL 2.0 and .NET and VB

From: Florent Georges <darkman_spam@-------->
To:
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


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent