lo all

i'd like to find the id attribute in the /application/module/ path. the
command i'm using to get that attribute is:

<copy path="/application/module/@id" attrvalue="true" property="id_value"/>

but when i echo the property it just gives me the property name $
{id_value} , which means that it has not been read out of my xml structure.

in several cases i have to put a : in front of my path, for reading out
the /application/display-name/text() i have to use

<copy path="/:application/:display-name/text()" property="dn_value"/>

to make it work. but i have read a lot of xpath tutorials but i did not
found a lesson where i have to put colon in front of every node.
so how do i read out this id as mentioned above ? it worked for me 2 weeks
ago but after trying it again today i only get an empty property.

Thats my xml file:

<?xml version="1.0" encoding="UTF-8"?>
<application id="Application_ID" version="1.4"
xmlns="http://java.sun.com/xml/ns/j2ee";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/application_1_4.xsd";>
      <display-name>EARFILE</display-name>
      <module id="WebModule_1213257640343">
            <web>
                  <web-uri>ABCPortlets.war</web-uri>>
                  <context-root>ABCPortlets</context-root>.
            </web>
      </module>
      <security-role id="SecurityRole_1220508656187">
            <role-name>allAuthenticated</role-name>
      </security-role>
</application>


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Xmltask-users mailing list
Xmltask-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xmltask-users

Reply via email to