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

Need 'new line' in list

Subject: Need 'new line' in list
From: Linda Zammit <binky_35@xxxxxxxx>
Date: Wed, 26 Sep 2001 11:50:23 -0400 (EDT)
xsl insert newline
I am trying to insert a new line in a list in order to
obtain this html display:

BILL-TO
SHIPPER
and CONSIGNEE

but I keep getting this:

BILL-TO SHIPPER and CONSIGNEE

I have tried to insert a new line (&#10) but it
doesn't work.  I can see the placement is correct in
the template 'make-list' as it displays in the right
place in the html, but doesn't give a 'new line'.

I also tried may other suggestions from the mail list
archive and reference books.  


Thanks in advance.
Linda



xml - just an example, it has more elements than this:

<INVOLVED_PARTY>
	<INVOLVED_PARTY_QUAL>BILL-TO</INVOLVED_PARTY_QUAL>
<INVOLVED_PARTY>
<INVOLVED_PARTY>
	<INVOLVED_PARTY_QUAL>SHIPPER</INVOLVED_PARTY_QUAL>
<INVOLVED_PARTY>
<INVOLVED_PARTY>
	<INVOLVED_PARTY_QUAL>CONSIGNEE</INVOLVED_PARTY_QUAL>
<INVOLVED_PARTY>


	<xsl:variable name="list">
	<xsl:call-template name="make-list">
	<xsl:with-param name="names"
select="SHIPMENT_INVOLVED_PARTY/ROW/INVOLVED_PARTY_QUAL_GID"/>
	</xsl:call-template>
	</xsl:variable>
	<xsl:value-of select="$list"/>


		<xsl:template name="make-list">
			<xsl:param name="names"/>
			<xsl:for-each select="$names">
			<xsl:value-of select="."/>
			<xsl:if
test="position()!=last()"><xsl:text>&#10;</xsl:text>
			</xsl:if>
			<xsl:if test="position()=last()-1"> and </xsl:if>
			</xsl:for-each>
		</xsl:template>


_______________________________________________________
Do You Yahoo!?
Get your free @yahoo.ca address at http://mail.yahoo.ca

 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.