RE: [xsl] xsl:include problems

Subject: RE: [xsl] xsl:include problems
From: "Hardy Merrill" <HMerrill@xxxxxxxxxxxxxxxx>
Date: Tue, 31 May 2005 12:47:03 -0400
Sorry, I should have included my stylesheet declaration:

<?xml version='1.0'?>
<xsl:stylesheet
	version="1.0"
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
	xmlns:msxsl="urn:schemas-microsoft-com:xslt">

I'm a relative newbie, but doesn't this line:

	xmlns:xsl="http://www.w3.org/1999/XSL/Transform";

declare the xsl namespace prefix?    Does that need to be changed?

Thanks.

Hardy Merrill

>>> mike@xxxxxxxxxxxx 5/31/2005 12:42 PM >>>
> We're using MSXML4 and I'm trying to get xsl:include to work 
> but I'm having trouble.  I created file "replace_string.xsl" 
> that contains this:
> 
> <?xml version="1.0" encoding="UTF-8" ?>
> <stylesheet version="1.0" 
> xmlns="http://www.w3.org/1999/XSL/Transform";>
> 
> <xsl:template name="replace-string">


You haven't declared the xsl: namespace prefix.

(MSXML's error reporting is not always brilliant...)

Michael Kay
http://www.saxonica.com/ 

Current Thread