xpath and copied elements [message #57137] |
Thu, 12 February 2009 06:37  |
Eclipse User |
|
|
|
Hi,
I'm using JET 0.9.1v20080801.
I'm trying to load an external XML file with c:load and then copy it to
the in-memory model using c:copyElement.
The load and copy process work but after that i cannot access the newly
created nodes in the model using xpath.
For instance, if I have a model:
<root>
<entities file="myfile.xml" />
</root>
And myfile.xml contains:
<entities>
<entity name="entity1" />
<entity name="entity2" />
</entities>
I can load myfile.xml , remove the original entities element using
c:removeElement and and copy the new contents using c:copyElement so that
if i dump the in-memory model with <c:dump select="/*" /> I get:
<root>
<entities>
<entity name="entity1" />
<entity name="entity2" />
</entities>
</root>
However, if I try now a xpath expression like:
<c:iterate select="/root/entities/entity" var="e" >
the xpath expression returns no results. If I try:
<c:dump select="/root/child::*">
I only get:
<root>
</root>
Has anyone experienced this problem? Is this already a known bug?
Best regards,
- Juliano
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04471 seconds