This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Rescuing XSLT from Niche Status
> - I tend to put in a template matching the document element. So
> typically I might have:
>
> <!-- this is a copy of the built-in template for the root node -->
> <xsl:template match="/">
> <xsl:apply-templates />
> </xsl:template>
>
> <!-- this template actually produces something -->
> <xsl:template match="/*">
> <html>
> ...
> </html>
> </xsl:template>
I like this approach too, although I would tend to use different stylesheets
for HTML and WAP. But if the goal is to have a single style sheet that does
everything, this seems the way to go to me.
David
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list