Skip to content

Feature Request: Add a type resolver in a similar way to the namespace resolver. #15

@Parakleta

Description

@Parakleta

Let me start by saying this library has been a lifesaver for us, so thank you.

We are using this to run the XPath expressions from an XSD document to pre-validate a user generated XML document before it is submitted through a webpage. When full validation is done with the schema document type annotations are added which are then used by the XPath expressions.

I'd like to be able to use the same XPath assertion expressions in the webpage but this requires that the XPath executor have knowledge of the types of the elements. I have a patch which I have started using to achieve this here: https://gist.github.com/Parakleta/3fd775fc9170954280bb

It would be good if this functionality could please be added to the jquery.xpath library.

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions