You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by Wendy Smoak <ws...@gmail.com> on 2005/11/11 05:44:47 UTC

[m1] PDF Plugin (was: Re: Using the latest xdoc and multiproject plugins together)

On 10/31/05, Lukas Theussl <lt...@apache.org> wrote:

> No, if we did everything correctly then you should be able to build the
> pdf without changing any xdocs. The current pdf plugin does not generate
> id's from sub/section names anymore, only if you have explicitly
> identical id's in your xdoc will pdf fail. This is all independend of
> the xdoc plugin, we just updated the id generation there to make the
> behavior consistent. Check my latest pdf site documentation:
> http://people.apache.org/~ltheussl/maven-stage-site/reference/plugins/pdf

Lukas, I finally got back to this, and after building the PDF plugin
from source, I'm still having trouble with duplicate ids.

[java] [ERROR] file:/e:/svn/struts/current/taglib/target/pdf/project.fo:9279
:1971 The id "#define_id" already exists in this document

The offending anchors are coming from Taglib Reference pages generated
by the taglib plugin, so this isn't something I can modify in our docs
to remove the duplicate.  It's happening because both <bean:define>
and <nested:define> have an 'id' attribute.

Any ideas on fixing this one?

Thanks,
--
Wendy

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Re: [m1] PDF Plugin (was: Re: Using the latest xdoc and multiproject plugins together)

Posted by Lukas Theussl <lt...@apache.org>.
Hi Wendy,

I'm afraid you hit another bug here. I was a bit puzzled first because 
the corresponding id's came from different source documents and 
identical id's are only a problem within one xdoc. However, in your case 
the anchors appear in a table, and apparently somewhere in the xslt 
stylesheet we loose the reference to the current document when 
processing tables.

It shouldn't be too hard to fix, I'll have a closer look at tomorrow and 
open a JIRA issue if necessary.

Thanks for pointing it out!

-Lukas




Wendy Smoak wrote:
> On 10/31/05, Lukas Theussl <lt...@apache.org> wrote:
> 
> 
>>No, if we did everything correctly then you should be able to build the
>>pdf without changing any xdocs. The current pdf plugin does not generate
>>id's from sub/section names anymore, only if you have explicitly
>>identical id's in your xdoc will pdf fail. This is all independend of
>>the xdoc plugin, we just updated the id generation there to make the
>>behavior consistent. Check my latest pdf site documentation:
>>http://people.apache.org/~ltheussl/maven-stage-site/reference/plugins/pdf
> 
> 
> Lukas, I finally got back to this, and after building the PDF plugin
> from source, I'm still having trouble with duplicate ids.
> 
> [java] [ERROR] file:/e:/svn/struts/current/taglib/target/pdf/project.fo:9279
> :1971 The id "#define_id" already exists in this document
> 
> The offending anchors are coming from Taglib Reference pages generated
> by the taglib plugin, so this isn't something I can modify in our docs
> to remove the duplicate.  It's happening because both <bean:define>
> and <nested:define> have an 'id' attribute.
> 
> Any ideas on fixing this one?
> 
> Thanks,
> --
> Wendy
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Re: [m1] PDF Plugin (was: Re: Using the latest xdoc and multiproject plugins together)

Posted by Lukas Theussl <lt...@apache.org>.
Apparently this is another m1.0 - 1.1 compatibility issue. I reproduce 
it with m1.0.2 and pdf plugin 2.5-SNAPSHOT, but not with any other 
combination. Somehow the dummy values in project2fo.xslt are not 
overridden by the default ones. It doesn't even work if I specify the 
properties explicitly in project.properties. I have no idea why this 
happens since it works with pdf plugin 2.4 and I don't see what has 
changed with this respect since.

Arnaud, any idea?

-Lukas


Wendy Smoak wrote:
> On 11/10/05, Lukas Theussl <lt...@apache.org> wrote:
> 
>>
>>Hm, I can't reproduce this one. Running 'maven pdf' in
>>struts/current/tiles gives me the right title and date.
>>
>>Maybe a multiproject issue?
> 
> 
> 
> No, I was just doing 'maven pdf' from struts/current/tiles, nothing
> multiproject about it.
> 
> So, more experiments:
> $ svn co https://svn.apache.org/repos/asf/struts/tiles/trunk struts-tiles
> $ cd struts-tiles
> $ maven site pdf
> ...
> BUILD SUCCESSFUL
> 
> But the resulting pdf still has 'Jakarta Maven v.1.0' and thinks it's
> January 1, 1901.
> 
> I'm using maven-pdf-plugin-2.5-SNAPSHOT built today from updated sources.
> (Nothing had changed since my last update, though.)
> 
> What could it be?
> 
> Thanks!
> --
> Wendy
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Re: [m1] PDF Plugin (was: Re: Using the latest xdoc and multiproject plugins together)

Posted by Wendy Smoak <ws...@gmail.com>.
On 11/10/05, Lukas Theussl <lt...@apache.org> wrote:
>
>
> Hm, I can't reproduce this one. Running 'maven pdf' in
> struts/current/tiles gives me the right title and date.
>
> Maybe a multiproject issue?


No, I was just doing 'maven pdf' from struts/current/tiles, nothing
multiproject about it.

So, more experiments:
$ svn co https://svn.apache.org/repos/asf/struts/tiles/trunk struts-tiles
$ cd struts-tiles
$ maven site pdf
...
BUILD SUCCESSFUL

But the resulting pdf still has 'Jakarta Maven v.1.0' and thinks it's
January 1, 1901.

I'm using maven-pdf-plugin-2.5-SNAPSHOT built today from updated sources.
(Nothing had changed since my last update, though.)

What could it be?

Thanks!
--
Wendy

Re: [m1] PDF Plugin (was: Re: Using the latest xdoc and multiproject plugins together)

Posted by Lukas Theussl <lt...@apache.org>.
Hm, I can't reproduce this one. Running 'maven pdf' in 
struts/current/tiles gives me the right title and date.

Maybe a multiproject issue?

-Lukas


Wendy Smoak wrote:
> On 11/10/05, Wendy Smoak <ws...@gmail.com> wrote:
> 
> 
>>Lukas, I finally got back to this, and after building the PDF plugin
>>from source, I'm still having trouble with duplicate ids.
> 
> 
> It did work for Struts Tiles:
>    http://struts.apache.org/struts-tiles/struts-tiles.pdf
> 
> However, it is not picking up the right name for the title page.  It
> should say 'Struts Tiles' not 'Jakarta Maven'. Also, the date on the
> title page is wrong, and there is no date in the copyright footer on
> the rest of the pages.
> 
> The build files can be seen here: 
> http://svn.apache.org/repos/asf/struts/tiles/trunk/ .
> 
> Thanks for your help!
> 
> --
> Wendy
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Re: [m1] PDF Plugin (was: Re: Using the latest xdoc and multiproject plugins together)

Posted by Wendy Smoak <ws...@gmail.com>.
On 11/10/05, Wendy Smoak <ws...@gmail.com> wrote:

> Lukas, I finally got back to this, and after building the PDF plugin
> from source, I'm still having trouble with duplicate ids.

It did work for Struts Tiles:
   http://struts.apache.org/struts-tiles/struts-tiles.pdf

However, it is not picking up the right name for the title page.  It
should say 'Struts Tiles' not 'Jakarta Maven'. Also, the date on the
title page is wrong, and there is no date in the copyright footer on
the rest of the pages.

The build files can be seen here: 
http://svn.apache.org/repos/asf/struts/tiles/trunk/ .

Thanks for your help!

--
Wendy

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Re: [m1] PDF Plugin

Posted by Lukas Theussl <lt...@apache.org>.
Done.

maven plugin:download 
-Dmaven.repo.remote=http://www.ibiblio.org/maven,http://cvs.apache.org/repository/ 
-DgroupId=maven -DartifactId=maven-pdf-plugin -Dversion=2.5-SNAPSHOT


-Lukas


Wendy Smoak wrote:
> On 12/2/05, Lukas Theussl <lt...@apache.org> wrote:
> 
> 
>>PS Don't declare a dependency on 2.5 as I haven't published the SNAPSHOT
>>yet.
> 
> 
> Lukas, can you please publish a new snapshot of the m1 pdf plugin? 
> The 2.5-SNAPSHOT on cvs.apache.org is from October and does not
> include the fix for the title and copyright date.
> 
> Thank you!
> --
> Wendy
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Re: [m1] PDF Plugin (was: Re: Using the latest xdoc and multiproject plugins together)

Posted by Wendy Smoak <ws...@gmail.com>.
On 12/2/05, Lukas Theussl <lt...@apache.org> wrote:

> PS Don't declare a dependency on 2.5 as I haven't published the SNAPSHOT
> yet.

Lukas, can you please publish a new snapshot of the m1 pdf plugin? 
The 2.5-SNAPSHOT on cvs.apache.org is from October and does not
include the fix for the title and copyright date.

Thank you!
--
Wendy

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Re: [m1] PDF Plugin (was: Re: Using the latest xdoc and multiproject plugins together)

Posted by Lukas Theussl <lt...@apache.org>.
Hmm, I see. I'm not sure but I don't think it's possible to do what you 
want because the pdf plugin is not multiproject aware - you cannot 
reference doc files from different sub-projects. You may try to use some 
pre- or post-goal to copy the needed files to the right location or try 
to generate the taglib reference in the build directory, if that's possible.

Let me know if you find a solution.

-Lukas



Wendy Smoak wrote:
> On 12/4/05, Lukas Theussl <lt...@apache.org> wrote:
> 
> 
>>>I've added this to xdocs/pdf-navigation.xml:
>>><item name="Core Tags"       href="/shale-core/tagreference-taglib.html"/>
>>
>>Where is the file shale-core/tagreference-taglib.xml located? I can't
>>find it anywhere in the checkout tree.
> 
> 
> It's not part of the source, it's generated by the taglib plugin.
> 
> After 'maven multiproject:site pdf' I have:
> 
> /svn/struts/current/shale/build
> $ find . -name tagreference-taglib.xml
> ./core-library/target/generated-xdocs/tagreference-taglib.xml
> 
> No idea where I got the path I mentioned above. :/
> 
> The HTML version does get copied:
> 
> /svn/struts/current/shale/build
> $ find . -name tagreference-taglib.html
> ./core-library/target/docs/tagreference-taglib.html
> ./target/docs/shale-core/tagreference-taglib.html
> 
> But that's not what the PDF plugin is looking for.
> 
> Thanks,
> --
> Wendy
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Re: [m1] PDF Plugin (was: Re: Using the latest xdoc and multiproject plugins together)

Posted by Wendy Smoak <ws...@gmail.com>.
On 12/4/05, Lukas Theussl <lt...@apache.org> wrote:

> > I've added this to xdocs/pdf-navigation.xml:
> > <item name="Core Tags"       href="/shale-core/tagreference-taglib.html"/>
>
> Where is the file shale-core/tagreference-taglib.xml located? I can't
> find it anywhere in the checkout tree.

It's not part of the source, it's generated by the taglib plugin.

After 'maven multiproject:site pdf' I have:

/svn/struts/current/shale/build
$ find . -name tagreference-taglib.xml
./core-library/target/generated-xdocs/tagreference-taglib.xml

No idea where I got the path I mentioned above. :/

The HTML version does get copied:

/svn/struts/current/shale/build
$ find . -name tagreference-taglib.html
./core-library/target/docs/tagreference-taglib.html
./target/docs/shale-core/tagreference-taglib.html

But that's not what the PDF plugin is looking for.

Thanks,
--
Wendy

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Re: [m1] PDF Plugin (was: Re: Using the latest xdoc and multiproject plugins together)

Posted by Lukas Theussl <lt...@apache.org>.


> I've added this to xdocs/pdf-navigation.xml:
> <item name="Core Tags"       href="/shale-core/tagreference-taglib.html"/>

Where is the file shale-core/tagreference-taglib.xml located? I can't 
find it anywhere in the checkout tree.

> Thanks.  Really, checking out the source code and trying this yourself
> is going above and beyond the call of duty, 

It's easier than having to guess what you are doing... ;)

-Lukas


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Re: [m1] PDF Plugin (was: Re: Using the latest xdoc and multiproject plugins together)

Posted by Wendy Smoak <ws...@gmail.com>.
On 12/2/05, Lukas Theussl <lt...@apache.org> wrote:

> Make that
>
> maven.docs.src=${basedir}/../xdocs
>
> but then it still fails with a duplicate id (sounds familiar by now,
> no?). I recommend again a pdf-navigation file and put ./ in front of the
> hrefs.

That works!  Thanks again. :)  I have (finally) changed the hrefs, and
I did add a separate pdf navigation file.  The PDF of the 'top level'
site is here:
   http://struts.apache.org/struts-shale/struts-shale.pdf

If you can stand Yet Another Question... now I'm having trouble
picking up a tagreference page from one of the sub-projects.

I've added this to xdocs/pdf-navigation.xml:
<item name="Core Tags"       href="/shale-core/tagreference-taglib.html"/>

$maven multiproject:site pdf

[java]     [java]
file:///c:/java/m1-repository/cache/maven-pdf-plugin-2.5-SNAPSHOT/plugin-resources/project2fo.xslt;
Line #175; Column #97; Can not load requested doc:
e:\svn\struts\current\shale\build\target\pdf\shale-core\tagreference-taglib.xml
(The system cannot find the file specified)

I think the file it's looking for starts out in:
E:\svn\struts\current\shale\build\core-library\target\pdf
But it doesn't seem to get copied to the right place, and you can see
that the page is blank in the pdf above.

Thanks.  Really, checking out the source code and trying this yourself
is going above and beyond the call of duty, but... it's here if you
are so inclined, again. :)

$ svn co http://svn.apache.org/repos/asf/struts/shale/trunk/ shale
$ cd shale/build
$ maven pdf

--
Wendy

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Re: [m1] PDF Plugin (was: Re: Using the latest xdoc and multiproject plugins together)

Posted by Lukas Theussl <lt...@apache.org>.
> 
> It must be picking up maven.docs.src=../xdocs from the
> project.properties file, but that doesn't make sense when appended to
> target/pdf.

Make that

maven.docs.src=${basedir}/../xdocs

but then it still fails with a duplicate id (sounds familiar by now, 
no?). I recommend again a pdf-navigation file and put ./ in front of the 
hrefs.

Have fun!
-Lukas




---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Re: [m1] PDF Plugin (was: Re: Using the latest xdoc and multiproject plugins together)

Posted by Wendy Smoak <ws...@gmail.com>.
On 12/2/05, Lukas Theussl <lt...@apache.org> wrote:

> I wanted to ask Arnaud about that, i saw the same thing too but thought
> it would be something special about my setup. It only happens right
> after upgrading the plugin.

Clearing the cache seems to be what fixed it here.  Strange... but it
WORKS!  The right title and date and everything.  This is great! 
Thanks so much for your work on this. :)

But... I've got one project where the build files live in a separate
directory structure, and it's not working for that one:

/svn/struts/current/shale/build
$ maven pdf
...
fo:fo:
    [echo] Generating e:\svn\struts\current\shale\build/target/pdf/project.fo fr
om ../xdocs/navigation.xml ...
    [java]
    [java] (Location of error unknown)XSLT Error (javax.xml.transform.Transforme
rException): java.io.FileNotFoundException: E:\svn\struts\current\shale\build\ta
rget\pdf\..\xdocs\navigation.xml (The system cannot find the path specified)

BUILD FAILED

It must be picking up maven.docs.src=../xdocs from the
project.properties file, but that doesn't make sense when appended to
target/pdf.

If you want to try it:
$ svn co http://svn.apache.org/repos/asf/struts/shale/trunk/ shale
$ cd shale/build
$ maven pdf

Thanks again,
--
Wendy

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Re: [m1] PDF Plugin (was: Re: Using the latest xdoc and multiproject plugins together)

Posted by Lukas Theussl <lt...@apache.org>.
Hi Wendy,

I wanted to ask Arnaud about that, i saw the same thing too but thought 
it would be something special about my setup. It only happens right 
after upgrading the plugin. I don't know what exactly fixed it, but 
after playing around a bit, running other goals, uninstalling and 
re-installing, clearing cache, etc., eventually it started working 
again. Sounds weird, but I really couldn't tell what made it run again.

Good luck and patience! :)
-Lukas

PS Don't declare a dependency on 2.5 as I haven't published the SNAPSHOT 
yet.



Wendy Smoak wrote:
> Lukas, I see that you've closed
> http://jira.codehaus.org/browse/MPPDF-53 as fixed in 2.5.
> 
> I must be doing something *else* wrong... I tried both updating from
> svn and building it (maven plugin:install), and also declaring a
> dependency on 2.5-SNAPSHOT, (which downloaded a new version) and all I
> get is:
> 
> /svn/struts/current/tiles
> $ maven pdf
>  __  __
> |  \/  |__ _Apache__ ___
> | |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
> |_|  |_\__,_|\_/\___|_||_|  v. 1.0.2
> 
> Attempting to download maven-pdf-plugin-2.5-SNAPSHOT.jar.
> BUILD FAILED
> Goal "pdf" does not exist in this project.
> Total time: 2 seconds
> Finished at: Fri Dec 02 18:40:42 MST 2005
> 
> I'm using Maven 1.0.2.  Any ideas what to try to get it to work?
> 
> Thanks,
> --
> Wendy
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Re: [m1] PDF Plugin (was: Re: Using the latest xdoc and multiproject plugins together)

Posted by Wendy Smoak <ws...@gmail.com>.
Lukas, I see that you've closed
http://jira.codehaus.org/browse/MPPDF-53 as fixed in 2.5.

I must be doing something *else* wrong... I tried both updating from
svn and building it (maven plugin:install), and also declaring a
dependency on 2.5-SNAPSHOT, (which downloaded a new version) and all I
get is:

/svn/struts/current/tiles
$ maven pdf
 __  __
|  \/  |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|  v. 1.0.2

Attempting to download maven-pdf-plugin-2.5-SNAPSHOT.jar.
BUILD FAILED
Goal "pdf" does not exist in this project.
Total time: 2 seconds
Finished at: Fri Dec 02 18:40:42 MST 2005

I'm using Maven 1.0.2.  Any ideas what to try to get it to work?

Thanks,
--
Wendy

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


RE: [m1] PDF Plugin (was: Re: Using the latest xdoc and multiproject plugins together)

Posted by Arnaud HERITIER <ah...@gmail.com>.
Hi,

	I'll try to test it this week.
	I hope this not due to an incompability between jelly versions.

Arnaud
 

> -----Message d'origine-----
> De : Lukas Theussl [mailto:ltheussl@apache.org] 
> Envoyé : dimanche 13 novembre 2005 17:44
> À : Maven Developers List
> Objet : Re: [m1] PDF Plugin (was: Re: Using the latest xdoc 
> and multiproject plugins together)
> 
> Wendy,
> 
> My patch only fixes the id problem, not the 1.0-1.1 
> incompatibility (I still haven't got a clue why this 
> happens). You have to add the slashes though, if you can't do 
> it in navigation.xml then you should use a separate 
> pdf_navigation.xml (I would recommend that anyway). However, 
> according to the maven docs [1], the href elements should be 
> absolute even for the xdoc plugin and in a multiproject 
> setup, I think that was the case already in m1.0.
> 
> -Lukas
> 
> [1] http://maven.apache.org/maven-1.x/using/site.html
> 
> Wendy Smoak wrote:
> > On 11/13/05, Lukas Theussl <lt...@apache.org> wrote:
> > 
> > 
> >>I just committed a fix for this issue, can you check if 
> it's ok? One 
> >>thing though: in navigation.xml, you need to prepend the 
> hrefs in the 
> >>menu items by a slash, eg <item name="Bean"
> >>href="/tagreference-struts-bean.html"/>
> > 
> > 
> > Strange, I see no change at all.  I updated from svn (and saw the 
> > change in fo-tables.xslt).  Did maven plugin:install, deleted the 
> > cache, got rid of every copy of maven-pdf-plugin* that I 
> could find, 
> > tried again with plugin:install, and after 'maven site pdf' 
> the title 
> > is still "Jakarta Maven" with incorrect dates (tiles) and a build 
> > failure for duplicate ids (taglib).
> > 
> > Assuming it works for you with Maven 1.0.2, what could I be missing?
> > 
> > (I think adding / to those menu items would break the website, the 
> > taglib docs live one level down from the main site. But I 
> see from the 
> > docs that you can have a separate navigation file for the pdf.  No 
> > idea what's going to happen if I try to make a pdf of the entire 
> > multiproject site, though.)
> > 
> > Thanks for all your work on this!
> > --
> > Wendy
> > 
> > 
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org For 
> > additional commands, e-mail: dev-help@maven.apache.org
> > 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org For 
> additional commands, e-mail: dev-help@maven.apache.org
> 




---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Re: [m1] PDF Plugin (was: Re: Using the latest xdoc and multiproject plugins together)

Posted by Lukas Theussl <lt...@apache.org>.
Wendy,

My patch only fixes the id problem, not the 1.0-1.1 incompatibility (I 
still haven't got a clue why this happens). You have to add the slashes 
though, if you can't do it in navigation.xml then you should use a 
separate pdf_navigation.xml (I would recommend that anyway). However, 
according to the maven docs [1], the href elements should be absolute 
even for the xdoc plugin and in a multiproject setup, I think that was 
the case already in m1.0.

-Lukas

[1] http://maven.apache.org/maven-1.x/using/site.html

Wendy Smoak wrote:
> On 11/13/05, Lukas Theussl <lt...@apache.org> wrote:
> 
> 
>>I just committed a fix for this issue, can you check if it's ok? One
>>thing though: in navigation.xml, you need to prepend the hrefs in the
>>menu items by a slash, eg <item name="Bean"
>>href="/tagreference-struts-bean.html"/>
> 
> 
> Strange, I see no change at all.  I updated from svn (and saw the
> change in fo-tables.xslt).  Did maven plugin:install, deleted the
> cache, got rid of every copy of maven-pdf-plugin* that I could find,
> tried again with plugin:install, and after 'maven site pdf' the title
> is still "Jakarta Maven" with incorrect dates (tiles) and a build
> failure for duplicate ids (taglib).
> 
> Assuming it works for you with Maven 1.0.2, what could I be missing?
> 
> (I think adding / to those menu items would break the website, the
> taglib docs live one level down from the main site. But I see from the
> docs that you can have a separate navigation file for the pdf.  No
> idea what's going to happen if I try to make a pdf of the entire
> multiproject site, though.)
> 
> Thanks for all your work on this!
> --
> Wendy
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Re: [m1] PDF Plugin (was: Re: Using the latest xdoc and multiproject plugins together)

Posted by Wendy Smoak <ws...@gmail.com>.
On 11/13/05, Lukas Theussl <lt...@apache.org> wrote:

> I just committed a fix for this issue, can you check if it's ok? One
> thing though: in navigation.xml, you need to prepend the hrefs in the
> menu items by a slash, eg <item name="Bean"
> href="/tagreference-struts-bean.html"/>

Strange, I see no change at all.  I updated from svn (and saw the
change in fo-tables.xslt).  Did maven plugin:install, deleted the
cache, got rid of every copy of maven-pdf-plugin* that I could find,
tried again with plugin:install, and after 'maven site pdf' the title
is still "Jakarta Maven" with incorrect dates (tiles) and a build
failure for duplicate ids (taglib).

Assuming it works for you with Maven 1.0.2, what could I be missing?

(I think adding / to those menu items would break the website, the
taglib docs live one level down from the main site. But I see from the
docs that you can have a separate navigation file for the pdf.  No
idea what's going to happen if I try to make a pdf of the entire
multiproject site, though.)

Thanks for all your work on this!
--
Wendy

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Re: [m1] PDF Plugin (was: Re: Using the latest xdoc and multiproject plugins together)

Posted by Lukas Theussl <lt...@apache.org>.
Wendy,

I just committed a fix for this issue, can you check if it's ok? One 
thing though: in navigation.xml, you need to prepend the hrefs in the 
menu items by a slash, eg <item name="Bean" 
href="/tagreference-struts-bean.html"/>


-Lukas



Wendy Smoak wrote:
> On 10/31/05, Lukas Theussl <lt...@apache.org> wrote:
> 
> 
>>No, if we did everything correctly then you should be able to build the
>>pdf without changing any xdocs. The current pdf plugin does not generate
>>id's from sub/section names anymore, only if you have explicitly
>>identical id's in your xdoc will pdf fail. This is all independend of
>>the xdoc plugin, we just updated the id generation there to make the
>>behavior consistent. Check my latest pdf site documentation:
>>http://people.apache.org/~ltheussl/maven-stage-site/reference/plugins/pdf
> 
> 
> Lukas, I finally got back to this, and after building the PDF plugin
> from source, I'm still having trouble with duplicate ids.
> 
> [java] [ERROR] file:/e:/svn/struts/current/taglib/target/pdf/project.fo:9279
> :1971 The id "#define_id" already exists in this document
> 
> The offending anchors are coming from Taglib Reference pages generated
> by the taglib plugin, so this isn't something I can modify in our docs
> to remove the duplicate.  It's happening because both <bean:define>
> and <nested:define> have an 'id' attribute.
> 
> Any ideas on fixing this one?
> 
> Thanks,
> --
> Wendy
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org