docbook / xslTNG

DocBook xslTNG Stylesheets
https://xsltng.docbook.org
MIT License
41 stars 20 forks source link

Improve support for automatic glossaries. #461

Closed ndw closed 5 months ago

ndw commented 5 months ago

Once again, credit to @fsteimke for the initial implementation.

Close #453 Close #458

This PR incorporates the work Frank did, restructured slightly to make relative URIs in db processing instructions absolute based on the base URI fo the processing instruction. Also changed the PI handling to allow either:

<?db glossary-collection="first.xml second.xml"?>

or

<?db glossary-collection="first.xml"?>
<?db glossary-collection="second.xml"?>
frank-steimke commented 5 months ago

The function fp:pi-pi-attributes in standalone-functions.xsl has a reference to the new variable $v:pi-db-attributes-are-uris. It is undefined when used outside of the xslTNG Stylesheet. The functions are not standalone anymore and can't be used in Schematron.

Maybe you can declare the variable in standalone-functions.xsl? Or standalone-functions have to include variables.xsl?