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

Re: Simple xpath expression---child node of variable-

Subject: Re: Simple xpath expression---child node of variable---stumping me
From: Wolfgang Laun <wolfgang.laun@xxxxxxxxx>
Date: Wed, 11 May 2011 09:12:13 +0200
Re:  Simple xpath expression---child node of  variable-
You aren't in the right namespace.
-W

On 11 May 2011 08:58, Steve Fogel <STEVE.FOGEL@xxxxxxxxxx> wrote:
> Hi, all...
>
> This seems like a no-brainer, but it's not producing the desired results.
>
> If $enumFig is declared as:
>
> <xsl:variable name="enumFig" as="element()+"
select="$enumerables//*[@sourceId=$figId]" />
>
> and in my debugging <xsl:message> output, $enumfig is:
>
> <fig xmlns="http://dita4publishers.org/enumerables"
>      sourceId="topicidfig-38-24-22"
>      id="UNAMECommandOutput-FF8FD85A"
>      class="- topic/fig "><title>UNAME Command Output</title></fig>
>
> and <xsl:sequence select="$enumFig/*" />  returns this:
>
> <title xmlns="http://dita4publishers.org/enumerables">UNAME Command
Output</title>
>
> then why does the following return an empty sequence?
>
> <xsl:value-of select="$enumFig/title" />
>
> I'm stumped!!
>
> Thx
>
> Steve

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.