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

RE: xsl:include problems

Subject: RE: xsl:include problems
From: "Ross, Douglas" <DRoss@xxxxxxxxxx>
Date: Tue, 31 May 2005 13:01:36 -0400
xsl include namespace
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@xxxxxxxxxxxxxxxx]
Sent: Tuesday, May 31, 2005 12:47 PM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx; mike@xxxxxxxxxxxx
Subject: RE:  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@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

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.