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

msxml and xml:space

Subject: msxml and xml:space
From: Simon Dell <simondl@xxxxxxxxxx>
Date: Fri, 16 Aug 2002 17:19:49 +0100
simon dell
hello people!

I wonder if anyone can offer a suggestion to this little problem.
I have an XSLT template which includes the following:

<xsl:for-each select="tabTitle">
<div class="tabTitle">
<xsl:attribute name="id">title<xsl:value-of select="position()"/>DIV</xsl:attribute>
<xsl:attribute name="style">position:absolute; left:<xsl:value-of select="40+((position()-1)*151)"/>px; top:57px; width:120px; height:46px; z-index:3</xsl:attribute>
<xsl:apply-templates select="./node()"/>
</div>
</xsl:for-each>


(sorry about any wrapping)

I would expect this to generate a number of lines similar to this one:
<div class="tabTitle" id="title1DIV" style="position:absolute; left:40px; top:57px; width:120px; height:46px; z-index:3">Hospital access</div>


...and this seems to be the case most of the time.

However, when my <xsl:template> tag includes the xml:space="preserve" attribute, neither of the <xsl:attribute/> tags from the main body of the template are acted apon and the DIVs come out w/out the attributes.

I'd like to be able to preserve the document spacing, so does anyone have any ideas?

Thanks!
simon



XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list


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.