[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: XSLT and trees
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|