ballsteve / xrust

XPath, XQuery, and XSLT for Rust
Apache License 2.0
84 stars 7 forks source link

Error with XSLT path expressions #96

Open emarsden opened 1 month ago

emarsden commented 1 month ago

An XSL template with a trivial Path expression

     <xsl:template match='/Example' />`

fails to compile in xslt::from_document (using the example code in the xrust::xslt documentation) with

extra characters found: ""Example""

though my reading of the compliance section of the documentation made me think this might work.

ballsteve commented 1 month ago

Thanks for the bug report, Eric. I'll look into this ASAP.

You are right, this is a fairly simple pattern and should work. I'll start by adding a test for this match pattern.

ballsteve commented 1 month ago

Oops... rookie error ;-)

I implemented abbreviated syntax for XPath expressions, but not for XPath patterns. I'm going to work on that now on incorporate the result into the next release (long with Daniel's other changes).

ballsteve commented 4 weeks ago

A PR has been submitted with the fix.

Devasta commented 3 weeks ago

Merged to Dev now.