Subject: RE: XSLT and trees
From: francis <francis@xxxxxxxxxxx>
Date: Mon, 24 May 1999 19:41:05 +0100
|
Yes, this conversion is both possible and simple.
<!-- flattener -->
<xsl:template match="recursiveSource">
<flatTarget>
...
</flatTarget>
<xsl:apply-templates/>
</xsl:template>
(obviously if you wanted to keep the recursive structure you would put
the <xsl:apply-templates> *inside* the <flatTarget> element)
Francis.
>
> Date: Mon, 17 May 1999 05:41:47 PDT
> From: "Alexander Stiefel" <a_stiefel@xxxxxxxxxxx>
> Subject: XSLT and trees
>
> hi,
>
> I have a simple question, is it possible to convert a tree structure like a
> product catalog with a unknown depth into a plain structure (mother-son)
> using XSLT.
> I want to know if I can apply a kind of recursive algorithms to XML
> structures.
>
>
> thanx alx
--
Francis Norton.
The Melissa Virus - just nature's way of telling us we should have gone
Java
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|