Re: [xsl] A better solution...

Subject: Re: [xsl] A better solution...
From: David Carlisle <davidc@xxxxxxxxx>
Date: Thu, 25 Oct 2001 09:50:40 +0100
It's probably simpler to do away with the name and just do

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
	<xsl:output method="html" omit-xml-declaration="yes" indent="no"/>

	<xsl:param name="S"/>

	<xsl:template match="/">
		<xsl:apply-templates select="/Sections/Section[@Title=$S][1]"/>
	</xsl:template>

	<xsl:template match="Section">
		<!- ... -->
	</xsl:template>

</xsl:stylesheet>

David

_____________________________________________________________________
This message has been checked for all known viruses by Star Internet
delivered through the MessageLabs Virus Scanning Service. For further
information visit http://www.star.net.uk/stats.asp or alternatively call
Star Internet for details on the Virus Scanning Service.

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread