Issue 51180 - DocBook <title> -> <para>
Summary: DocBook <title> -> <para>
Alias: None
Product: xml
Classification: Code
Component: external filters (show other issues)
Version: 680m109
Hardware: PC All
: P5 (lowest) Trivial (vote)
Target Milestone: 4.x
Assignee: AOO issues mailing list
QA Contact:
Keywords: regression
Depends on:
Blocks: 16350
  Show dependency tree
Reported: 2005-06-24 11:40 UTC by mhosken
Modified: 2013-02-07 21:55 UTC (History)
2 users (show)

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

.xml file as included in bug description (582 bytes, text/xml)
2005-06-24 11:41 UTC, mhosken
no flags Details
test XML document and filter package (18.15 KB, application/x-compressed)
2005-06-25 06:22 UTC, mhosken
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description mhosken 2005-06-24 11:40:00 UTC
Create the following test_dbk.xml (sorry, the bug reporting page has no upload

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
<article lang="en-US">
        <title>Testing Docbook Import</title>
        <subtitle>OpenOffice Testing</subtitle>
        <para>The import fails to give the right styles to the right paragraphs.
Noteably the first paragraph in this document should be in the style: Document

Import into OpenOffice (as a docbook file)

While the DocBook filter is far from ideal, the first paragraph is specified as
having a style-name of Document Title. All paragraphs seem to import as default,
regardless of what style-name they are given.
Comment 1 mhosken 2005-06-24 11:41:24 UTC
Created attachment 27458 [details]
.xml file as included in bug description
Comment 2 michael.ruess 2005-06-24 11:50:35 UTC
Reassigned to ES.
Comment 3 eric.savary 2005-06-24 12:01:17 UTC
->JSI: Docbook issue. Please have a look.
Comment 4 jogi 2005-06-24 14:21:38 UTC
changing comp.
Comment 5 jogi 2005-06-24 14:22:07 UTC
change subcat
Comment 6 jogi 2005-06-24 14:36:48 UTC
Yes, also using the template in $Officepath/share/xslt/docbook/... generates only

<article lang="en-US">
<para>Testing Docbook Import</para>

instead of

<title>Testing Docbook Import</title>

<subtitle> isn't supported from the SAMPLE filter:
Comment 7 jogi 2005-06-24 14:39:59 UTC
It's an regression to OOo 1.1.4+
Comment 8 jogi 2005-06-24 14:40:34 UTC
Comment 9 mhosken 2005-06-25 06:20:42 UTC
I think this is missing the point of the bug report. The bug is that the first
paragraph of the generated document does not have the right paragraphy style.
The generated .sxw XML specifies the first paragraph's style to be Document
Title, but all the paragraph styles appear as default. It is not a docbook.xsl
issue, but an OpenOffice xml import issue.

To give further evidence of this, enclosed is a .zip file containing a
MyDocbook.jar filter set (notice that the output OO->XML filter does not and is
not designed to work since it is a copy of the sxw docbook based one) and the
same sample test_dbk.xml. To show the problem, complete the following:

1. Install the mydocbook.jar xml filter package
2. type soffice test_dbk.xml - notice that the mydocbook xml filter is not
registered (another bug, probably requiring its own bug report)
3. choose docbook, just to get the thing to open
4. Tools/XML Filter Settings
5. Choose MyDocbook
6. Press Text XSLTs...
7. select Import/Display Source
8. Import/Browse to test_dbk.xml
9. Select the displayed text
10. Open a text editor somewhere and paste into a new file
11. Save new file as content.xml
12. unzip the referenced .ott template into a temporary directory
13. copy the saved content.xml over the content.xml in the temporary directory
14. edit META-INF/manifest.xml and remove -template from the
vnd.oasis.opendocument.text-template attribute value
15. zip up the temporary directory as test_dbk.odt
16. open test_dbk.odt in soffice
17. Notice that the document opens fine (I hope ;))

This shows that the XSL is generating correct XML for import into OpenOffice and
therefore that the issue is not with the import filter but with the OpenOffice
importing of the XML.
Comment 10 mhosken 2005-06-25 06:22:31 UTC
Created attachment 27468 [details]
test XML document and filter package
Comment 11 lo 2005-12-13 13:03:24 UTC
Comment 12 svante.schubert 2006-01-20 11:58:54 UTC
Won't be able to fix this for OOo 2.0.2, retarget to OOo 2.0.3
Comment 13 svante.schubert 2006-04-07 11:42:32 UTC
Worksforme in SO8 PP2 [and m161 (LATEX filter)]
Obviously the issue in the XML import has been fixed...
Comment 14 svante.schubert 2006-04-07 12:42:21 UTC
reopen to reassign
Comment 15 svante.schubert 2006-04-07 12:43:00 UTC
Please verify that this already works with the Office patch of CWS latex (or
earlier pp2)
Comment 16 svante.schubert 2006-04-07 13:14:11 UTC
Please close issue, when if you can agree on WORKSFORME
Comment 17 oc 2006-04-10 14:40:08 UTC
Does not work, first paragraph is still not a title =reopen
Comment 18 oc 2006-04-10 14:41:16 UTC
reassigned to development
Comment 19 svante.schubert 2006-05-02 17:00:40 UTC
Correct, there was a missunderstanding on my side about the issue...

The issue lies in the import docbook filter, as althoug the paragraph styles are
provided in the body, no style with the name, i.e. "Document Title" exist in the
style section to be referenced to. 

<text:p text:style-name="Document Title">Testing Docbook Import</text:p>

Therefore the 'default' style is being used, as workaround for this issue.

But what style is desired as "Document Title" and "Document SubTitle"?

Going to take a look into some docbook pages, but any help is welcome..
Comment 20 svante.schubert 2006-05-03 10:55:01 UTC
Due to other interruptive tasks, I have to postpone this task to the follow up
release (pp4).
Going to fix it with the other docbook issues I have inherited.
Comment 21 svante.schubert 2006-07-24 18:26:59 UTC
Unfortunately I have to postpone this issue due to other higher prioritized tasks...
Changing target to OOo 2.x
Comment 22 ralfhauser 2007-05-20 12:15:26 UTC
see also Issue 27424 and Issue 34944, Issue 51296, Issue 53239
Comment 23 Martin Hollmichel 2008-01-28 02:13:58 UTC
set target 3.x
Comment 24 Martin Hollmichel 2011-02-07 09:50:38 UTC
lowering Prio to 5