[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Can't use variable as temporary tree in XSLT 2.0
In the words of that immortal American icon Homer Simpson, "Doh!" Here is the opening tag of the stylesheet element: <xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ck="http://surreylane.net" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:x="urn:schemas-microsoft-com:office:excel"> Four namespaces, none of them default. However, the template matching the root has this: <xsl:template match="/"> <html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns="http://www.w3.org/1999/xhtml"> So there it was, hiding. I changed things around so that I now call a template by name from the spot where I want the elements to appear. They are produced in the called template which doesn't have any of the namspace complications. Thanks for the "whack on the side of the head". -- Charles Knell cknell@xxxxxxxxxx - email -----Original Message----- From: Michael Kay <mike@xxxxxxxxxxxx> Sent: Tue, 17 Oct 2006 18:21:06 +0100 To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx> Subject: RE: Can't use variable as temporary tree in XSLT 2.0 > Please someone tell me what I don't see. > A default namespace declaration on the xsl:stylesheet element, perhaps? Just guessing. 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
|