Re: [xsl] generate-d( ) not working

Subject: Re: [xsl] generate-d( ) not working
From: David Carlisle <davidc@xxxxxxxxx>
Date: Wed, 2 Jul 2003 09:37:04 +0100

> How do you make some section of your XSLT be processed in the end? 

an xsl template is a "template" of the result, if you want the code to
come at the end


> Do you know how the ordering works for the templates i.e which template gets
> processed first when the output HTML is being generated?

The templates match elements on the source tree and convert them to
elements in the result, within each template it is an apply-templates
command that triggers furthertemplates, so if you want to place result
elements before or afterthat it is your choice.


> I am confused as to what your questions is.
Your templates all looked like this

<img src="dateicon.gif"><xsl:value-of select="@name"/></img>

which will (if there is a name attribute in your source)
produce something like
<img src="dateicon.gif">abc</img>

I was asking why you were generating elements in that form since that is
not html, an html image element never has any content or an end tag,
only attributes.

David


________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread