sed -i '/rewrite/d' /etc/xml/catalog

xmlcatalog --noout --add "rewriteSystem"            "https://cdn.docbook.org/release/xsl-nons/1.79.2"            "file:///usr/share/xml/docbook/xsl-stylesheets-nons-1.79.2"     /etc/xml/catalog 

xmlcatalog --noout --add "rewriteURI"            "https://cdn.docbook.org/release/xsl-nons/1.79.2"            "file:///usr/share/xml/docbook/xsl-stylesheets-nons-1.79.2"     /etc/xml/catalog 

xmlcatalog --noout --add "rewriteSystem"            "https://cdn.docbook.org/release/xsl-nons/current"            "file:///usr/share/xml/docbook/xsl-stylesheets-nons-1.79.2"     /etc/xml/catalog 

xmlcatalog --noout --add "rewriteURI"            "https://cdn.docbook.org/release/xsl-nons/current"            "file:///usr/share/xml/docbook/xsl-stylesheets-nons-1.79.2"     /etc/xml/catalog 

xmlcatalog --noout --add "rewriteSystem"            "http://docbook.sourceforge.net/release/xsl/current"            "file:///usr/share/xml/docbook/xsl-stylesheets-nons-1.79.2"     /etc/xml/catalog 

xmlcatalog --noout --add "rewriteURI"            "http://docbook.sourceforge.net/release/xsl/current"            "file:///usr/share/xml/docbook/xsl-stylesheets-nons-1.79.2"     /etc/xml/catalog
