XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
David ChanSubject: line spacing
Author: David Chan
Date: 15 Feb 2006 04:30 AM

Hi all,

When I use to copy all element inside the node
<xsl:for-each select="Level1/Level2">
<xsl:copy-of select="."></xsl:copy-of>
</xsl:for-each>

How can i remove the extra spacing between elements?
<Level1>

<Level2>

<cust_code>TEST</ciust_code>

<cust_short_desc>TEST</cust_short_desc>

.....

to

<Level1>
<Level2>
<cust_code>TEST</ciust_code>
<cust_short_desc>TEST</cust_short_desc>

.....

Regards
Dave

Postnext
(Deleted User) Subject: line spacing
Author: (Deleted User)
Date: 15 Feb 2006 09:10 AM
Hi, David.

Try <xsl:strip-space elements="*"/>

Also, I'd like to again recommend Mulberry Technologies as a good resource for researching XSLT usage:

http://www.mulberrytech.com/xsl/xsl-list/index.html

David Foster
Stylus Studio Team

Posttop
David ChanSubject: line spacing
Author: David Chan
Date: 16 Feb 2006 02:45 AM
Thanks

 
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2011 All Rights Reserved.