Subject: Re: template pattern does not get matched properly with xmlns declaration
From: David Carlisle <davidc@xxxxxxxxx>
Date: Thu, 18 Jan 2001 15:48:23 GMT
|
This is perhaps the most F of FAQs:-)
<xsl:template match="/IPDRDoc">
matches an element called IPDRDoc in the null namespace but you have an
element of that name in a namespace http://www.ipdr.org/namespaces/ipdr
so you need to add
xmlns:x="http://www.ipdr.org/namespaces/ipdr"
to your xsl:stylesheet element then have
<xsl:template match="/x:IPDRDoc">
David
_____________________________________________________________________
This message has been checked for all known viruses by Star Internet delivered
through the MessageLabs Virus Control Centre. For further information visit
http://www.star.net.uk/stats.asp
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|