Re: [xsl] Rusty at XSLT, need help ("Oil can!, Oil can!")

Subject: Re: [xsl] Rusty at XSLT, need help ("Oil can!, Oil can!")
From: David Carlisle <davidc@xxxxxxxxx>
Date: Mon, 26 Apr 2010 22:12:20 +0100
On 26/04/2010 22:05, cknell@xxxxxxxxxx wrote:
What am I doing wrong?


most likely the input documents are in a namespace (but your fragment doesn't show that) but


<xsl:value-of select="Workbook/Worksheet[1]/Table/Row[3]/Data"

selects elements from no-namepace

since you are using xslt 2 you can set the xpath-default-namespace to th enamespace of the input elements (in xslt 1 you'd have to use

<xsl:value-of select="x:Workbook/x:Worksheet[1]/x:Table/x:Row[3]/x:Data"

where x is bound to whatever namespace the input uses.

David

Current Thread