[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: default namespace on input document

Subject: Re: default namespace on input document
From: Andrew Welch <andrew.j.welch@xxxxxxxxx>
Date: Tue, 15 Feb 2011 14:38:32 +0000
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

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.