phax / ph-schematron

Java Schematron library that supports XSLT and native application
Apache License 2.0
116 stars 36 forks source link

Pure schematron configurable delimiter for ID pool #138

Closed mmcareit closed 1 year ago

mmcareit commented 1 year ago

Hello,

The pure schematron implementation appends a unique integer suffix to assertion ids, implemented as: PSPreprocessor.java#247 and PreprocessorIDPool.java.

Could there be a configurable delimiter introduced so the appended suffix can be identified more easily? The purpose would be to remove the suffix manually as a post-processing step of the SVRL.

The issue is that the SVRL contains assertion ids which do not exist in the original schematron definition.

Do you have any other suggestions to circumvent this behaviour in order to preserve the original assertion ids?

Thanks in advance.

phax commented 1 year ago

Via PreprocessorIDPool.setDefaultSeparator you can now make the default separator customizable. It's a static method so you need to call it once on startup. It ill be part of the 6.3.5 release