FaqAbiWordNativeFormatToText
From AbiWiki
(Difference between revisions)
m (Reverted edits by Unimaxug (Talk) to last revision by Maintenance script) |
|||
Line 1: | Line 1: | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
==== Question
==== | ==== Question
==== | ||
Line 12: | Line 4: | ||
==== Answer
==== | ==== Answer
==== | ||
Use XSLT, specifically: | Use XSLT, specifically: | ||
- | + | <verbatim> | |
xsltproc foo.xsl bar.abw | xsltproc foo.xsl bar.abw | ||
- | + | </verbatim> | |
Where *bar.abw* is the name and path to the .abw file, and | Where *bar.abw* is the name and path to the .abw file, and | ||
*foo.xsl* contains: | *foo.xsl* contains: | ||
- | + | <verbatim> | |
- | + | <?xml version="1.0" encoding="ISO-8859-1"?> | |
- | + | <xsl:stylesheet version="1.0" | |
- | xmlns:xsl= | + | xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> |
- | + | <xsl:output method="text"/> | |
- | + | </xsl:stylesheet> | |
- | + | </verbatim> | |
- | + | <!-- | |
- | + | <H3>Contents</H3> | |
- | -- | + | --> |
==== Contributors
==== | ==== Contributors
==== | ||
* Main.[[JesseW|JesseW]] - 06 Jul 2005 | * Main.[[JesseW|JesseW]] - 06 Jul 2005 | ||
[[Category:To Convert]] | [[Category:To Convert]] |
Current revision as of 13:12, 27 November 2010
Question
How do I pull the text content out of an Abiword native format file (.abw file)?
Answer
Use XSLT, specifically: <verbatim> xsltproc foo.xsl bar.abw </verbatim> Where *bar.abw* is the name and path to the .abw file, and
- foo.xsl* contains:
<verbatim> <?xml version="1.0" encoding="ISO-8859-1"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output method="text"/> </xsl:stylesheet> </verbatim>
Contributors
- Main.JesseW - 06 Jul 2005