[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

Subject: RE: Can't use variable as temporary tree in XSLT 2.0
From: cknell@xxxxxxxxxx
Date: Tue, 17 Oct 2006 14:22:41 -0400
temporary tree xslt
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/

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.