This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# odev tab completion script | |
# Version: 0.2 | |
# Install: Add a call to this script in ~/.bash_completion or copy the script into /etc/bash_completion.d/ | |
# 'source' the file to use the features in the current session. | |
# Call function 'odev_cache' to rebuild the cached list of databases. | |
# clear global cache | |
_odev_complete_list="" | |
odev_cache () |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!python3 | |
# https://stackoverflow.com/a/66596507/7643972 | |
import os | |
import sys | |
from lxml import etree | |
if len(sys.argv) < 2: | |
print("usage : sort_xml.py file_in.xml [file_in_sorted.xml]") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!-- https://stackoverflow.com/a/16305113/7643972 --> | |
<!-- <?xml-stylesheet type="text/xsl" href="../../../sort-xml.xsl"?> --> | |
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> | |
<xsl:output indent="yes" /> | |
<xsl:strip-space elements="*"/> | |
<xsl:template match="text()[not(string-length(normalize-space()))]"/> | |
<xsl:template match="/*"> | |
<xsl:copy> |