Daniel Vanko has posted comments on this change. ( 
http://gerrit.cloudera.org:8080/24460 )

Change subject: IMPALA-14822: [DOCS] Fix formatted HTML fragment links via 
post-build script
......................................................................


Patch Set 2:

(1 comment)

Thanks for working on this!
Did you try passing a custom XLST file to DITA to override the scoped ids to 
simple one? That seems to me a simpler solution than adding and maintaning a 
new script.

http://gerrit.cloudera.org:8080/#/c/24460/2/docs/build-doc.sh
File docs/build-doc.sh:

http://gerrit.cloudera.org:8080/#/c/24460/2/docs/build-doc.sh@38
PS2, Line 38: dita -i impala.ditamap -f ${FILE_FORMAT} -o ${OUTPUT_FILE} \
            :     -Dnav-toc=partial \
            :     -Dargs.copycss=yes \
            :     -Dargs.csspath=css \
            :     -Dargs.cssroot=$PWD/css \
            :     -Dargs.css=dita-ot-doc.css \
            :     -Dargs.hdr=$PWD/shared/header.xml \
            :     -filter ${FILTER_FILE} 2>&1 \
            :     | tee ${LOG_FILE}
Adding args.xls parameter with pointing to a file like below?

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>

  <xsl:template match="@id" mode="commonattributes">
    <xsl:attribute name="id">
      <xsl:value-of select="."/>
    </xsl:attribute>
  </xsl:template>

</xsl:stylesheet>



--
To view, visit http://gerrit.cloudera.org:8080/24460
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Id970bac63e0aadd45d7e35b92c8da4eafbdf17b4
Gerrit-Change-Number: 24460
Gerrit-PatchSet: 2
Gerrit-Owner: Prathmesh Sapate <[email protected]>
Gerrit-Reviewer: Daniel Vanko <[email protected]>
Gerrit-Reviewer: Impala Public Jenkins <[email protected]>
Gerrit-Reviewer: Prathmesh Sapate <[email protected]>
Gerrit-Comment-Date: Thu, 02 Jul 2026 12:42:26 +0000
Gerrit-HasComments: Yes

Reply via email to