Yes it works, but when you reload twice a flat XML file, it becomes read-only.

May be related to that bug:
http://api.openoffice.org/servlets/ReadMsg?listName=dev&msgNo=14313

Does someone has an idea to fix that ?

Laurent



<[EMAIL PROTECTED]>

01/03/2006 11:05

Veuillez répondre à
[email protected]

A
[email protected]
cc
Objet
Re: [xml-dev] Import Filter FlatXML for OOo v2





Michael,

Great !, that works.

I had to choose extension "xml" because any other extension does not seem to work.

Thanks to all.

Laurent



"M. Niedermair" <[EMAIL PROTECTED]>  

01/03/2006 10:35
Veuillez répondre à
[email protected]


A
[email protected]
cc
Objet
Re: [xml-dev] Import Filter FlatXML for OOo v2





Hi,
 
for a 'flat' xml structure, you can use the xslt-copy function for
import and export.
 
<?xml version="1.0" encoding="iso-8859-1"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<!-- output -->
<xsl:output method="xml" indent="yes" encoding="iso-8859-1"/>

<!-- copy -->
<xsl:template match="/|comment()|processing-instruction()|*|@*">
<xsl:copy>
<xsl:apply-templates select="@*|node()"/>
</xsl:copy>
</xsl:template>
</xsl:stylesheet>
 
By
Michael
 
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Reply via email to