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: AW: AW: [xsl] xhtml output formating problems / passing through pre defined static xhtml
by David Carlisle other posts by this author
Sep 9 2004 3:49PM messages near this date
Re: AW: AW: [xsl] xhtml output formating problems / passing through pre defined static xhtml | [xsl] Table error
>  How can i store it in a variable?
well you can't if it's not a well formed fragment.

You have several options, just store the top and bottom bits separately
in two variables, then your template can do

<div> 
<xsl:copy-of select="top-stuff"/> 
 .... template stuff
<xsl:copy-of select="bottom-stuff"/> 
</div> 

Or possibly you would prefer to keep it all inline and tell xslt not to
strip space from xhtml elements in teh stylesheet so that just means
adding

<xsl:preserve-space elements="h:*"/> 

to the top level of your stylesheet, assuming h: is bound to teh xhtml
namespace


or you can add newlines explictly with
<xsl:text> &#10;</xsl:text>

or ...

David

________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

--+------------------------------------------------------------------
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@[...].com> 
--+--

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