2nd try, this time using XSL and xalan to convert old OO3 files to plain text .notes files.
This commit is contained in:
parent
c278f7556c
commit
5ee0826d38
2 changed files with 20 additions and 0 deletions
4
outline.bash
Executable file
4
outline.bash
Executable file
|
@ -0,0 +1,4 @@
|
|||
#!/bin/bash
|
||||
# TODO copy .gz file based on date
|
||||
# TODO gunzip original file
|
||||
xalan -xsl outline.xsl -in contents.xml -text
|
16
outline.xsl
Normal file
16
outline.xsl
Normal file
|
@ -0,0 +1,16 @@
|
|||
<?xml version="1.0"?>
|
||||
<xsl:stylesheet version="1.0"
|
||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
|
||||
<xsl:template match="/">
|
||||
<xsl:for-each select="outline/root/item">
|
||||
<xsl:call-template name="item"/>
|
||||
</xsl:for-each>
|
||||
</xsl:template>
|
||||
<xsl:template name="item">
|
||||
<xsl:param name="indent"/>
|
||||
<xsl:value-of select="$indent"/>
|
||||
<xsl:value-of select="values/*[2]/p/run/lit"/>
|
||||
<xsl:text>
|
||||
</xsl:text>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>
|
Loading…
Reference in a new issue