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: template pattern does not get matched properly with xmlns declaration




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


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