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 >> exslt
exslt
RE: [exslt] question about newline in xslt
by Michael Kay other posts by this author
Mar 4 2002 8:25AM messages near this date
[exslt] question about newline in xslt | [exslt] using EXSLT with Saxon
Perhaps you were outputting HTML? If you want a newline that is visible in
the document as displayed by the browser, you should output <BR/> .

Outputting <xsl:text> &#xa;</xsl:text> should give you a newline in the
generated file, but this is displayed as a space by an HTML browser.

Michael Kay
Software AG
home: Michael.H.Kay@[...].com
work: Michael.Kay@[...].com

>  -----Original Message-----
>  From: exslt-admin@[...].com
>  [mailto:exslt-admin@[...].com]On Behalf Of Michelle yuan
>  Sent: 04 March 2002 08:04
>  To: exslt@[...].com
>  Subject: [exslt] question about newline in xslt
> 
> 
>  Hello,
> 
> 
>    I am beginning learner of xslt, and I have trouble
>  with newline charater in xslt transform stylesheet. I
>  put code:
> 
>  <xsl:text> &#xD; &#xA; </xsl:text>
> 
>   It did not give me newline or CR in output at all.
>   I wonder how I have to do to get it works. Thanks!
> 
> 
> 
>    Michelle
> 
>  __________________________________________________
>  Do You Yahoo!?
>  Yahoo! Sports - sign up for Fantasy Baseball
>  http://sports.yahoo.com
>  _______________________________________________
>  exslt mailing list
>  list@[...].org
>  http://www.exslt.org/list
> 

_______________________________________________
exslt mailing list
list@[...].org
http://www.exslt.org/list
Thread:
Michelle yuan
Michael Kay

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