Issue 35183 - Wordml import filter: Namespaces are not sufficient declared for some of the stylesheets.
Summary: Wordml import filter: Namespaces are not sufficient declared for some of the ...
Status: CLOSED FIXED
Alias: None
Product: xml
Classification: Code
Component: external filters (show other issues)
Version: 680m48
Hardware: All All
: P3 Trivial (vote)
Target Milestone: OOo 2.0
Assignee: svante.schubert
QA Contact: issues@xml
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-08 10:49 UTC by svante.schubert
Modified: 2005-01-17 16:21 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description svante.schubert 2004-10-08 10:49:28 UTC
By doing a transformation using Xalan 2.0 or the Java 5 XSLTC the stylesheets
are producing errors, as not all namespaces have been declared in every stylesheet.

Took over the m54 import filter state to be used for SO7pp4, merging the various
stylesheets to one as in SO7 only one existed before and didn't want to touch
the script particle framework.

A correct heading might look as the folloing:
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:v="urn:schemas-microsoft-com:vml" 
    xmlns:w="http://schemas.microsoft.com/office/word/2003/wordml" 
    xmlns:wx="http://schemas.microsoft.com/office/word/2003/auxHint" 
    xmlns:o="urn:schemas-microsoft-com:office:office" 
    xmlns:aml="http://schemas.microsoft.com/aml/2001/core"
    xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" 
    xmlns:dc="http://purl.org/dc/elements/1.1/"    
    xmlns:office="http://openoffice.org/2000/office"
    xmlns:style="http://openoffice.org/2000/style"
    xmlns:text="http://openoffice.org/2000/text"
    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: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:meta="http://openoffice.org/2000/meta"
    xmlns:config="http://openoffice.org/2001/config"
    xmlns:help="http://openoffice.org/2000/help"
    exclude-result-prefixes="v w wx aml o aml dt" 
    office:version="1.0">

Concerning Java 5 XSLTC the wordml stylesheets do not compile at all. Filed an
issue for this:
Synopsis: Compilation of StarOffice wordml XSLT filter via XSLTC throws exception
http://bt2ws.central.sun.com/CrPrint?id=6175602
Comment 1 glu 2004-10-26 05:34:36 UTC
Gary: Please take a look at it.
Comment 2 gyang 2004-10-29 10:17:20 UTC
fixed in cws xsltfilter04.

add the following namespace to every wordml export stylesheet.
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:w="http://schemas.microsoft.com/office/word/2003/wordml"
xmlns:aml="http://schemas.microsoft.com/aml/2001/core"
xmlns:wx="http://schemas.microsoft.com/office/word/2003/auxHint"
xmlns:office="http://openoffice.org/2000/office"
xmlns:table="http://openoffice.org/2000/table"
xmlns:style="http://openoffice.org/2000/style"
xmlns:text="http://openoffice.org/2000/text"
xmlns:o="urn:schemas-microsoft-com:office:office"
xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:config="http://openoffice.org/2001/config"
xmlns:draw="http://openoffice.org/2000/drawing"
xmlns:svg="http://www.w3.org/2000/svg" xmlns:v="urn:schemas-microsoft-com:vml"
xmlns:w10="urn:schemas-microsoft-com:office:word"
xmlns:fo="http://www.w3.org/1999/XSL/Format"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:meta="http://openoffice.org/2000/meta" exclude-result-prefixes="office
table style text draw svg  fo dc config xlink meta">

add the following namespace to every wordml filter import stylesheet

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:fo="http://www.w3.org/1999/XSL/Format"
xmlns:w="http://schemas.microsoft.com/office/word/2003/wordml"
xmlns:wx="http://schemas.microsoft.com/office/word/2003/auxHint"
xmlns:o="urn:schemas-microsoft-com:office:office"
xmlns:aml="http://schemas.microsoft.com/aml/2001/core"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns:draw="http://openoffice.org/2000/drawing"
xmlns:office="http://openoffice.org/2000/office"
xmlns:style="http://openoffice.org/2000/style"
xmlns:text="http://openoffice.org/2000/text"
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:config="http://openoffice.org/2001/config"
xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882"
xmlns:table="http://openoffice.org/2000/table"
xmlns:v="urn:schemas-microsoft-com:vml"
xmlns:number="http://openoffice.org/2000/datastyle" exclude-result-prefixes="w
wx aml o dt fo v">
Comment 3 gyang 2004-11-04 05:38:27 UTC
after migrate to OASIS format 
the namespace for every wordml exporter stylesheet as below:
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:fo="http://www.w3.org/1999/XSL/Format"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:w="http://schemas.microsoft.com/office/word/2003/wordml"
xmlns:wx="http://schemas.microsoft.com/office/word/2003/auxHint"
xmlns:o="urn:schemas-microsoft-com:office:office"
xmlns:aml="http://schemas.microsoft.com/aml/2001/core"
xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882"
xmlns:v="urn:schemas-microsoft-com:vml"
xmlns:office="urn:oasis:names:tc:openoffice:xmlns:office:1.0"
xmlns:style="urn:oasis:names:tc:openoffice:xmlns:style:1.0"
xmlns:text="urn:oasis:names:tc:openoffice:xmlns:text:1.0"
xmlns:table="urn:oasis:names:tc:openoffice:xmlns:table:1.0" 
xmlns:w10="urn:schemas-microsoft-com:office:word"
xmlns:draw="urn:oasis:names:tc:openoffice:xmlns:drawing:1.0"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:meta="urn:oasis:names:tc:openoffice:xmlns:meta:1.0"
xmlns:number="urn:oasis:names:tc:openoffice:xmlns:datastyle:1.0"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns:chart="urn:oasis:names:tc:openoffice:xmlns:chart:1.0"
xmlns:dr3d="urn:oasis:names:tc:openoffice:xmlns:dr3d:1.0"
xmlns:math="http://www.w3.org/1998/Math/MathML"
xmlns:form="urn:oasis:names:tc:openoffice:xmlns:form:1.0"
xmlns:script="urn:oasis:names:tc:openoffice:xmlns:script:1.0"
xmlns:config="urn:oasis:names:tc:openoffice:xmlns:config:1.0"
xmlns:ooo="http://openoffice.org/2004/office"
xmlns:ooow="http://openoffice.org/2004/writer"
xmlns:oooc="http://openoffice.org/2004/calc"
xmlns:dom="http://www.w3.org/2001/xml-events" exclude-result-prefixes="office
table style text draw svg   dc config xlink meta oooc dom ooo chart math dr3d
form script ooow draw">
    <xsl:output method="xml" indent="no" encoding="UTF-8" version="1.0"
standalone="yes"/>
    <xsl:include href="../../common/measure_conversion.xsl"/>
    <xsl:include href="../common/ooo2ms_docpr.xsl"/>
    <xsl:include href="ooo2wordml_settings.xsl"/>
    <xsl:include href="ooo2wordml_border.xsl"/>
    <xsl:include href="ooo2wordml_page.xsl"/>
    <xsl:include href="ooo2wordml_text.xsl"/>
    <xsl:include href="ooo2wordml_list.xsl"/>
    <xsl:include href="ooo2wordml_field.xsl"/>
    <xsl:include href="ooo2wordml_table.xsl"/>
    <xsl:include href="ooo2wordml_draw.xsl"/>
    <xsl:include href="ooo2wordml_path.xsl"/>
    <xsl:key name="paragraph-style"
match="style:style[@style:family='paragraph']" use="@style:name"/>
    <xsl:key name="text-style" match="style:style[@style:family='text']"
use="@style:name"/>
    <xsl:key name="section-style" match="style:style[@style:family='section']"
use="@style:name"/>
    <xsl:key name="master-page" match="style:master-page" use="@style:name"/>
    <xsl:key name="page-layout" match="style:page-layout" use="@style:name"/>
    <xsl:key name="slave-style"
match="style:style[string-length(normalize-space(@style:master-page-name)) &gt;
0]" use="@style:name"/>
    <xsl:key name="list-style" match="office:styles/text:list-style |
office:automatic-styles/text:list-style" use="@style:name"/>
    <xsl:key name="graphics-style" match="style:style[@style:family='graphic']"
use="@style:name"/>

the namespace of every  wordml importer stylesheet as follow:
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:fo="http://www.w3.org/1999/XSL/Format"
xmlns:w="http://schemas.microsoft.com/office/word/2003/wordml"
xmlns:wx="http://schemas.microsoft.com/office/word/2003/auxHint"
xmlns:o="urn:schemas-microsoft-com:office:office"
xmlns:aml="http://schemas.microsoft.com/aml/2001/core"
xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882"
xmlns:v="urn:schemas-microsoft-com:vml"
xmlns:office="urn:oasis:names:tc:openoffice:xmlns:office:1.0"
xmlns:style="urn:oasis:names:tc:openoffice:xmlns:style:1.0"
xmlns:text="urn:oasis:names:tc:openoffice:xmlns:text:1.0"
xmlns:table="urn:oasis:names:tc:openoffice:xmlns:table:1.0"
xmlns:draw="urn:oasis:names:tc:openoffice:xmlns:drawing:1.0"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:meta="urn:oasis:names:tc:openoffice:xmlns:meta:1.0"
xmlns:number="urn:oasis:names:tc:openoffice:xmlns:datastyle:1.0"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns:chart="urn:oasis:names:tc:openoffice:xmlns:chart:1.0"
xmlns:dr3d="urn:oasis:names:tc:openoffice:xmlns:dr3d:1.0"
xmlns:math="http://www.w3.org/1998/Math/MathML"
xmlns:form="urn:oasis:names:tc:openoffice:xmlns:form:1.0"
xmlns:script="urn:oasis:names:tc:openoffice:xmlns:script:1.0"
xmlns:config="urn:oasis:names:tc:openoffice:xmlns:config:1.0"
xmlns:ooo="http://openoffice.org/2004/office"
xmlns:ooow="http://openoffice.org/2004/writer"
xmlns:oooc="http://openoffice.org/2004/calc"
xmlns:dom="http://www.w3.org/2001/xml-events" exclude-result-prefixes="w wx aml
o dt  v">

Comment 4 svante.schubert 2004-11-09 13:31:19 UTC
This should have been sent to the QA
Comment 5 svante.schubert 2004-11-09 13:32:07 UTC
sent to QA
Comment 6 svante.schubert 2004-11-09 13:32:36 UTC
reset to fixed again
Comment 7 svante.schubert 2004-11-09 13:37:19 UTC
Reopen to exchange owner
Comment 8 svante.schubert 2004-11-09 13:39:20 UTC
SUS->OC: 
Reassign to you as JSI may not test in time.
Comment 9 svante.schubert 2004-11-09 13:40:13 UTC
reset to fix
Comment 10 oc 2004-11-17 15:39:23 UTC
reopened for reassigning
Comment 11 oc 2004-11-17 15:40:04 UTC
OC=>SUS: Please check
Comment 12 oc 2004-11-17 15:41:33 UTC
reset resolution to fixed
Comment 13 svante.schubert 2004-11-17 15:49:08 UTC
Time overtook us, as no OpenOffice.org namespace is longer in need. But OASIS
seems to be correctly addressed.
Comment 14 svante.schubert 2005-01-17 16:21:56 UTC
closed