[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: default namespace on input document
Hi David (we worked together briefly at Tesco :) > I'm having trouble matching a template in XSLT2. When I add a default namespace to my input document, my templates no longer match any elements. > > This is probably a trivial issue, but I'm new to XSL 2. Yes, it's a faq, you either need to set the xpath-default-namespace on the xsl:stylesheet element: <xsl:stylesheet xpath-default-namespace="http://www.w3.org/1999/xhtml" or add the xhtml namespace and then modify your paths: <xsl:stylesheet xmlns:x="http://www.w3.org/1999/xhtml" /x:html/x:head/x:title.... blah -- Andrew Welch http://andrewjwelch.com
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|