xsl-list
[Top] [All Lists]

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

2010-04-26 16:13:00
On 26/04/2010 22:05, cknell(_at_)onebox(_dot_)com 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

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--