Subject: Re: default namespace on input document
From: Martin Honnen <Martin.Honnen@xxxxxx>
Date: Tue, 15 Feb 2011 15:35:13 +0100
|
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/
|