xsl-list
[Top] [All Lists]

RE: xsl:include problems

2005-05-31 10:01:36
xmlns="namespace URI" declares the "default" namespace. So any element
with no prefix is in that namespace URI. To associate a namespace URI
with a namespace prefix, the attribute name is xmlns:prefix="namespace
URI" where prefix is whatever you want to use. This allows you to mix
elements from different namespaces.

Douglas Ross 
Developer, HTML UI Framework 
Kronos 
www.kronos.com 


-----Original Message-----
From: Hardy Merrill [mailto:HMerrill(_at_)dhcr(_dot_)state(_dot_)ny(_dot_)us] 
Sent: Tuesday, May 31, 2005 12:47 PM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com; 
mike(_at_)saxonica(_dot_)com
Subject: RE: [xsl] xsl:include problems

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(_at_)saxonica(_dot_)com 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/ 



--~------------------------------------------------------------------
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>
--~--


--~------------------------------------------------------------------
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>
--~--


--~------------------------------------------------------------------
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>
--~--



<Prev in Thread] Current Thread [Next in Thread>