To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=51705
Issue #:|51705
Summary:|Only first user defined code is available when using
|filters
Component:|Word processor
Version:|680m113
Platform:|PC
URL:|
OS/Version:|Windows XP
Status:|UNCONFIRMED
Status whiteboard:|
Keywords:|
Resolution:|
Issue type:|DEFECT
Priority:|P3
Subcomponent:|code
Assigned to:|mru
Reported by:|anupkshah
------- Additional comments from [EMAIL PROTECTED] Thu Jul 7 16:28:12 -0700
2005 -------
Problem:
========
Only the first user defined code seems to be available in the FLAT Xml when
using XML filters. (I don't know how to confirm if it is available by the API,
as I don't know how to use Java or the API).
When you look at meta.xml itself, then it is all there. This problem is
specifically when you use the flat xml which is used by XML filters.
To recreate:
1) Set up test document:
========================
a) Create a document
b) Go to: File --> Properties... --> User Defined
c) Rename some of the defaults, and fill in some values
2) Confirm meta information is saved:
=====================================
a) Use a compression/zip application to open the saved document.
b) View meta.xml in an xml/text editor
c) Note that all the user defined information is there as you modified it.
3) Recreate problem with Flat Xml by creating a DEBUG XML filter as follows:
============================================================================
a) Create an XSL which contains the following
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
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:dc="http://purl.org/dc/elements/1.1/"
xmlns:meta="http://openoffice.org/2000/meta"
xmlns:config="http://openoffice.org/2001/config"
xmlns:help="http://openoffice.org/2000/help"
exclude-result-prefixes="office style text table draw fo xlink number
svg chart
dr3d math form script dc meta config help">
<xsl:output method="xml"
encoding="UTF-8"
indent="yes"
omit-xml-declaration="no" />
<xsl:strip-space elements="*" />
<!-- *************************** -->
<!-- *** Copy out the output *** -->
<!-- *************************** -->
<xsl:template match="/office:document">
<xsl:copy-of select="/" />
</xsl:template>
</xsl:stylesheet>
b) Save this as something like debug.xsl
c) In the Word Processor, create a new XML Filter:
Tools --> XML Filter Settings...
Create a NEW filter, and set the XSLT for EXPORT to be the above XSL. (Fill
other details in first tab as needed. In the second tab, only the Export XSL
needs to be entered).
Make note of the Name of File you provide, for step e) below.
d) Go back to your document where you modified the user-defined properties
e) Export your document (File --> Export...) and choose the filter you created
(based on the Name of File Type you selected). When you save the output, open it
in a text editor, ideally one that supports XML.
In my example, I created the following two user defined fields (with values):
Language (en)
Country (gb)
f) See results: open your exported document (which is just the flat xml) in an
XML/Text editor. I see the following snippet:
<office:document>
<!-- snip lots of stuff -->
<office:meta>
<dc:title>Sample Title</dc:title>
<!-- snipped out all the other bits -->
<meta:user-defined meta:name="Language">en</meta:user-defined>
</office:meta>
<!-- snip remainder of xml -->
</office:document>
7) In the above xml snippet, I only have one user-defined element (the first
one). I don't have any of the others -- and no, I didn't accidentally delete it
from this comment ;)
I think this needs to be fixed so that filters that use this can work properly.
I had a search in case there are duplicates, and all I could find were the
following:
3414
8669
5091
25351
And while they may be in the same area, they are not quite related to this, as
this is about the flat xml, in particular.
---------------------------------------------------------------------
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]