Re: [xsl] Nestled Template Surrealism

Subject: Re: [xsl] Nestled Template Surrealism
From: "dante" <dante@xxxxxxxxxxxxx>
Date: Sat, 21 Jul 2001 00:16:35 +0800
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