nixos/make-options-doc: fix invalid ':' in XML NCName (non-colonized name)

main
Julien Moutinho 3 years ago committed by Tom Bereknyei
parent b69ca267db
commit 8b842173d0
  1. 2
      nixos/lib/make-options-doc/options-to-docbook.xsl

@ -20,7 +20,7 @@
<title>Configuration Options</title>
<variablelist xml:id="configuration-variable-list">
<xsl:for-each select="attrs">
<xsl:variable name="id" select="concat('opt-', str:replace(str:replace(str:replace(attr[@name = 'name']/string/@value, '*', '_'), '&lt;', '_'), '>', '_'))" />
<xsl:variable name="id" select="concat('opt-', str:replace(str:replace(str:replace(str:replace(attr[@name = 'name']/string/@value, '*', '_'), '&lt;', '_'), '>', '_'), ':', '_'))" />
<varlistentry>
<term xlink:href="#{$id}">
<xsl:attribute name="xml:id"><xsl:value-of select="$id"/></xsl:attribute>

Loading…
Cancel
Save