xml editor

Supported platforms

Compatible with Windows7 & Mac OS X Snow Leopard

Ready for data server software
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

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


Subject: [xsl] Simple xpath expression---child node of variable---stumping me
From: Steve Fogel <STEVE.FOGEL@xxxxxxxxxx>
Date: Tue, 10 May 2011 23:58:55 -0700 (PDT)

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
XML Editor | XML Author | WYSIWYG Editors | Schema Editor | XSD Documentation | XSL/XSLT Editor | XQuery | XML Databases | SVN Client
© 2002-2011 SyncRO Soft Ltd. All rights reserved. | Sitemap | Privacy Policy | This website was created & generated with <oXygen/>®XML Editor