This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: 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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]