View Single Post
  #2 (permalink)  
Old April 16th, 2012, 04:25 PM
mhkay's Avatar
mhkay mhkay is offline
Wrox Author
Points: 17,773, Level: 58
Points: 17,773, Level: 58 Points: 17,773, Level: 58 Points: 17,773, Level: 58
Activity: 9%
Activity: 9% Activity: 9% Activity: 9%
 
Join Date: Apr 2004
Location: Reading, Berks, United Kingdom.
Posts: 4,839
Thanks: 0
Thanked 267 Times in 262 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