Re: How to Display multiple items

Subject: Re: How to Display multiple items
From: David Carlisle <davidc@xxxxxxxxx>
Date: Thu, 2 Dec 1999 11:36:43 GMT


> I have following part of code in my xml file (which is well-formed according
> to my DTD).

do your topic and method elements just take character data or are there
other elements that may appear there? n the latter case you almost
certainly don't want to use value-of at all, but rather use
<xsl:apply-templates select="topic">
<xsl:apply-templates select="method">

and then add templates for topic and method. that would make all your
method elements be processed.

If it is just character data, and you don't want to make new templates,
(eg if you are using the literal result template form)

change

<xsl:value-of select="method" />

to
<xsl:for-each select="method">
  <xsl:value-of select="." />
</xsl:for-each>

David


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


Current Thread