View Single Post
  #2 (permalink)  
Old April 16th, 2012, 04:25 PM
mhkay's Avatar
mhkay mhkay is offline
Wrox Author
Points: 17,685, Level: 57
Points: 17,685, Level: 57 Points: 17,685, Level: 57 Points: 17,685, Level: 57
Activity: 37%
Activity: 37% Activity: 37% Activity: 37%
 
Join Date: Apr 2004
Location: Reading, Berks, United Kingdom.
Posts: 4,826
Thanks: 0
Thanked 263 Times in 258 Posts
Default

match="filedesc" matches an element whose local name is filedesc in no namespace. To match a filedesc element in namespace urn:isbn:1-931666-22-9", you need

Code:
<xsl:template match="u:filedesc" xmlns:u="urn:isbn:1-931666-22-9">
This is the most commonly asked question about XSLT by a very large margin.
__________________
Michael Kay
http://www.saxonica.com/
Author, XSLT 2.0 and XPath 2.0 Programmer\'s Reference
Reply With Quote