Re: flat xml filters for writer and calc
Svante Schubert <[email protected]> Thu, 28 Apr 2005 02:43:10 +0200
| Newsgroups | gmane.comp.openoffice.devel.xml |
|---|---|
| Organization | StarOffice / Sun Microsystems, Inc. |
| Message-ID | <[email protected]> |
Hi Marc,
your template looks good, although to copy you might use a smaller more
common version:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" encoding="UTF-8"/>
<xsl:template match="/">
<xsl:copy-of select="."/>
</xsl:template>
</xsl:stylesheet>
As the stylesheet is fine, it means there are no macros in the xml
stream. I will come back later this afternoon with an answer.
Regards
Svante
Marc Santhoff wrote:
> Hi,
>
> I'm trying to save and load again OOo docs of type writer and calc.
>
> Using the xslt below a writer doc look good, I think there is nothing
> missing. But macros are lost.
>
> What has to be added to have really complete docs including anything
> that would be saved to .sxw or .sxc?
>
> <?xml version='1.0' encoding="UTF-8"?>
> <xsl:stylesheet version="1.0"
> xmlns:style="http://openoffice.org/2000/style"
> xmlns:text="http://openoffice.org/2000/text"
> xmlns:office="http://openoffice.org/2000/office"
> xmlns:table="http://openoffice.org/2000/table"
> xmlns:draw="http://openoffice.org/2000/drawing"
> xmlns:fo="http://www.w3.org/1999/XSL/Format"
> xmlns:xlink="http://www.w3.org/1999/xlink"
> xmlns:dc="http://purl.org/dc/elements/1.1/"
> xmlns:meta="http://openoffice.org/2000/meta"
> xmlns:number="http://openoffice.org/2000/datastyle"
> xmlns:svg="http://www.w3.org/2000/svg"
> xmlns:chart="http://openoffice.org/2000/chart"
> xmlns:dr3d="http://openoffice.org/2000/dr3d"
> xmlns:math="http://www.w3.org/1998/Math/MathML"
> xmlns:form="http://openoffice.org/2000/form"
> xmlns:script="http://openoffice.org/2000/script"
> xmlns:config="http://openoffice.org/2001/config" office:class="text"
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> exclude-result-prefixes="office meta table number dc fo xlink chart
> math script xsl draw svg dr3d form config text style">
> <xsl:output method="xml" indent="yes" omit-xml-declaration="no"
> version="1.0" encoding="UTF-8"/>
>
> <xsl:template match="*|@*|comment()|processing-instruction()|text()">
> <xsl:copy>
> <xsl:apply-templates select="*|@*|comment()|processing-instruction()|text()"/>
> </xsl:copy>
> </xsl:template>
>
> </xsl:stylesheet>
>
> TIA,
> Marc
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>