Issue 9081 - DocBook style XML export produces many empty lines
Summary: DocBook style XML export produces many empty lines
Status: CLOSED FIXED
Alias: None
Product: xml
Classification: Code
Component: code (show other issues)
Version: 643
Hardware: All All
: P2 Trivial (vote)
Target Milestone: OOo 1.1.1
Assignee: jogi
QA Contact: issues@sw
URL:
Keywords:
: 9082 20441 20444 20445 20447 20450 20451 20455 50536 (view as issue list)
Depends on:
Blocks:
 
Reported: 2002-11-08 13:35 UTC by osavill
Modified: 2005-06-17 10:51 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description osavill 2002-11-08 13:35:26 UTC
Managed to get Java working with 643, but that's another story :-)

Wrote a simple document along the lines of :

text
text
   
   image
   title

text
text

Then File --> Save As, select DocBook XML.

No error messages are output and the file is created on disk, however it is 0 bytes long !

This appears not the be sensitive to the type of document so I have not attached one.
Comment 1 jack.warchold 2003-08-08 15:15:46 UTC
jw: reassigned to jw
could not reproduce 

please tell me if this problem still occurs with the latest office 
release
else i will close this task on september 1st 2003
Comment 2 osavill 2003-08-08 15:51:54 UTC
It does now produce the XML file. However, it goes something like: 
<?xml.... 
<!DOCTYPE... 
<article... 
 
321 blank lines !!! 
 
<para... 
 
Does this require a new OR ? 
Comment 3 jack.warchold 2003-09-02 17:34:06 UTC
jw: reassigned to es
Comment 4 eric.savary 2003-09-09 17:23:36 UTC
ES->JSI: Please evaluate
Comment 5 jogi 2003-09-11 11:50:16 UTC
We had a bug in 643 wich produced empty DocBook XML files. It has been
fixed - as you also can see in a recent milestone.

It is NOT a bug that empty lines are in the XML files but you are
right that we should get rid off them to save space :-) It is a
problem of the stylesheet and not of the functionality of XML in itself.
Comment 6 jogi 2003-09-11 11:52:14 UTC
*** Issue 9082 has been marked as a duplicate of this issue. ***
Comment 7 jogi 2003-09-16 09:22:03 UTC
.
Comment 8 lo 2003-09-17 15:31:11 UTC
my issue
Comment 9 lo 2003-09-17 15:31:32 UTC
.
Comment 10 jogi 2003-09-30 14:03:20 UTC
*** Issue 20455 has been marked as a duplicate of this issue. ***
Comment 11 jogi 2003-09-30 14:05:20 UTC
*** Issue 20451 has been marked as a duplicate of this issue. ***
Comment 12 jogi 2003-09-30 14:07:08 UTC
*** Issue 20450 has been marked as a duplicate of this issue. ***
Comment 13 jogi 2003-09-30 14:07:58 UTC
*** Issue 20447 has been marked as a duplicate of this issue. ***
Comment 14 jogi 2003-09-30 14:08:46 UTC
*** Issue 20445 has been marked as a duplicate of this issue. ***
Comment 15 jogi 2003-09-30 14:09:36 UTC
*** Issue 20444 has been marked as a duplicate of this issue. ***
Comment 16 jogi 2003-09-30 14:10:24 UTC
*** Issue 20441 has been marked as a duplicate of this issue. ***
Comment 17 cheche 2003-10-01 09:15:04 UTC
I checked sofftodocbookheadings.xsl and this will help to reduce some
new lines:

@@ -137,7 +137,7 @@
 	<xsl:element name="article">
 		<xsl:attribute name="lang"><xsl:value-of
select="/office:document/office:meta/dc:language"/>
 		</xsl:attribute>
-		<xsl:apply-templates />
+		<xsl:apply-templates select="office:body|office:styles" />
 	</xsl:element>
 </xsl:template>


Your can remove these lines if you apply the previous change.

@@ -182,16 +182,6 @@
 
 <xsl:template match="office:styles">
 	<xsl:apply-templates/>
-</xsl:template>
-
-<xsl:template match="office:script">
-</xsl:template>
-
-
-<xsl:template match="office:settings">
-</xsl:template>
-
-<xsl:template match="office:font-decls">
 </xsl:template>
 
 <xsl:template match="text:section">
Comment 18 cheche 2003-10-01 09:20:24 UTC
About office:styles.

I have not found any match for 
style:default-style|style:style|text:list-style|number:number-style|
number:currency-style|number:percentage-style|number:date-style|
number:time-style|number:boolean-style|number:text-style|
draw:gradient|draw:hatch|draw:fill-image|draw:marker|
draw:stroke-dash|style:presentation-page-layout|draw:transparency

 or 
text:outline-style|text:footnotes-configuration|
text:endnotes-configuration|text:bibliography-configuration
|text:linenumbering-configuration

So you better off to ignore office:styles as well.
Comment 19 lo 2003-11-05 16:14:02 UTC
MIB explained high impact scenario for this issue -> OOo 1.1.1/ prio2
Comment 20 lo 2003-11-26 16:56:47 UTC
the xslt filter components java implementation includes it's own
serialization code which is implemented in a way that produces the
extra whitespaces. The way the filter is integrated does also lead to
bad performance since the UNO/Java bridge is not fast enough to handle
enough SAX_events coming from the office to the filter. I am working
on a fix now
Comment 21 lo 2003-12-04 16:20:22 UTC
select only office:body in root element template
fix in fwk03pp1
Comment 22 lo 2003-12-04 21:41:17 UTC
fwk03pp1 is OOo 1.1.2
this also depends on xslt filter fixes in 1.1.2
Comment 23 lo 2003-12-09 12:22:35 UTC
reviewed and approved by SUS,
fwk03pp1 is 1.1.1 -> new target
Comment 24 lo 2003-12-09 15:54:54 UTC
please verify on CWS fwk03pp1
Comment 25 jogi 2003-12-17 16:08:21 UTC
JSI: Verified in CWS.
Comment 26 jogi 2003-12-17 16:09:31 UTC
JSI: Testcases passed.
Comment 27 jogi 2004-01-30 14:57:36 UTC
okay in dev build
Comment 28 jogi 2005-06-17 10:50:57 UTC
*** Issue 50536 has been marked as a duplicate of this issue. ***