Merrilees, David wrote:
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.
Input:
<?xml version="1.0" encoding="UTF-8"?>
<html xmlns="http://www.w3.org/1999/xhtml">
<xsl:stylesheet
version="2.0"
xmlns="http://www.w3.org/1999/xhtml"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
Put
xpath-default-namespace="http:/www.w3.org/1999/xhtml"
here as an attribute on the xsl:stylesheet element.
exclude-result-prefixes="xsl">
--
Martin Honnen
http://msmvps.com/blogs/martin_honnen/
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--