Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » XPath ancestor axis + XPath node
XPath ancestor axis + XPath node [message #26705] Tue, 17 July 2007 06:50 Go to next message
Zsolt Paroczi is currently offline Zsolt Paroczi
Messages: 3
Registered: July 2009
Junior Member
Hi,

I would like to know whether the JET2 XPath engine supports the following
XPath axises : ancestor::, ancestor-or-self::, following-sibling::, etc.

If I use above axes I get an error message:


<c:iterate select="$var/ancestor::node()" var="ancestor">
// Do something....
</c:iterate>

Error: Unknown axis: {0}ancestor

I suppose some axis has not been support yet.


Other question ;

How can I access an Xpath node in a custom tag or in a custom Xpath
function
source code?


Thanks forward,
Zsolt
Re: XPath ancestor axis + XPath node [message #26826 is a reply to message #26705] Tue, 17 July 2007 13:07 Go to previous message
Paul Elder is currently offline Paul Elder
Messages: 849
Registered: July 2009
Senior Member
Zsolt:

No, the XPath engine does not. But feel free to submit an enhancement
request:

https://bugs.eclipse.org/bugs/enter_bug.cgi?product=M2T& version=unspecified&component=Jet&rep_platform=PC&am p;op_sys=Windows%20XP&priority=P3&bug_severity=enhan cement&bug_status=NEW&bug_file_loc=http%3A%2F%2F& ;short_desc=&comment=&commentprivacy=0&keywords= &dependson=&blocked=&maketemplate=Remember%20val ues%20as%20bookmarkable%20template&form_name=enter_bug&a mp;assigned_to=m2t.jet-inbox%40eclipse.org

Paul
"Zsolt Paroczi" <paroczizs@ext.t-mobile.hu> wrote in message
news:4ccc3b064526b5b511161126b2de155c$1@www.eclipse.org...
> Hi,
>
> I would like to know whether the JET2 XPath engine supports the following
> XPath axises : ancestor::, ancestor-or-self::, following-sibling::, etc.
>
> If I use above axes I get an error message:
>
>
> <c:iterate select="$var/ancestor::node()" var="ancestor">
> // Do something....
> </c:iterate>
>
> Error: Unknown axis: {0}ancestor
>
> I suppose some axis has not been support yet.
>
>
> Other question ;
>
> How can I access an Xpath node in a custom tag or in a custom Xpath
> function source code?
>
>
> Thanks forward,
> Zsolt
>
Previous Topic:Passing XPath result to custom tag
Next Topic:namespace support for JET Xpaths yet?
Goto Forum:
  


Current Time: Thu Sep 18 23:55:49 GMT 2014

Powered by FUDForum. Page generated in 0.01814 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software