Re: links with JADE RTF

Subject: Re: links with JADE RTF
From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxx>
Date: Tue, 05 May 1998 09:34:33 -0400
At 08:53 98/05/05 +0000, Michael Schopen wrote:
>I am trying to set up hypertext links in RTF files produced with 
>JADE. The following SGML file 
>...
>But, there is always an extra blank at the start of the link in the 
>RTF file.

When I run the above test (thanks for including a complete test!), I do not
get the space at the beginning of the line that you describe.

When I want to look deeper, I often use the flow object tree (transcript
below), and it reveals no extra spaces there either.  It is a handy
diagnostic tool.

>I am not sure whether this is problem of the JADE RTF backend or of
>WinWord 97. Any help?

Can you think of anything in your environment that may be different?

......... Ken


T:\FTEMP>type test.dsl
<!doctype style-sheet PUBLIC "-//James Clark//DTD DSSSL Style
Sheet//EN" >

(element TEST
 (make simple-page-sequence
       top-margin: 1.25cm
       bottom-margin: 1.5cm
       left-margin: 1cm
       right-margin: 1cm
       input-whitespace-treatment: 'collapse
       quadding: 'start
       (process-children)))


(element anchor
  (make paragraph
    (process-children)))

(element link
  (make paragraph
  (make link
    destination: (idref-address (attribute-string "TO")))))

T:\FTEMP>type test.sgm
<!DOCTYPE test [
<!ELEMENT test - - (anchor+, link+) >
<!ELEMENT anchor - - (#PCDATA) >
<!ATTLIST anchor id ID #REQUIRED >
<!ELEMENT link - - (#PCDATA) >
<!ATTLIST link to IDREF #REQUIRED >
]>
<test>
<anchor id="a1">That's anchor 1.</anchor>
<anchor id="a2">And that's anchor 2.</anchor>
<link to="a1">That's a link to anchor 1 ...</link>
<link to ="a2">And that's a link to anchor 2 ...</link>
</test>


T:\FTEMP>jade -c p:\jade\jadecurr\catalog test.sgm

T:\FTEMP>type test.fot
<?xml version="1.0"?>
<fot>
<simple-page-sequence top-margin="35.433pt" bottom-margin="42.519pt"
left-margin="28.346pt" right-margin="28.346pt"
input-whitespace-treatment="collapse" quadding="start">
<paragraph>
<a name="0"/>
<a name="A1"/>
<text>That's anchor 1.</text>
</paragraph>
<paragraph>
<a name="A2"/>
<text>And that's anchor 2.</text>
</paragraph>
<paragraph>
<link destination="A1">
<a name="3"/>
<text>That's a link to anchor 1 ...</text>
</link>
</paragraph>
<paragraph>
<link destination="A2">
<a name="4"/>
<text>And that's a link to anchor 2 ...</text>
</link>
</paragraph>
</simple-page-sequence>
</fot>

T:\FTEMP>



--
G. Ken Holman            mailto:gkholman@xxxxxxxxxxxxxx
Crane Softwrights Ltd.  http://www.CraneSoftwrights.com
Box 266,                             V: +1(613)489-0999
Kars, Ontario CANADA K0A-2E0         F: +1(613)489-0995
PGP Privacy: http://www.cyberus.ca/~holman/gkholman.pgp
Training:  http://www.CraneSoftwrights.com/schedule.htm
Shareware:   http://www.CraneSoftwrights.com/shareware/


 DSSSList info and archive:  http://www.mulberrytech.com/dsssl/dssslist


Current Thread
  • links with JADE RTF
    • Michael Schopen - from mail1.ability.netby web4-1.ability.net (8.8.5/8.6.12) with ESMTP id DAA12334Tue, 5 May 1998 03:01:17 -0400 (EDT)
      • G. Ken Holman - from mail1.ability.netby web4-1.ability.net (8.8.5/8.6.12) with ESMTP id JAA20973Tue, 5 May 1998 09:43:28 -0400 (EDT) <=
        • Michael Schopen - from mail1.ability.netby web4-1.ability.net (8.8.5/8.6.12) with ESMTP id KAA21885Tue, 5 May 1998 10:49:00 -0400 (EDT)
          • G. Ken Holman - from mail1.ability.netby web4-1.ability.net (8.8.5/8.6.12) with ESMTP id RAA28518Tue, 5 May 1998 17:05:00 -0400 (EDT)
          • Michael Schopen - from mail1.ability.netby web4-1.ability.net (8.8.5/8.6.12) with ESMTP id DAA05834Wed, 6 May 1998 03:08:39 -0400 (EDT)
      • Norman Walsh - from mail1.ability.netby web4-1.ability.net (8.8.5/8.6.12) with ESMTP id KAA21930Tue, 5 May 1998 10:49:36 -0400 (EDT)