You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-dev@db.apache.org by Susan Cline <ho...@pacbell.net> on 2006/08/30 23:57:03 UTC

Doc reviews: should the internal links for the PDFs work?

When reviewing the PDF version of the alpha manuals, specifically this page:
 
Page 248 (number printed on the page), Entitled J2EE Compliance: Java Transaction API and
javax.sql Extensions,
 
when I click on the URL's that link to other pages or sections in the documentation, they do
not work.
 
When I click on those links with the HTML pages version of the doc they do work.  Is this
a general (known) problem?  Or is this a problem with this specific section that I need to
report in the doc review?
 
Thanks,
 
Susan

Re: Doc reviews: should the internal links for the PDFs work?

Posted by Kim Haase <Ca...@Sun.COM>.
Goodness, you fixed the filename typo even before I filed it ... Thanks!
You can close DERBY-1796 at your leisure --

Kim

Andrew McIntyre wrote On 08/31/06 16:34,:
> On 8/31/06, Kim Haase <Ca...@sun.com> wrote:
> 
>>* The PDF and HTML one-pager seem to expect the JPG versions of the
>>files, which are not copied into the out directory during the build. If
>>I manually copy them over, the graphics show up.
> 
> 
> While reading the last mail, I had missed that there was also a
> graphics issue. I fixed the pstmt_os.gif and jpeg problems with
> revision 439040.
> 
> andrew


Re: Doc reviews: should the internal links for the PDFs work?

Posted by Andrew McIntyre <mc...@gmail.com>.
On 8/31/06, Kim Haase <Ca...@sun.com> wrote:
>
> * The PDF and HTML one-pager seem to expect the JPG versions of the
> files, which are not copied into the out directory during the build. If
> I manually copy them over, the graphics show up.

While reading the last mail, I had missed that there was also a
graphics issue. I fixed the pstmt_os.gif and jpeg problems with
revision 439040.

andrew

Re: Doc reviews: should the internal links for the PDFs work?

Posted by Kim Haase <Ca...@Sun.COM>.
Jean T. Anderson wrote On 08/31/06 16:16,:
> Kim Haase wrote:
> 
>>Laura Stewart wrote On 08/31/06 15:05,:
> 
> ...
> 
>>>The misspelling of the graphic should be an easy thing to fix, will
>>>you be filing that one as well?
>>>
>>
>>Great, thanks. Yes, I'll file that one too. (And maybe fix it. I think
>>it's basically just an "svn mv" command?)
> 
> 
> Yes, 'svn mv' lets you rename a file (and it retains all the history for
> that file). Please note in the Jira comment that you renamed the file
> just in case a committer encounters any issues applying the patch.
> 
>  -jean
> 

Actually, I'd better let a committer do that! I attached a renamed
version of the file to the issue, and you can apply the patch so as to
delete the old one and add the new one.

Thanks,
Kim


Re: Doc reviews: should the internal links for the PDFs work?

Posted by "Jean T. Anderson" <jt...@bristowhill.com>.
Kim Haase wrote:
> Laura Stewart wrote On 08/31/06 15:05,:
...
>>The misspelling of the graphic should be an easy thing to fix, will
>>you be filing that one as well?
>> 
> Great, thanks. Yes, I'll file that one too. (And maybe fix it. I think
> it's basically just an "svn mv" command?)

Yes, 'svn mv' lets you rename a file (and it retains all the history for
that file). Please note in the Jira comment that you renamed the file
just in case a committer encounters any issues applying the patch.

 -jean


Re: Doc reviews: should the internal links for the PDFs work?

Posted by Kim Haase <Ca...@Sun.COM>.
Laura Stewart wrote On 08/31/06 15:05,:
> On 8/31/06, Kim Haase <Ca...@sun.com> wrote:
> 
> 
>>I expect the graphics issue is separate from the links issue. Should it
>>have a separate JIRA issue? It might be an easier problem. If so, Laura
>>can file the links one and I can file this one.
>>
>>There's yet another small graphics issue in that one of the GIF files
>>has a misspelled name -- it's called ptsmt_os.gif instead of
>>pstmt_os.gif -- so it doesn't get copied over at all. I guess that's yet
>>another issue.
>>
>>Thanks,
>>Kim
>>
>>
> 
> 
> Sounds good Kim, I'll file the links issue.
> 
> The misspelling of the graphic should be an easy thing to fix, will
> you be filing that one as well?
> 

Great, thanks. Yes, I'll file that one too. (And maybe fix it. I think
it's basically just an "svn mv" command?)

Kim


Re: Doc reviews: should the internal links for the PDFs work?

Posted by Laura Stewart <sc...@gmail.com>.
On 8/31/06, Kim Haase <Ca...@sun.com> wrote:

> I expect the graphics issue is separate from the links issue. Should it
> have a separate JIRA issue? It might be an easier problem. If so, Laura
> can file the links one and I can file this one.
>
> There's yet another small graphics issue in that one of the GIF files
> has a misspelled name -- it's called ptsmt_os.gif instead of
> pstmt_os.gif -- so it doesn't get copied over at all. I guess that's yet
> another issue.
>
> Thanks,
> Kim
>
>

Sounds good Kim, I'll file the links issue.

The misspelling of the graphic should be an easy thing to fix, will
you be filing that one as well?

-- 
Laura Stewart

Re: Doc reviews: should the internal links for the PDFs work?

Posted by Kim Haase <Ca...@Sun.COM>.
Andrew McIntyre wrote On 08/30/06 20:23,:
> On 8/30/06, Laura Stewart <sc...@gmail.com> wrote:
> 
>>>When I click on those links with the HTML pages version of the doc they do work.
>>>Is this a general (known) problem?  Or is this a problem with this specific section
>>>that I need to report in the doc review?
>>
>>Susan - this is a problem with only the Alpha versions of the docs. In
>>the 10.1 PDF versions the links work just fine.  There is another
>>problem with the Alpha versions, they do not display the graphic
>>files.  These problems must be as a result of some setting in the
>>build for the Alpha versions.
> 
> 
> They should work, but it looks like another problem with our custom
> dita2fo-shell.xsl stylesheet's handling of internal links.
> 
> Please file a JIRA for it. This will be a fairly involved fix to the
> stylesheet and I don't know if I'll have time to get to it before the
> release.
> 
> Thanks,
> andrew

I looked into the graphics file issue yesterday and was going to file a
JIRA issue on it. I think this is the problem:

* The HTML Pages use the GIF files from the src directory, which are
copied into the out directory during the build (for the two books that
use graphics, devguide and tuning).

* The PDF and HTML one-pager seem to expect the JPG versions of the
files, which are not copied into the out directory during the build. If
I manually copy them over, the graphics show up.

I expect the graphics issue is separate from the links issue. Should it
have a separate JIRA issue? It might be an easier problem. If so, Laura
can file the links one and I can file this one.

There's yet another small graphics issue in that one of the GIF files
has a misspelled name -- it's called ptsmt_os.gif instead of
pstmt_os.gif -- so it doesn't get copied over at all. I guess that's yet
another issue.

Thanks,
Kim


Re: Re: Doc reviews: should the internal links for the PDFs work?

Posted by Andrew McIntyre <mc...@gmail.com>.
On 8/31/06, Andrew McIntyre <mc...@gmail.com> wrote:
>
> I'd really appreciate it if someone could try this out and check the
> various places links show up in the docs. If I don't hear any
> objections, I'll check this in shortly. Note that the final fix will
> have a change to copy the additional files that were modified from lib
> into the DITA toolkit, as we do with dita2fo-shell.xsl.

And I've attached it here as a patch, in case anyone is interested.
With the patch, you'll need to apply the patch, remove your DITA
toolkit directory, and then run a build so that the modifications to
the toolkit files are applied properly.

andrew

Re: Re: Doc reviews: should the internal links for the PDFs work?

Posted by Andrew McIntyre <mc...@gmail.com>.
On 8/30/06, Andrew McIntyre <mc...@gmail.com> wrote:
>
> They should work, but it looks like another problem with our custom
> dita2fo-shell.xsl stylesheet's handling of internal links.

After some investigation, this appears to be a change in how internal
links are handled between the DITA 1.0.1 toolkit that Derby 10.1 uses
and the DITA 1.1.2.1 toolkit that Derby 10.2 uses, in combination with
the custom dita2fo-shell.xsl that we use in place of the
dita2fo-shell.xsl that is a part of the standard DITA toolkit.

With the older toolkit, internal references are correctly linked, but
there is no table of contents or PDF bookmark links, and all xrefs are
resolved in the same way. With the newer toolkit and our custom
dita2fo-shell.xsl, certain xrefs are used to generate the table of
contents and PDF bookmarks so that they link correctly to topic
references, but this causes some xrefs within topics to be replaced
with generated ids instead of retaining the proper reference to the
other file (which really becomes a location in the XSL-FO file). Plus
it appears that there's a problem with DITA 1.1.2.1 that causes the
internal references to be generated incorrectly for XSL-FO.

So, I went through and just changed it so all internal references in
the XSL-FO use the node ids instead of ever generating them, and this
seems to have solved the previous problem (the broken links) in a
different way, while also fixing the other internal links.

It required modifying a few more of the DITA toolkit files. So, I've
jarred up the files that changed. To try the fix, just unjar the jar
file while sitting in the root of your doc tree. The files will expand
into the correct directories.

I'd really appreciate it if someone could try this out and check the
various places links show up in the docs. If I don't hear any
objections, I'll check this in shortly. Note that the final fix will
have a change to copy the additional files that were modified from lib
into the DITA toolkit, as we do with dita2fo-shell.xsl.

andrew

Re: Doc reviews: should the internal links for the PDFs work?

Posted by Andrew McIntyre <mc...@gmail.com>.
On 8/30/06, Laura Stewart <sc...@gmail.com> wrote:
>
> > When I click on those links with the HTML pages version of the doc they do work.
> > Is this a general (known) problem?  Or is this a problem with this specific section
> > that I need to report in the doc review?
>
> Susan - this is a problem with only the Alpha versions of the docs. In
> the 10.1 PDF versions the links work just fine.  There is another
> problem with the Alpha versions, they do not display the graphic
> files.  These problems must be as a result of some setting in the
> build for the Alpha versions.

They should work, but it looks like another problem with our custom
dita2fo-shell.xsl stylesheet's handling of internal links.

Please file a JIRA for it. This will be a fairly involved fix to the
stylesheet and I don't know if I'll have time to get to it before the
release.

Thanks,
andrew

Re: Doc reviews: should the internal links for the PDFs work?

Posted by Laura Stewart <sc...@gmail.com>.
On 8/30/06, Susan Cline <ho...@pacbell.net> wrote:
> When reviewing the PDF version of the alpha manuals, specifically this page:
>
> Page 248 (number printed on the page), Entitled J2EE Compliance: Java Transaction API and
> javax.sql Extensions,
>
> when I click on the URL's that link to other pages or sections in the documentation, they do
> not work.
>
> When I click on those links with the HTML pages version of the doc they do work.  Is this
> a general (known) problem?  Or is this a problem with this specific section that I need to
> report in the doc review?
>
> Thanks,
>
> Susan
>

Susan - this is a problem with only the Alpha versions of the docs. In
the 10.1 PDF versions the links work just fine.  There is another
problem with the Alpha versions, they do not display the graphic
files.  These problems must be as a result of some setting in the
build for the Alpha versions.

-- 
Laura Stewart