Plugin selects all references except a ditavalref
Posted: Tue Jul 26, 2022 4:23 pm
Hello,
I'm currently working on a plugin based on the one created by Radu:
https://github.com/oxygenxml/dita-export-map
It works well, but I notice that if I include a ditavalref in my map, the exportmap won't include the ditaval file in the archive, and in my case it is really necessary. I think this is related to xslt generateAllResources.xsl used in the process:
Do you have any idea or tip to make it work?
Thank you so much
I'm currently working on a plugin based on the one created by Radu:
https://github.com/oxygenxml/dita-export-map
It works well, but I notice that if I include a ditavalref in my map, the exportmap won't include the ditaval file in the archive, and in my case it is really necessary. I think this is related to xslt generateAllResources.xsl used in the process:
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
exclude-result-prefixes="xs"
version="2.0">
<xsl:output method="text"/>
<xsl:template match="/">
<xsl:for-each select="distinct-values(//file/@path)">
<xsl:value-of select="."/>
<xsl:text>
</xsl:text>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>
Thank you so much
