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: templates around templates.


> The XML------------
> <Conversation>
> <Request>
> <RequestLine>
> request line 1
> </RequestLine>
> <RequestLine>
> request line 2
> </RequestLine>
> </Request>
> </Conversation>
> --------- End XML

<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
version="1.0">
<xsl:template match="/">
	<xsl:apply-templates/>
</xsl:template>

<xsl:template match="Conversation">
	<xsl:apply-templates/>
</xsl:template>

<xsl:template match="Request">
	<P style="color-red">
	<xsl:apply-templates/>
	</P>
</xsl:template>

<xsl:template match="RequestLine">
	<I>
	<xsl:value-of select="."/>
	</I>
</xsl:template>
</xsl:stylesheet>

Igor.


 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]