OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

docbook message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]

Subject: Re: [docbook] Using custom tags

Recently there was another thread where one user was posting about
problems when trying to generate Java from DocBook's XML schema, which
is the given approach for using JAXB. (Coding all of the Java classes
by hand and adding JAXB annotations is an alternative, but not for
DocBook. JAXB RelaxNG support is "experimental", and IIRC it didn't
work for that other poster either.)

I experimented a little with the DocBook schema and tried to work
around or eliminate the hitches. I don't think it can be done without
changing the DocBook XML schema. I guess that the XML schema has been
derived from the RelaxNG schema, and two or three of the problems
result from a conversion that does not produce the best (from a JAXB
point of view) XML Schema equivalent, and there are some name clashes
(due to historic reasons, as s.o. kindly explained to me.)

What has been posted about "filling in the custom tags" is a bit
vague. If <address> is the only tag to be handled, it might be
possible to use a hand written, annotated set of Java classes.
Generate DocBook XML from that, and use XSLT to merge the documents.


On Wed, Feb 24, 2010 at 5:06 PM, kolkar <kolkar100@gmail.com> wrote:
> Hi
> I am newbie to docbook and i woudl need to use my custom tags, to be able to
> dynamically generate parts of a docbook file. For example when tag
> <address></address> occurs I would like to fill address of a certain
> customer to this tag using JAXB. And finally when all my custom tags are
> filled I would like to create RTF. Is this possible?
> --
> View this message in context: http://old.nabble.com/Using-custom-tags-tp27714238p27714238.html
> Sent from the docbook General mailing list archive at Nabble.com.
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: docbook-unsubscribe@lists.oasis-open.org
> For additional commands, e-mail: docbook-help@lists.oasis-open.org

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]