|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Nestled Template Surrealism
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
|
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
|

Cart








