Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: node-set($variable) just won't allow any results - what do I need to change?

From: ParanoidMike <mikesmithlonergan@-----.--->
To: NULL
Date: 7/6/2007 11:51:00 AM

On Jul 6, 8:12 am, Martin Honnen <mahotr...@yahoo.de> wrote:
> ParanoidMike wrote:
> > I'm sure I *do* misunderstand.  Do you have any suggestions for how I
> > could achieve what I want within the existing environment?
>
> It might work to simply use XPath expression alike
>    /ThreatModel/Threats/*[local-name() = concat($ThreatCategory,
> 's')]/Threats/*[local-name() = $ThreatCategory]
> that way you are not able to dynamically evaluate XPath expressions in
> general but for a limited set the check *[local-name() = $someVariable]
> might suffice.
>
>         Martin Honnen --- MVP XML
>        http://JavaScript.FAQTs.com/

Thank you.  And in case there's still room for misunderstanding: if
"$ThreatXPath is not a result tree fragment, it is a string with an
XPath
expression", is there some way I can rewrite my code to turn
$ThreatXPath into an RTF, so the node-set() I thought I was able to
achieve would work?

Or is the use of the local-name() function the closest I'd ever get?

Thanks again!
Mike



transparent
Print
Mail
Digg
delicious
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent