This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: mixed implicit and explicit stylesheet - possible ?
- To: <xsl-list at mulberrytech dot com>
- Subject: RE: mixed implicit and explicit stylesheet - possible ?
- From: "Simon Polz" <Simon dot Polz at chello dot at>
- Date: Mon, 7 Aug 2000 14:50:24 +0200
- Reply-To: xsl-list at mulberrytech dot com
- Thread-Index: AcAAWF79aQceBsEiTiOBW5HSmTjmjQAFQByA
- Thread-Topic: mixed implicit and explicit stylesheet - possible ?
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@icl.com]
Sent: Montag, 07. August 2000 11:14
To: xsl-list@mulberrytech.com
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