|
Subject: Where did all the spaces come from? From: "Justin Jay Sako" <justin_sako@xxxxxxxxxxxxxx> Date: Fri, 12 Jun 1998 09:34:26 -0700 |
Can anyone tell me why I receive all these spaces in my output (and how to get rid of them)? (This is just a test file I threw together)
Output:
! Level1 @ Level2 # Level3 $ Level4 $ # @ !
I am using XSLJ 0.4.1 and Jade version "1.1" and SP version "1.3".
The DSSSL generated by XSLJ look OK to me, but I'm a newbie, so I'm not sure. The spaces seem to happen regardless of whether I use <sequence>, <paragraph> or <display-group> and only seem to happen when processing children--if I nest a <sequence> inside of another <sequence>, the spaces do not show up.
Here is what I have done:
Using the command...
..\xslj\xslj -c catalog Test.xsl > Test.dsl
and the following XML and XSL documents...
<?XML VERSION='1.0'?>
<root>
<level1>Level1
<level2>Level2
<level3>Level3
<level4>Level4
</level4>
</level3>
</level2>
</level1>
</root>
-------------------
<?XML version='1.0' RMD='none?>
<!DOCTYPE xsl SYSTEM "xsl.dtd">
<xsl>
<rule>
<root/>
<sequence>
<children/>
</sequence>
</rule>
<rule>
<target-element type="level1"/>
<sequence>
<literal>!</literal><children/><literal>!</literal>
</sequence>
</rule>
<rule>
<target-element type="level2"/>
<sequence>
<literal>@</literal><children/><literal>@</literal>
</sequence>
</rule>
<rule>
<target-element type="level3"/>
<sequence>
<literal>#</literal><children/><literal>#</literal>
</sequence>
</rule>
<rule>
<target-element type="level4"/>
<sequence>
<literal>$</literal><children/><literal>$</literal>
</sequence>
</rule>
<rule>
<element type="level1">
<any>
<target-element/>
</any>
</element>
<empty/>
</rule>
</xsl>
I receive the following .dsl file...
<!DOCTYPE STYLE-SHEET PUBLIC "-//James Clark//DTD DSSSL Style Sheet//EN" [
<!ENTITY xsl-bgdoc PUBLIC "-//Henry S. Thompson//TEXT XSL Background Definitions//EN" CDATA DSSSL>]
>
<!-- Generated automatically with xslj-0.4.1 -->
<STYLE-SHEET>
<STYLE-SPECIFICATION USE='xsl-bkg'>
<STYLE-SPECIFICATION-BODY>
(root
(make sequence
(process-children)
)
)
(element level1
(make sequence
(literal "!")
(process-children)
(literal "!")
)
)
(element level2
(make sequence
(literal "@")
(process-children)
(literal "@")
)
)
(element level3
(make sequence
(literal "#")
(process-children)
(literal "#")
)
)
(element level4
(make sequence
(literal "$")
(process-children)
(literal "$")
)
)
(element (level1 #t repeat: * #t)
(empty-sosofo)
)
</STYLE-SPECIFICATION-BODY>
</STYLE-SPECIFICATION>
<EXTSPEC ID='xsl-bkg' DOCUMENT='xsl-bgdoc'/>
</STYLE-SHEET>
which is processed by jade using the following command...
..\jade\jade -2 -c catalog -d Test.dsl -t rtf Test.xml
to generate an RTF file which I examine in Word 97, only to find that I have a large number of spaces I don't want (see output at top).
Have I missed something, or is there a bug somewhere?
- Justin
Free web-based email, Forever, From anywhere!
http://www.mailexcite.com
DSSSList info and archive: http://www.mulberrytech.com/dsssl/dssslist
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| ANNOUNCE: Modular DocBook Styleshee, Norman Walsh | Thread | Re: Where did all the spaces come f, Graydon Hoare |
| ANNOUNCE: Modular DocBook Styleshee, Norman Walsh | Date | Re: Where did all the spaces come f, Graydon Hoare |
| Month |