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

Re: Nestled Template Surrealism

Subject: Re: Nestled Template Surrealism
From: "dante" <dante@xxxxxxxxxxxxx>
Date: Sat, 21 Jul 2001 00:16:35 +0800
nestled templates
Hi Jeni,

Thanks for the image_link fix - works great.

> I think the root of your problem here is that you never apply
> templates to the book elements. You need to have something like:
>
>   <div align="center">
>     <xsl:apply-templates />
>   </div>

I've already tried that - the second nestled table (with all the non image
data) is not being displayed.
Now it looks like:

<br /><br /><div align="center">

 <xsl:for-each select="/">
  <xsl:apply-templates select="book[@variant = 'Book' and @style =
'Fiction']" />
  <xsl:apply-templates select="book[@variant = 'Book' and @style =
'Non-Fiction']" />
  <xsl:apply-templates select="book[@variant = 'Graphic_Novel' and @style =
'Fiction']" />
  <xsl:apply-templates select="book[@variant = 'Magazine' and @style =
'Non-Fiction']" />
 </xsl:for-each>

</div><br /><br />


> where at the moment you have a commented-out xsl:for-each.
? I'm not sure what you're looking at... :)


It could be that my concept is unworkable in XSL:
I'm trying to apply 4 separate templates (above) that each contain different
apply templates from individual elements.
Something like:
----------------------------
    root
        |---master template 1
        |        |---element template a
        |        |---element template c
        |--- master template 2
        |        |---element template a
        |        | ---element template b
---------------------------------

For a more detailed view:
http://www.vianet.net.au/~dante/xml/Library_Concept.txt

Thanks,
            Oliver
            dante@xxxxxxxxxxxxx
            www.vianet.net.au/~dante




 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.