[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

AW: AW: AW: xhtml output formating problems / passing

Subject: AW: AW: AW: xhtml output formating problems / passing through pre defined static xhtml
From: Dominic Krüger <dominic@xxxxxxxxxxxxxxx>
Date: Thu, 9 Sep 2004 18:24:57 +0200
xhtml variables
> How can i store it in a variable?
well you can't if it's not a well formed fragment.

This would be well formatted:

<html>
<head><head>
<body>
	<div>
		<div>
		</div>
	</div>
</body>
</html>


And this would not:

<html>
<head><head>
<body>
	<div>
		<div>


Example 1 would work in a xsl:variable and examlpe 2 wouldn't
Or am I completly stupid???



-----Urspr|ngliche Nachricht-----
Von: David Carlisle [mailto:davidc@xxxxxxxxx]
Gesendet: Donnerstag, 9. September 2004 17:50
An: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Betreff: Re: AW: AW:  xhtml output formating problems / passing through
pre defined static xhtml


> 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
________________________________________________________________________

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.