Skip to content

Commit

Permalink
Remove XPath20 grammar, and some cleanup and update in README files
Browse files Browse the repository at this point in the history
  • Loading branch information
bertrand-lorentz committed Oct 20, 2023
1 parent 70895ab commit 7ca4342
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 348 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ See ".github/workflows/settings.xml".

Unit tests are available under `src/test/java/`. They show in particular a variety of EFX expressions and the corresponding XPath expression.

After running the unit tests with `mvn test`, you can generate a coverage report with`mvn jacoco:report`.
After running the unit tests with `mvn test`, you can generate a coverage report with `mvn jacoco:report`.
The report is available under `target/site/jacoco/`, in HTML, CSV, and XML format.

## Download
Expand Down
1 change: 0 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,6 @@
<exclude>**/EfxBaseListener.class</exclude>
<exclude>**/EfxLexer.class</exclude>
<exclude>**/EfxParser*.class</exclude>
<exclude>**/XPath20*.class</exclude>
</excludes>
</configuration>
<executions>
Expand Down
343 changes: 0 additions & 343 deletions src/main/antlr4/eu/europa/ted/efx/xpath/XPath20.g4

This file was deleted.

6 changes: 3 additions & 3 deletions src/main/java/eu/europa/ted/efx/xpath/README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Translating EFX to XPath

This package contains classes used for translating EFX expressions to XPath.

* `XPathScriptGenerator`: Implements the `ScriptGenerator` interface for EFX to XPath translation.
* `XPathContextualized`: Used to convert a given absolute XPath to an XPath relative to another absolute XPath.
* `XPathAttributeLocator`: Used to parse an XPath expression and extract any XML attributes it may contain.
* `XPathContextualizer`: Used to convert a given absolute XPath expression to an XPath relative to another absolute XPath.

_Note: There is one more class that is specific to EFX-to-XPath translation which is not contained in this package: the [`SdkSymbolResolver`](../../eforms/sdk/SdkSymbolResolver.java) class. It is XPath specific because it returns XPaths taken from the eForms SDK._
_Note: There is one more class that is specific to EFX-to-XPath translation which is not contained in this package: the [`SdkSymbolResolver`](../../eforms/sdk/SdkSymbolResolver.java) class. It is XPath specific because it returns XPaths taken from the eForms SDK._

0 comments on commit 7ca4342

Please sign in to comment.