[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: xsl:include problems
My mistake - now I see. You're right, I wasn't declaring the xsl: namespace prefix in "replace_string.xsl". Here is what I have now in "replace_string.xsl": <?xml version="1.0" encoding="UTF-8" ?> <stylesheet version="1.0" xmlns="http://www.w3.org/1999/XSL/Transform" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> I just put in the last "xmlns:xsl" line. But it still doesn't work - I'm still getting a blank page. Here is the top of my main style sheet: *--------------------------------- <?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"> <xsl:include href="replace_string.xsl" /> *--------------------------------- Is there something more I need to do? >>> 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/
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|