ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> xsl-list
xsl-list
Re: [xsl] grouping headers
by Jeni Tennison other posts by this author
Aug 24 2001 9:48AM messages near this date
RE: [xsl] grouping headers | RE: [xsl] FW: Toggling radio buttons
Hi Corey,

Just a quick thing - you're using disable-output-escaping where you
don't need to, i.e.:

>    <xsl:text disable-output-escaping="yes">
>  </xsl:text> <!-- hard return to make it look pretty -->

Disable-output-escaping disables output escaping - it stops < and &
signs from being escaped (as &lt; and &amp;) when they're serialised
in the output. It will only have an effect on characters that are
escaped when they're output; line breaks are not one of these
characters, so the above is exactly the same as:

  <xsl:text> 
</xsl:text> <!-- hard return to make it look pretty -->

The other thing that I find makes this look neater is to use a
character reference for the line break rather than the character
itself. The above is exactly the same as:

  <xsl:text> &#xA;</xsl:text><!-- hard return to make it look pretty -->

or:

  <xsl:text> &#10;</xsl:text><!-- hard return to make it look pretty -->
  
Cheers,

Jeni

---
Jeni Tennison
http://www.jenitennison.com/


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
Thread:
Elisabeth Kaminski
Jeroen Janssen
Jeni Tennison
Corey Spitzer
Jeni Tennison
Robert Koberg
Elisabeth Kaminski
Robert Koberg
Elisabeth Kaminski
Robert Koberg
Robert Koberg
Elisabeth Kaminski

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved