Subject: RE: mixed implicit and explicit stylesheet - possible ?
From: "Simon Polz" <Simon.Polz@xxxxxxxxx>
Date: Mon, 7 Aug 2000 14:50:24 +0200
|
ok - thanks for your input - i fear i lacked some experience - i will
use the root template match for my custom document and just include or
import the general templates for generic transformations - that's what i
was looking for
a general question:
is there any material available on design patterns for xml/xslt ? kind
of what is available for object oriented problems (publisher -
subscriber)
thanks
simon
-----Original Message-----
From: Kay Michael [mailto:Michael.Kay@xxxxxxx]
Sent: Montag, 07. August 2000 11:14
To: xsl-list@xxxxxxxxxxxxxxxx
Subject: RE: mixed implicit and explicit stylesheet - possible ?
> is it possible to mix implicit and explicit stylesheets ?
>
> i need something like:
>
> <xsl:template match='Option[@Type="List"]'>
> <select>...</select>
> </xsl:template>
>
> <html xmlns:xsl="...">
> ...
> <td><xsl:value-of select="Section/@Name"/></td>
> <td><xsl:apply-template select="Option"></td>
> </html>
>
No, you need to wrap the <html> element within
<xsl:template match="/">
<html>
...
</html>
</xsl:template>
Mike Kay
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|