To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=49392
Issue #:|49392
Summary:|problem with namespace="" in sx2ml stylesheets /
|target "OOo 2.0.1"
Component:|xml
Version:|OOo 2.0 Beta
Platform:|All
URL:|
OS/Version:|All
Status:|UNCONFIRMED
Status whiteboard:|
Keywords:|
Resolution:|
Issue type:|DEFECT
Priority:|P3
Subcomponent:|external filters
Assigned to:|sus
Reported by:|mobouille
------- Additional comments from [EMAIL PROTECTED] Tue May 17 07:21:34 -0700
2005 -------
Hi Svante,
Trying to use sx2ml (from OO2Beta) with libxslt (http://xmlsoft.org/XSLT/)
I found out a problem with node-set, which is supported by libxslt, but
not with the empty namespaces as in:
openoffice.org1.9.95/share/xslt/export/common/styles/style_collector.xsl
<xsl:when test="office:document-content">
<xsl:element name="styles-file" namespace="">
^^^^^^^^^^^^
<xsl:copy-of select="document(concat($sourceBaseURL, 'styles.xml'))" />
</xsl:element>
<xsl:element name="meta-file" namespace="">
^^^^^^^^^^^^
<xsl:copy-of select="document(concat($sourceBaseURL, 'meta.xml'))" />
</xsl:element>
</xsl:when>
And libxslt miss to recover them with:
<xsl:copy-of select="$documentLinks/styles-file/*" />
Indeed, I tested with the following xslt file:
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0" xmlns:exslt="http://exslt.org/common" >
<xsl:template match="/">
<xsl:variable name="initial">
<xsl:element name="a">text</xsl:element>
<b/>
</xsl:variable>
<xsl:variable name="nodeset" select="exslt:node-set($initial)"/>
<out>
<xsl:copy-of select="$nodeset/a"/>
</out>
</xsl:template>
</xsl:stylesheet>
gives:
<?xml version="1.0"?>
<out xmlns:exslt="http://exslt.org/common"><a>text</a></out>
But modifying
<xsl:element name="a">text</xsl:element>
to
<xsl:element name="a" namespace="">text</xsl:element>
gives:
<?xml version="1.0"?>
<out xmlns:exslt="http://exslt.org/common"/>
Do you think that it is necessary to keep the empty namespace attribute in
the stylesheets?
Best regards,
--
Marc-Olivier BERNARD
---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]