Re: newbie
by Christopher Higgs <chiggs(at)unimelb.edu.au>
|
Date: |
Fri, 24 Jan 2003 09:12:17 +1100 |
To: |
Kevin Waterson <kevin(at)oceania.net>, hwg-xml(at)hwg.org |
In-Reply-To: |
oceania |
|
todo: View
Thread,
Original
|
|
G'Day Kevin,
At 09:00 PM 23/01/2003 +1100, Kevin Waterson wrote:
>it all works fine and hoopy but I wondered at having multiple
>documents within the same template.
Using a simple translation like this it is very easy to expand further -
just add whatever you want:
>Here I have a snippet from a document I am trying to create
>
><link href="./themes/default/css/blah.css" type="text/css"
>rel="stylesheet"></link>
> <html>
> <body>
> <div id="Header">
> <xsl:for-each select="userroot/result/row">
> <span class="topmenu"><A href="{url}"> <xsl:value-of
> select="name"/> </A></span>
> </xsl:for-each>
> </div>
<h2>Second Table</h2>
<div id="Header2">
<xsl:for-each select="(some other result)">
<span class="topmenu"><A href="{url}"> <xsl:value-of
select="name"/> </A></span>
</xsl:for-each>
</div>
> </body>
> </html>
></xsl:template>
>
></xsl:stylesheet>
>Is it possible, to have another template on the same page?
>or am I wide of the mark here and missing something basic.
>My only real guide is the w3schools site.
You can keep adding as much as you like. I've found the Wrox book
"Beginning XSLT" very easy to follow.
Chris Higgs
Manager, New Learning Technology
ILFR, University of Melbourne
http://www.landfood.unimelb.edu.au/
Phone: +61 3 8344 9749 Fax: + 61 3 9348 2156
HWG hwg-xml mailing list archives,
maintained by Webmasters