[WikiText] How to add author and copright information to DocBook output [message #69232] |
Thu, 04 June 2009 10:34 |
Eclipse User |
|
|
|
Originally posted by: peter.friese.itemis.com
Hi,
I would like to add copyright and author information to my DocBook
output, like this:
<bookinfo>
<releaseinfo>Version 4.3.1</releaseinfo>
<pubdate>2008-12-15</pubdate>
<authorgroup>
<author>
<firstname>Peter</firstname>
<surname>Friese</surname>
</author>
<author>
<firstname>John</firstname>
<surname>Doe</surname>
</author>
</authorgroup>
<legalnotice>
<para>Copies of this document may be made for your own use and for
distribution to others, provided that you do
not charge any fee for such copies and further provided that each
copy contains this Copyright Notice,
whether distributed in print or electronically.</para>
</legalnotice>
</bookinfo>
As far as I understand the code in
org.eclipse.mylyn.wikitext.core.parser.util.MarkupToDocbook. parse(String),
I can define the book title (e.g. by setting the booktitle attribute on
the respective ANT task). However, there is no respective attribute for
copyright and author information).
What's your suggestion to add the needed information to the DocBook file?
Cheers,
Peter
|
|
|
Re: [WikiText] How to add author and copright information to DocBook output [message #69253 is a reply to message #69232] |
Fri, 05 June 2009 16:38 |
David Green Messages: 136 Registered: July 2009 |
Senior Member |
|
|
Peter Friese wrote:
> Hi,
>
> I would like to add copyright and author information to my DocBook
> output, like this:
>
> <bookinfo>
> <releaseinfo>Version 4.3.1</releaseinfo>
> <pubdate>2008-12-15</pubdate>
> <authorgroup>
> <author>
> <firstname>Peter</firstname>
> <surname>Friese</surname>
> </author>
> <author>
> <firstname>John</firstname>
> <surname>Doe</surname>
> </author>
> </authorgroup>
> <legalnotice>
> <para>Copies of this document may be made for your own use and for
> distribution to others, provided that you do
> not charge any fee for such copies and further provided that each
> copy contains this Copyright Notice,
> whether distributed in print or electronically.</para>
> </legalnotice>
> </bookinfo>
>
>
> As far as I understand the code in
> org.eclipse.mylyn.wikitext.core.parser.util.MarkupToDocbook. parse(String),
> I can define the book title (e.g. by setting the booktitle attribute on
> the respective ANT task). However, there is no respective attribute for
> copyright and author information).
>
> What's your suggestion to add the needed information to the DocBook file?
>
> Cheers,
> Peter
>
Peter,
I suggest that you make a feature request via bugzilla.
In the meantime you can pre-process your generated docbook and insert
the book info (you could use Ant's replaceregexp or use an XSL)
http://ant.apache.org/manual/OptionalTasks/replaceregexp.htm l
http://ant.apache.org/manual/CoreTasks/style.html
Regards,
David
|
|
|
Re: [WikiText] How to add author and copright information to DocBook output [message #597742 is a reply to message #69232] |
Fri, 05 June 2009 16:38 |
David Green Messages: 96 Registered: July 2009 |
Member |
|
|
Peter Friese wrote:
> Hi,
>
> I would like to add copyright and author information to my DocBook
> output, like this:
>
> <bookinfo>
> <releaseinfo>Version 4.3.1</releaseinfo>
> <pubdate>2008-12-15</pubdate>
> <authorgroup>
> <author>
> <firstname>Peter</firstname>
> <surname>Friese</surname>
> </author>
> <author>
> <firstname>John</firstname>
> <surname>Doe</surname>
> </author>
> </authorgroup>
> <legalnotice>
> <para>Copies of this document may be made for your own use and for
> distribution to others, provided that you do
> not charge any fee for such copies and further provided that each
> copy contains this Copyright Notice,
> whether distributed in print or electronically.</para>
> </legalnotice>
> </bookinfo>
>
>
> As far as I understand the code in
> org.eclipse.mylyn.wikitext.core.parser.util.MarkupToDocbook. parse(String),
> I can define the book title (e.g. by setting the booktitle attribute on
> the respective ANT task). However, there is no respective attribute for
> copyright and author information).
>
> What's your suggestion to add the needed information to the DocBook file?
>
> Cheers,
> Peter
>
Peter,
I suggest that you make a feature request via bugzilla.
In the meantime you can pre-process your generated docbook and insert
the book info (you could use Ant's replaceregexp or use an XSL)
http://ant.apache.org/manual/OptionalTasks/replaceregexp.htm l
http://ant.apache.org/manual/CoreTasks/style.html
Regards,
David
|
|
|
Powered by
FUDForum. Page generated in 0.03437 seconds