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 Andrew McIntyre <mc...@gmail.com> on 2006/08/23 02:11:44 UTC

devguide build errors? (was Re: DITA doc build creates a 'devguide' directory)

On 8/22/06, Jean T. Anderson <jt...@bristowhill.com> wrote:
> Laura Stewart wrote:
> > There was a problem with the ditamap file for the dev guide that
> > skewed all of the tags and made it unreadable. However I fixed it, I
> > can't recall which patch or if it has been commited yet, so I don't
> > know if this is part of what was occurring...
>
> My svn working copy is current and I'm still getting the devguide
> directory. I'll keep an eye on it as more patches get committed.

I don't know if this is related, but I'm currently getting a bunch of
errors trying to build the devguide that I haven't seen before:

     [xslt] file:/C:/derby-docs/DITA-OT1.1.2.1/xsl/xslfo/dita2fo-links.xsl:148:57:
Warning! Can not load requested doc: The element type "meta" must be
terminated by the matching end-tag "</meta>".

It can't seem to find the images for the devguide anymore, and then
finally the PDF build errors out with this:

BUILD FAILED
C:\derby-docs\build.xml:160: The following error occurred while
executing this line:
C:\derby-docs\build.xml:183: The following error occurred while
executing this line:
C:\derby-docs\DITA-OT1.1.2.1\conductor.xml:209: The following error
occurred while executing this line:
C:\derby-docs\DITA-OT1.1.2.1\ditatargets.xml:78:
org.apache.fop.apps.FOPException:
file:/C:/derby-docs/out/devguide/derbydev.fo:13153:40
internal-destination or external-destination must be specified in
basic-link

Anybody else seeing this?

andrew

Re: DITA PDF build is broken on trunk ( was Re: devguide build errors? ...)

Posted by Laura Stewart <sc...@gmail.com>.
The problem appears to be in the reltable in the ditamap file.  At the
very bottom of the table there is an entry for the new file. But there
is no corresponding file to link to.

I ran ant pdf and it runs successfully now.
I'll post a new patch

-- 
Laura Stewart

Re: DITA PDF build is broken on trunk ( was Re: devguide build errors? ...)

Posted by "Jean T. Anderson" <jt...@bristowhill.com>.
Laura Stewart wrote:
> After running ant pdf on this doc, I cannot locate this problem in the
> dita files.
> As I look at the log file for the ant transform, it calls several
> files from the DTA toolkit files, for example:
> 
> ******* BEGIN example ****************
> 
> preprocess:
> 
> dita-preprocess:
> 
> map2pdf:
> 
> dita.map.fo:
>     [xslt] Processing
> C:\Authoring\Derby\Derby1655\docs\trunk\temp\derbydev.ditamap to
> C:\Authoring\Derby\Derby1655\docs\trunk\temp\derbydev_MERGED.xml
>     [xslt] Loading stylesheet
> C:\Authoring\Derby\Derby1655\docs\trunk\DITA-OT1.1.2.1\xsl\topicmerge.xsl
>     [xslt] Processing
> C:\Authoring\Derby\Derby1655\docs\trunk\temp\derbydev_MERGED.xml to
> C:\Authoring\Derby\Derby1655\docs\trunk\out\devguide\derbydev.fo
>     [xslt] Loading stylesheet
> C:\Authoring\Derby\Derby1655\docs\trunk\DITA-OT1.1.2.1\xsl\dita2fo-shell.xsl
> 
>     [xslt]
> file:/C:/Authoring/Derby/Derby1655/docs/trunk/DITA-OT1.1.2.1/xsl/xslfo/dita2fo-links.xsl:148:57:
> 
> Warning! Can not load requested doc: The element type "meta" must be
> terminated by the matching end-tag "</meta>".
> 
> ******* END example ****************
> 
> I believe that the problem might be with one of the files in
> DITA-OT1.1.2.1 and not in the source.  The files in DITA-OT1.1.2.1 do
> have "meta" tags, whereas the source files do not.
> 
> It might be that the DITA-OT1.1.2.1/xsl/xslfo/dita2fo-links.xsl file
> or the DITA-OT1.1.2.1\xsl\dita2fo-shell.xsl file calls one of the
> other DITA toolkit files.

Here's what I suggest.

'svn up' your working copy to the most recent version that I reverted
the commit.

Apply your patch, and 'svn status' should show these changes (the ?
being for the new file):

   ?      src/devguide/cdevstandardsxml.dita
   M      src/devguide/derbydev.ditamap
   M      src/devguide/cdevstandards805975.dita
   M      src/devguide/cdevdvlp30653.dita

Save the ditamap and revert its change that adds the new file:

  cp src/devguide/derbydev.ditamap save
  svn revert src/devguide/derbydev.ditamap

Now run 'ant pdf' again -- it should succeed and output pdf files.

Now add your derbydev.ditamap back:

 cp save src/devguide/derbydev.ditamap

'ant pdf' now fails for me.

So even though the warning gets report elsewhere in the toolkit,
something about the new addition is causing that error.

 -jean


> On 8/23/06, Jean T. Anderson <jt...@bristowhill.com> wrote:
> 
>> Jean T. Anderson wrote:
>> > Jean T. Anderson wrote:
>> >>Jean T. Anderson wrote:
>> > ...
>> >>>So, the pdf build appears to be broken.
>> >
>> > the PDFs build on the 10.2 branch (though with errors). At any rate,
>> the
>> > breakage appears to have happened in the last week since Rick's mega
>> > merge on Aug 18.
>>
>> The problem is the DERBY-1655 patch to the Developer's Guide that I
>> committed in revision 433708 -- sorry about that, everyone! More
>> specifically, there's a problem with the new cdevstandardsxml.dita file
>> (or perhaps with the corresponding update to the derbydev.ditamap file).
>>
>> I'll revert that commit and post details to DERBY-1655.
>>
>>  -jean
>>
>>
>>
>>
> 
> 


Re: DITA PDF build is broken on trunk ( was Re: devguide build errors? ...)

Posted by Laura Stewart <sc...@gmail.com>.
After running ant pdf on this doc, I cannot locate this problem in the
dita files.
As I look at the log file for the ant transform, it calls several
files from the DTA toolkit files, for example:

******* BEGIN example ****************

preprocess:

dita-preprocess:

map2pdf:

dita.map.fo:
     [xslt] Processing
C:\Authoring\Derby\Derby1655\docs\trunk\temp\derbydev.ditamap to
C:\Authoring\Derby\Derby1655\docs\trunk\temp\derbydev_MERGED.xml
     [xslt] Loading stylesheet
C:\Authoring\Derby\Derby1655\docs\trunk\DITA-OT1.1.2.1\xsl\topicmerge.xsl
     [xslt] Processing
C:\Authoring\Derby\Derby1655\docs\trunk\temp\derbydev_MERGED.xml to
C:\Authoring\Derby\Derby1655\docs\trunk\out\devguide\derbydev.fo
     [xslt] Loading stylesheet
C:\Authoring\Derby\Derby1655\docs\trunk\DITA-OT1.1.2.1\xsl\dita2fo-shell.xsl
     [xslt] file:/C:/Authoring/Derby/Derby1655/docs/trunk/DITA-OT1.1.2.1/xsl/xslfo/dita2fo-links.xsl:148:57:
Warning! Can not load requested doc: The element type "meta" must be
terminated by the matching end-tag "</meta>".

******* END example ****************

I believe that the problem might be with one of the files in
DITA-OT1.1.2.1 and not in the source.  The files in DITA-OT1.1.2.1 do
have "meta" tags, whereas the source files do not.

It might be that the DITA-OT1.1.2.1/xsl/xslfo/dita2fo-links.xsl file
or the DITA-OT1.1.2.1\xsl\dita2fo-shell.xsl file calls one of the
other DITA toolkit files.

On 8/23/06, Jean T. Anderson <jt...@bristowhill.com> wrote:
> Jean T. Anderson wrote:
> > Jean T. Anderson wrote:
> >>Jean T. Anderson wrote:
> > ...
> >>>So, the pdf build appears to be broken.
> >
> > the PDFs build on the 10.2 branch (though with errors). At any rate, the
> > breakage appears to have happened in the last week since Rick's mega
> > merge on Aug 18.
>
> The problem is the DERBY-1655 patch to the Developer's Guide that I
> committed in revision 433708 -- sorry about that, everyone! More
> specifically, there's a problem with the new cdevstandardsxml.dita file
> (or perhaps with the corresponding update to the derbydev.ditamap file).
>
> I'll revert that commit and post details to DERBY-1655.
>
>  -jean
>
>
>
>


-- 
Laura Stewart

Re: DITA PDF build is broken on trunk ( was Re: devguide build errors? ...)

Posted by "Jean T. Anderson" <jt...@bristowhill.com>.
Jean T. Anderson wrote:
> Jean T. Anderson wrote:
>>Jean T. Anderson wrote:
> ...
>>>So, the pdf build appears to be broken.
>  
> the PDFs build on the 10.2 branch (though with errors). At any rate, the
> breakage appears to have happened in the last week since Rick's mega
> merge on Aug 18.

The problem is the DERBY-1655 patch to the Developer's Guide that I
committed in revision 433708 -- sorry about that, everyone! More
specifically, there's a problem with the new cdevstandardsxml.dita file
(or perhaps with the corresponding update to the derbydev.ditamap file).

I'll revert that commit and post details to DERBY-1655.

 -jean




DITA PDF build is broken on trunk ( was Re: devguide build errors? ...)

Posted by "Jean T. Anderson" <jt...@bristowhill.com>.
Jean T. Anderson wrote:
> Jean T. Anderson wrote:
...
>>So, the pdf build appears to be broken.

the PDFs build on the 10.2 branch (though with errors). At any rate, the
breakage appears to have happened in the last week since Rick's mega
merge on Aug 18.

sleuthing away ....

 -jean

Re: devguide build errors? (was Re: DITA doc build creates a 'devguide' directory)

Posted by "Jean T. Anderson" <jt...@bristowhill.com>.
Jean T. Anderson wrote:
> Jean T. Anderson wrote:
> ...
> 
>>'ant all' succeeds on linux with two issues:
>>
>>(1) pdf.devguide gets 1 warning:
>>
>>     [xslt]
>>file:/home/jta/DB-DERBY-SVN/derby/docs/trunk/DITA-OT1.1.2.1/xsl/xslfo/dita2fo-links.xsl:148:57:
>>Warning! Can not load requested doc: The element type "meta" must be
>>terminated by the matching end-tag "</meta>".
>>
>>'ant pdf' also gets this, but the build succeeds.
> 
> 
> oh, gack. I get a BUILD SUCCESSFUL message but, in fact, no pdf files
> are output.
> 
> So, the pdf build appears to be broken.

my environment was messed up (did not have op.jar,
avalon-framework-cvs-20020806.jar, and batik.jar in the CLASSPATH). With
those in my CLASSPATH I now see the error on linux that you get:

BUILD FAILED
/home/jta/DB-DERBY-SVN/derby/docs/trunk/build.xml:160: The following
error occurred while executing this line:
/home/jta/DB-DERBY-SVN/derby/docs/trunk/build.xml:183: The following
error occurred while executing this line:
/home/jta/DB-DERBY-SVN/derby/docs/trunk/DITA-OT1.1.2.1/conductor.xml:209:
The following error occurred while executing this line:
/home/jta/DB-DERBY-SVN/derby/docs/trunk/DITA-OT1.1.2.1/ditatargets.xml:78:
org.apache.fop.apps.FOPException:
file:/home/jta/DB-DERBY-SVN/derby/docs/trunk/out/devguide/derbydev.fo:13155:40
internal-destination or external-destination must be specified in basic-link

tomorrow, I'll "svn up -r" back to a point the pdf build works, then
wind forward again.

 -jean


Re: devguide build errors? (was Re: DITA doc build creates a 'devguide' directory)

Posted by "Jean T. Anderson" <jt...@bristowhill.com>.
Jean T. Anderson wrote:
...
> 'ant all' succeeds on linux with two issues:
> 
> (1) pdf.devguide gets 1 warning:
> 
>      [xslt]
> file:/home/jta/DB-DERBY-SVN/derby/docs/trunk/DITA-OT1.1.2.1/xsl/xslfo/dita2fo-links.xsl:148:57:
> Warning! Can not load requested doc: The element type "meta" must be
> terminated by the matching end-tag "</meta>".
> 
> 'ant pdf' also gets this, but the build succeeds.

oh, gack. I get a BUILD SUCCESSFUL message but, in fact, no pdf files
are output.

So, the pdf build appears to be broken.

 -jean


Re: devguide build errors? (was Re: DITA doc build creates a 'devguide' directory)

Posted by "Jean T. Anderson" <jt...@bristowhill.com>.
Kim Haase wrote:
> On the "expanse" errors in the Brazilian Portuguese translations: Sorry
> I forgot about those when I fixed bug 1215. I'll reopen it and make
> those fixes, unless you think I should file a new bug.

No apology needed, Kim! We appreciate any doc effort, even incremental /
partial. [This is an indication of how often I run 'ant all'. :-) ]

reopening 1215 would be fine.

 -jean


> Kim
> 
> Jean T. Anderson wrote On 08/22/06 21:57,:
> 
>>Jean T. Anderson wrote:
>>
>>
>>>Andrew McIntyre wrote:
>>
>>...
>>
>>
>>>>I don't know if this is related, but I'm currently getting a bunch of
>>>>errors trying to build the devguide that I haven't seen before:
>>>>
>>>>  [xslt]
>>>>file:/C:/derby-docs/DITA-OT1.1.2.1/xsl/xslfo/dita2fo-links.xsl:148:57:
>>>>Warning! Can not load requested doc: The element type "meta" must be
>>>>terminated by the matching end-tag "</meta>".
>>>>
>>>>It can't seem to find the images for the devguide anymore, and then
>>>>finally the PDF build errors out with this:
>>>>
>>>>BUILD FAILED
>>>>C:\derby-docs\build.xml:160: The following error occurred while
>>>>executing this line:
>>>>C:\derby-docs\build.xml:183: The following error occurred while
>>>>executing this line:
>>>>C:\derby-docs\DITA-OT1.1.2.1\conductor.xml:209: The following error
>>>>occurred while executing this line:
>>>>C:\derby-docs\DITA-OT1.1.2.1\ditatargets.xml:78:
>>>>org.apache.fop.apps.FOPException:
>>>>file:/C:/derby-docs/out/devguide/derbydev.fo:13153:40
>>>>internal-destination or external-destination must be specified in
>>>>basic-link
>>>>
>>>>Anybody else seeing this?
>>>
>>>
>>>no problems on linux but it has been a while since I've done an "ant
>>>all" (usually do separate html, pdf, and monohtml). I'll kick of a
>>>complete build.
>>
>>
>>'ant all' succeeds on linux with two issues:
>>
>>(1) pdf.devguide gets 1 warning:
>>
>>     [xslt]
>>file:/home/jta/DB-DERBY-SVN/derby/docs/trunk/DITA-OT1.1.2.1/xsl/xslfo/dita2fo-links.xsl:148:57:
>>Warning! Can not load requested doc: The element type "meta" must be
>>terminated by the matching end-tag "</meta>".
>>
>>'ant pdf' also gets this, but the build succeeds.
>>
>>(2) The Brazilian Portuguese translations get the "expanse" errors:
>>
>> [pipeline] [Error] :25:58: Attribute "expanse" must be declared for
>>element type "table".
>>
>>The build as a whole succeeds.
>>
>> -jean
>>
> 
> 


Re: devguide build errors? (was Re: DITA doc build creates a 'devguide' directory)

Posted by Kim Haase <Ca...@Sun.COM>.
On the "expanse" errors in the Brazilian Portuguese translations: Sorry
I forgot about those when I fixed bug 1215. I'll reopen it and make
those fixes, unless you think I should file a new bug.

Kim

Jean T. Anderson wrote On 08/22/06 21:57,:
> Jean T. Anderson wrote:
> 
>>Andrew McIntyre wrote:
> 
> ...
> 
>>>I don't know if this is related, but I'm currently getting a bunch of
>>>errors trying to build the devguide that I haven't seen before:
>>>
>>>   [xslt]
>>>file:/C:/derby-docs/DITA-OT1.1.2.1/xsl/xslfo/dita2fo-links.xsl:148:57:
>>>Warning! Can not load requested doc: The element type "meta" must be
>>>terminated by the matching end-tag "</meta>".
>>>
>>>It can't seem to find the images for the devguide anymore, and then
>>>finally the PDF build errors out with this:
>>>
>>>BUILD FAILED
>>>C:\derby-docs\build.xml:160: The following error occurred while
>>>executing this line:
>>>C:\derby-docs\build.xml:183: The following error occurred while
>>>executing this line:
>>>C:\derby-docs\DITA-OT1.1.2.1\conductor.xml:209: The following error
>>>occurred while executing this line:
>>>C:\derby-docs\DITA-OT1.1.2.1\ditatargets.xml:78:
>>>org.apache.fop.apps.FOPException:
>>>file:/C:/derby-docs/out/devguide/derbydev.fo:13153:40
>>>internal-destination or external-destination must be specified in
>>>basic-link
>>>
>>>Anybody else seeing this?
>>
>> 
>>no problems on linux but it has been a while since I've done an "ant
>>all" (usually do separate html, pdf, and monohtml). I'll kick of a
>>complete build.
> 
> 
> 'ant all' succeeds on linux with two issues:
> 
> (1) pdf.devguide gets 1 warning:
> 
>      [xslt]
> file:/home/jta/DB-DERBY-SVN/derby/docs/trunk/DITA-OT1.1.2.1/xsl/xslfo/dita2fo-links.xsl:148:57:
> Warning! Can not load requested doc: The element type "meta" must be
> terminated by the matching end-tag "</meta>".
> 
> 'ant pdf' also gets this, but the build succeeds.
> 
> (2) The Brazilian Portuguese translations get the "expanse" errors:
> 
>  [pipeline] [Error] :25:58: Attribute "expanse" must be declared for
> element type "table".
> 
> The build as a whole succeeds.
> 
>  -jean
> 


Re: devguide build errors? (was Re: DITA doc build creates a 'devguide' directory)

Posted by "Jean T. Anderson" <jt...@bristowhill.com>.
Jean T. Anderson wrote:
> Andrew McIntyre wrote:
...
>>I don't know if this is related, but I'm currently getting a bunch of
>>errors trying to build the devguide that I haven't seen before:
>>
>>    [xslt]
>>file:/C:/derby-docs/DITA-OT1.1.2.1/xsl/xslfo/dita2fo-links.xsl:148:57:
>>Warning! Can not load requested doc: The element type "meta" must be
>>terminated by the matching end-tag "</meta>".
>>
>>It can't seem to find the images for the devguide anymore, and then
>>finally the PDF build errors out with this:
>>
>>BUILD FAILED
>>C:\derby-docs\build.xml:160: The following error occurred while
>>executing this line:
>>C:\derby-docs\build.xml:183: The following error occurred while
>>executing this line:
>>C:\derby-docs\DITA-OT1.1.2.1\conductor.xml:209: The following error
>>occurred while executing this line:
>>C:\derby-docs\DITA-OT1.1.2.1\ditatargets.xml:78:
>>org.apache.fop.apps.FOPException:
>>file:/C:/derby-docs/out/devguide/derbydev.fo:13153:40
>>internal-destination or external-destination must be specified in
>>basic-link
>>
>>Anybody else seeing this?
>  
> no problems on linux but it has been a while since I've done an "ant
> all" (usually do separate html, pdf, and monohtml). I'll kick of a
> complete build.

'ant all' succeeds on linux with two issues:

(1) pdf.devguide gets 1 warning:

     [xslt]
file:/home/jta/DB-DERBY-SVN/derby/docs/trunk/DITA-OT1.1.2.1/xsl/xslfo/dita2fo-links.xsl:148:57:
Warning! Can not load requested doc: The element type "meta" must be
terminated by the matching end-tag "</meta>".

'ant pdf' also gets this, but the build succeeds.

(2) The Brazilian Portuguese translations get the "expanse" errors:

 [pipeline] [Error] :25:58: Attribute "expanse" must be declared for
element type "table".

The build as a whole succeeds.

 -jean


Re: devguide build errors? (was Re: DITA doc build creates a 'devguide' directory)

Posted by "Jean T. Anderson" <jt...@bristowhill.com>.
Andrew McIntyre wrote:
> On 8/22/06, Jean T. Anderson <jt...@bristowhill.com> wrote:
> 
>> Laura Stewart wrote:
>> > There was a problem with the ditamap file for the dev guide that
>> > skewed all of the tags and made it unreadable. However I fixed it, I
>> > can't recall which patch or if it has been commited yet, so I don't
>> > know if this is part of what was occurring...
>>
>> My svn working copy is current and I'm still getting the devguide
>> directory. I'll keep an eye on it as more patches get committed.
> 
> 
> I don't know if this is related, but I'm currently getting a bunch of
> errors trying to build the devguide that I haven't seen before:
> 
>     [xslt]
> file:/C:/derby-docs/DITA-OT1.1.2.1/xsl/xslfo/dita2fo-links.xsl:148:57:
> Warning! Can not load requested doc: The element type "meta" must be
> terminated by the matching end-tag "</meta>".
> 
> It can't seem to find the images for the devguide anymore, and then
> finally the PDF build errors out with this:
> 
> BUILD FAILED
> C:\derby-docs\build.xml:160: The following error occurred while
> executing this line:
> C:\derby-docs\build.xml:183: The following error occurred while
> executing this line:
> C:\derby-docs\DITA-OT1.1.2.1\conductor.xml:209: The following error
> occurred while executing this line:
> C:\derby-docs\DITA-OT1.1.2.1\ditatargets.xml:78:
> org.apache.fop.apps.FOPException:
> file:/C:/derby-docs/out/devguide/derbydev.fo:13153:40
> internal-destination or external-destination must be specified in
> basic-link
> 
> Anybody else seeing this?

no problems on linux but it has been a while since I've done an "ant
all" (usually do separate html, pdf, and monohtml). I'll kick of a
complete build.

 -jean