[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

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

Subject: Re: Rusty at XSLT, need help ("Oil can!, Oil can!")
From: David Carlisle <davidc@xxxxxxxxx>
Date: Mon, 26 Apr 2010 22:12:20 +0100
Re:  Rusty at XSLT
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

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.