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

RE: Container HTML around recursive collection

Subject: RE: Container HTML around recursive collection
From: "Chris Bayes" <Chris@xxxxxxxxxxx>
Date: Wed, 20 Jun 2001 10:51:01 +0100
container html
David,

>Hi Chris,
>
>I am sorry my code is so ugly. I really am a novice at XSL.
>
>I am afraid that I still don't see how the dirTOxml example
>relates since it relies on  <xsl:apply-templates> and
><xsl:template match=????>. I thought that this would not work with
>things like:
><item>
>  <item/>
>  <item/>
>  <item/>
>    <item/>
>    <item/>
>  </item>
>  <item/>
></item>

That is the whole point of xslt that is what it is for

<xsl:template match="item">
	<div>
		<xsl:apply-templates />
	</div>
</xsl:template>

will give you

<div>
  <div>if you had something here</div>
  <div/>
  <div>
    <div/>
    <div/>
  </div>
  <div/>
</div>

in the dirTOxml template it works on xml where all container elements are
called folder which can be as deep as your hard drive can handle.

Ciao Chris

XML/XSL Portal
http://www.bayes.co.uk/xml


 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.