Skip to content

Commit

Permalink
(perhaps) temporarily add XSLT for formatting recog content
Browse files Browse the repository at this point in the history
The primary thing this does is fix the ordering.  To use it, roughly:

for f in `ls xml/*.xml`; do
  xsltproc misc/order.xsl $f > /tmp/f && xmllint --format /tmp/f
  > /tmp/f2 && mv /tmp/f2 $f
done
  • Loading branch information
jhart-r7 committed Aug 12, 2015
1 parent 446a341 commit 9fdbcb6
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions misc/order.xsl
@@ -0,0 +1,17 @@
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output encoding="UTF-8" indent="yes" method="xml"/>
<xsl:template match="@*|node()">
<xsl:copy>
<xsl:apply-templates select="@*|node()"/>
</xsl:copy>
</xsl:template>
<xsl:template match="fingerprints/fingerprint">
<xsl:copy>
<xsl:copy-of select="@*"/>
<xsl:apply-templates select="description"/>
<xsl:apply-templates select="example"/>
<xsl:apply-templates select="param"/>
</xsl:copy>
</xsl:template>
</xsl:stylesheet>

0 comments on commit 9fdbcb6

Please sign in to comment.