Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for XPath functions #2

Open
GoogleCodeExporter opened this issue Mar 25, 2015 · 0 comments
Open

Support for XPath functions #2

GoogleCodeExporter opened this issue Mar 25, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

Does omnixml support XPath functions - specifically "contains".  The following 
does not seem to work:

XPath expresstion: //*[contains(@xlink:role,'normal')]/link:loc/@xlink:label

<?xml version="1.0" encoding="UTF-8"?>
<link:linkbase xmlns:link="linking_namespace" xmlns:xlink="xlinking_namespace">
  <link:presentationLink xlink:role="fancy">
    <link:loc xlink:label="part1"/>
    <link:loc xlink:label="part2"/>
    <link:loc xlink:label="part3"/>
  </link:presentationLink>
  <link:presentationLink xlink:role="normal">
    <link:loc xlink:label="part1"/>
    <link:loc xlink:label="part2"/>
    <link:loc xlink:label="part3"/>
  </link:presentationLink>
  <link:presentationLink xlink:role="funny">
    <link:loc xlink:label="part1"/>
    <link:loc xlink:label="part2"/>
    <link:loc xlink:label="part3"/>
  </link:presentationLink>
</link:linkbase>

I am using the code from the XPath demo supplied - am I doing something wrong?

Original issue reported on code.google.com by [email protected] on 25 Jul 2013 at 10:03

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant