xsl-list
[Top] [All Lists]

Re: [xsl] Simple xpath expression---child node of variable---stumping me

2011-05-11 02:12:28
You aren't in the right namespace.
-W

On 11 May 2011 08:58, Steve Fogel <STEVE(_dot_)FOGEL(_at_)oracle(_dot_)com> 
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

--~------------------------------------------------------------------
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>
--~--



--~------------------------------------------------------------------
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>
--~--

<Prev in Thread] Current Thread [Next in Thread>