Subject: RE: [xsl] outputting unknown amount of child elements From: cknell@xxxxxxxxxx Date: Thu, 05 Feb 2004 07:49:03 -0500 |
This is what recursion is for. In your template that matches "item" output the value of the first text node "text()[1]", then apply-templates again. That will call the "item" template again. Your transformer will automatically stop processing when the source document runs out of "item" elements. -- Charles Knell cknell@xxxxxxxxxx - email
-----Original Message----- From: David Elsmore <delsmore@xxxxxxxxxxxxx> Sent: Thu, 05 Feb 2004 12:09:33 +0000 To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: [xsl] outputting unknown amount of child elements
Given the following consisting of embedded elements with a common name: <items> <item>Level 1 <item>Level 2 <item>A</item> <item>B</item> <item>Level 3 --- etc.---- </item> </item> <item> </items>
Heading Level 1 Heading Level 2 A B Heading Level 3
-- David Elsmore
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] outputting unknown amount, Emmanuil Batsis (Man | Thread | Re: [xsl] outputting unknown amount, David Elsmore |
Re: [xsl] Charsets in Saxon, Marcus Andersson | Date | Re: [xsl] table header respecting x, Rui Alberto L. |
Month |