[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: XSLT and trees

Subject: RE: XSLT and trees
From: francis <francis@xxxxxxxxxxx>
Date: Mon, 24 May 1999 19:41:05 +0100
xslt unknown depth
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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.