Mostly workable.
This commit is contained in:
parent
a7d7c32b1a
commit
e86036eb63
2 changed files with 12 additions and 4 deletions
10
outline.bash
10
outline.bash
|
@ -1,4 +1,10 @@
|
|||
#!/bin/bash
|
||||
# TODO copy .gz file based on date
|
||||
# TODO copy .gz file based on arg
|
||||
# TODO gunzip original file
|
||||
xalan -xsl outline.xsl -in contents.xml -text
|
||||
xalan -xsl outline.xsl -in contents.xml -text -out contents.txt
|
||||
sed -e "s/^2/ /" -i contents.txt
|
||||
sed -e "s/^3/ /" -i contents.txt
|
||||
sed -e "s/^4/ /" -i contents.txt
|
||||
sed -e "s/^5/ /" -i contents.txt
|
||||
sed -e "s/^6/ /" -i contents.txt
|
||||
less contents.txt
|
||||
|
|
|
@ -6,6 +6,8 @@
|
|||
<xsl:call-template name="item">
|
||||
<xsl:with-param name="indent"
|
||||
select="1"/>
|
||||
<xsl:with-param name="prefix"
|
||||
select="*"/>
|
||||
</xsl:call-template>
|
||||
</xsl:for-each>
|
||||
</xsl:template>
|
||||
|
@ -16,7 +18,7 @@
|
|||
<xsl:text>==</xsl:text>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<!-- TODO generate spaces -->
|
||||
<xsl:value-of select="$indent"/>
|
||||
<xsl:text>- </xsl:text>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
|
|
Loading…
Reference in a new issue