This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
select following-siblings, but not all of them
- To: XSL-List at lists dot mulberrytech dot com
- Subject: [xsl] select following-siblings, but not all of them
- From: Matthias Häußer <haeusser at debis dot com>
- Date: Tue, 19 Dec 2000 14:00:08 +0100
- Organization: the Systemhaus formerly known as debis
- Reply-To: xsl-list at lists dot mulberrytech dot com
Hi,
when I have something like
<name>Tom</name>
<remark>1</remark>
<remark>2</remark>
<remark>3</remark>
<name>John</name>
<remark>4</remark>
<remark>5</remark>
<remark>6</remark>
is there a way of creating something like
Tom: 1,2,3
John: 4,5,6 ?
I know the document / DTD should support this better, but I cannot
change it.
With
<xsl:for-each select="name">
<xsl:value-of select="."/>
<xsl:for-each select="following-sibling::node()">
...
I get far too much. Can I somehow restrict the selection to
"the following siblings, up to the first occurence whose name
is not 'remark' "?
Matthias
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list