🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: adobe.framemaker.sgml
5 messages
5 total messages Started by Trevor_Nicholls Tue, 31 Mar 2009 05:22
Spurious whitespace inserted in lists on document load
#239
Author: Trevor_Nicholls
Date: Tue, 31 Mar 2009 05:22
10 lines
1358 bytes
Gurus and browsers:

I have a Frame 8.0 application which on the whole behaves correctly, except that it insists on inserting whitespace between elements in lists whenever it loads an XML file for editing. Wherever this occurs the whitespace leads to an unwanted line break in the document view.

Sometimes, if the list is a bulleted list, the unwanted line break is augmented by a duplicate of the bullet symbol - but not in the document view, in the structure view. It all looks like list processing is a little bit broken.

Because this issue is not at all trivial I can't describe a test case in a few lines, but I have a sample document which illustrates the problem. Would anybody be prepared to have a brief look to see if they can identify what is going wrong and why?

Cheers
Trevor
Re: Spurious whitespace inserted in lists on document load
#240
Author: Trevor_Nicholls
Date: Tue, 31 Mar 2009 09:43
8 lines
1180 bytes
Well in simplifying my sample document so that it doesn't require running a pre-load XSL phase I have identified the culprit and it is Xalan.

The stylesheet has been written so as to suppress optional whitespace in the output file but the version of Xalan which is being run within Frame is inserting lots of whitespace of its own regardless. There are significant differences between the XML output by Xalan-C and that output by running the same stylesheet with another XSL processor.

Is there some way to force Frame/Xalan NOT to insert this whitespace?

Cheers
T
Re: Spurious whitespace inserted in lists on document load
#241
Author: Michael_Mueller-Hillebrand
Date: Wed, 01 Apr 2009 19:51
13 lines
991 bytes
I do have a FM8 structapp running with a preprocessing XSL. I use the command

<xsl:output method="xml" indent="no" doctype-system="customer.dtd" />

to suppress indentation. I guess it is also a good idea to have a DTD linked to the XML.

I was surprised to see that my stylesheet does not use

<xsl:strip-space elements="*"/>

which can help as well.

- Michael
Re: Spurious whitespace inserted in lists on document load
#242
Author: Trevor_Nicholls
Date: Wed, 01 Apr 2009 22:44
11 lines
1344 bytes
Hi Michael, thanks for replying

My stylesheet has:
 < xsl:output doctype-system="fmdocs.dtd" method="xml" encoding="UTF-8" indent="no" >
and it also has
 < xsl:strip-space elements="document section table list ul ol ..." />

The problem isn't systematic indentation as in pretty-print indentation, but single spaces and/or newlines which are inserted here and there. I thought at first it was whitespace from the XSL stylesheet itself but I've gone through the stylesheet with a toothcomb and it isn't, plus when I use any other XSLT processor to run this stylesheet outside of Frame I get exactly the output I want and expect.

Regards
Trevor
Re: Spurious whitespace inserted in lists on document load
#243
Author: Michael_Mueller-Hillebrand
Date: Thu, 02 Apr 2009 13:36
7 lines
994 bytes
Trevor,

try to get hold of the temporary XML file in the local temp folder. To achieve this I force a message which fires when FrameMaker opens the preprocessed XML. The log window displays path and name of the document and you can make a copy of it while the log message is not accepted.

This might give you more insight into what is done different by Xalan.

- Michael
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads