Subject: RE: [xsl] Can't use variable as temporary tree in XSLT 2.0 From: cknell@xxxxxxxxxx Date: Tue, 17 Oct 2006 14:22:41 -0400 |
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: [xsl] 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/
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Can't use variable as tem, Michael Kay | Thread | [xsl] Got it!, Sam Carleton |
Re: [xsl] zap some node s and chang, Davide Antoni | Date | [xsl] How to apply templates to all, rfd ewrew |
Month |