Subject: Re: [xsl] XSLT2 variables / nodesets and their namespace From: Tom Schutzer-Weissmann <trmsw@xxxxxxxxxxx> Date: Fri, 21 Jan 2005 12:51:17 +0000 |
On Fri, 2005-01-21 at 12:10, David Carlisle wrote: [...] > You didn't say what your source looked like but perhaps your problem > isn't about generating elements at all but with selecting elements: > one example had > <xsl:copy-of select="head/*"/> > the other had > <xsl:copy-of select="f:head/*"/> > > the first one selects a head element in no-namespace the second selects > an element head in the xhtml namespace. Which element does your source > file have? The obvious question! Most of the problems I had were immediately fixed by setting the source's namespace to the xhtml one. Clearly my brain wasn't working last night - only succeeded in confusing myself (and possibly others...) > In XSLT1 you have no alternative but to use prefixes to select > namespaced elements, but in xslt2 you can make teh first unprefixed form > also select an xhtml head if you use the new > xpath-default-namespace="http://www.w3.org/1999/xhtml" > attribute on xsl:stylesheet This is what I was missing. It works now :) Thanks again, Tom
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] XSLT2 variables / nodeset, David Carlisle | Thread | [xsl] free XMLSpy version and xalan, Katharina Kreis |
RE: [xsl] XSLT2 variables / nodeset, Tom Schutzer-Weissma | Date | Re: [xsl] XSLT2 variables / nodeset, David Carlisle |
Month |