ballsteve / xrust

XPath, XQuery, and XSLT for Rust
Apache License 2.0
90 stars 9 forks source link

XPath parse issue #85

Open Devasta opened 4 months ago

Devasta commented 4 months ago

Hi Steve,

So, if you can see in some of the work done for RelaxNG support, there is a stylesheet called "PatternPrepper" that I plan to use to convert the schema file into a pattern for validating the document. (Its running through most of the simplification steps as specified in https://relaxng.org/spec-20011203.html#simplification)

However, building the transformation context appears to be tripping up on the xpath expression on line 62.

*[namespace-uri() != 'http://relaxng.org/ns/structure/1.0']

I'll take a look when I can, it could 100% be the stylesheet in question.

patternprepper.zip

ballsteve commented 4 months ago

Hi Daniel,

I don’t think the namespace-uri function has been implemented. I’ll take a look ASAP.

Cheers, Steve

On 12 Jul 2024, at 8:19 AM, Daniel Murphy @.***> wrote:

Hi Steve,

So, if you can see in some of the work done for RelaxNG support, there is a stylesheet called "PatternPrepper" that I plan to use to convert the schema file into a pattern for validating the document. (Its running through most of the simplification steps as specified in https://relaxng.org/spec-20011203.html#simplification)

However, building the transformation context appears to be tripping up on the xpath expression

*[namespace-uri() != 'http://relaxng.org/ns/structure/1.0'] I'll take a look when I can, it could 100% be the stylesheet in question.

patternprepper.zip https://github.com/user-attachments/files/16184190/patternprepper.zip — Reply to this email directly, view it on GitHub https://github.com/ballsteve/xrust/issues/85, or unsubscribe https://github.com/notifications/unsubscribe-auth/AUCP5QMZR4VM2LBLAVG6DZDZL4AFRAVCNFSM6AAAAABKX2GVIWVHI2DSMVQWIX3LMV43ASLTON2WKOZSGQYDIMRUGE3DQOI. You are receiving this because you are subscribed to this thread.

Devasta commented 2 months ago

So checking the dev branch, the error is now:

Error parsing match pattern "rng:[name()='data' or name()='value'][not(@datatypeLibrary)]": extra characters found: "":[name()='data' or name()='value'][not(@datatypeLibrary)]""

New error messages are still progress. 😄

Devasta commented 2 weeks ago

This error is still there as of xrust 1.1