This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Need 'new line' in list
- To: "'XSL-List at lists dot mulberrytech dot com'" <xsl-list at lists dot mulberrytech dot com>
- Subject: [xsl] Need 'new line' in list
- From: Linda Zammit <binky_35 at yahoo dot ca>
- Date: Wed, 26 Sep 2001 11:50:23 -0400 (EDT)
- Reply-To: xsl-list at lists dot mulberrytech dot com
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 (
) 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> </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