This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: template pattern does not get matched properly with xmlns declaration
- To: xsl-list at lists dot mulberrytech dot com
- Subject: Re: [xsl] template pattern does not get matched properly with xmlns declaration
- From: David Carlisle <davidc at nag dot co dot uk>
- Date: Thu, 18 Jan 2001 15:48:23 GMT
- References: <872569D8.0054FCA8.00@server2.savillemail.com>
- Reply-To: xsl-list at lists dot mulberrytech dot com
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