Mostly workable.

This commit is contained in:
Thomas Gideon 2010-10-08 17:34:30 -04:00
parent a7d7c32b1a
commit e86036eb63
2 changed files with 12 additions and 4 deletions

View file

@ -1,4 +1,10 @@
#!/bin/bash #!/bin/bash
# TODO copy .gz file based on date # TODO copy .gz file based on arg
# TODO gunzip original file # 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

View file

@ -6,6 +6,8 @@
<xsl:call-template name="item"> <xsl:call-template name="item">
<xsl:with-param name="indent" <xsl:with-param name="indent"
select="1"/> select="1"/>
<xsl:with-param name="prefix"
select="*"/>
</xsl:call-template> </xsl:call-template>
</xsl:for-each> </xsl:for-each>
</xsl:template> </xsl:template>
@ -16,7 +18,7 @@
<xsl:text>==</xsl:text> <xsl:text>==</xsl:text>
</xsl:when> </xsl:when>
<xsl:otherwise> <xsl:otherwise>
<!-- TODO generate spaces --> <xsl:value-of select="$indent"/>
<xsl:text>- </xsl:text> <xsl:text>- </xsl:text>
</xsl:otherwise> </xsl:otherwise>
</xsl:choose> </xsl:choose>