This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: [docbook-apps] entities in processing instructions
- From: Laszlo Kovacs <Laszlo dot Kovacs at Sun dot COM>
- To: Jirka Kosek <jirka at kosek dot cz>
- Cc: docbook-apps <docbook-apps at lists dot oasis-open dot org>
- Date: Fri, 22 Apr 2005 15:44:34 +0100
- Subject: Re: [docbook-apps] entities in processing instructions
- References: <4268FE6B.80305@sun.com> <42690B98.6030700@kosek.cz>
I am trying to implement a glossary in Javahelp that does not use
Docbook glossary entities and does not use the Javahelp glossary feature
either. The main reason being that javahelp.xsl does not convert Docbook
glossaries into Javahelp glossaries (it converts them into html, but
that is not enough in this case).
The plan is to use an xml processing instruction like:
<?glossary-entry text="pda" definition="personal digital assistant" ?>
Then I write an xsl template that translates this to an <object> tag
that uses some java code I wrote that will open a window when the text
is hovered with the definition in it.
The problem is I naturally will have "pda" all over my document and I
would not like to replicate the definition everywhere (easier to manage
and translate like this).
So I thought of something like a definition id that I could use
everywhere and the definition text itself in only one place. And I tried
entities that (as you say) will not work.
Sorry for the newbie questions, I know relatively little about both xml
and Docbook.
Any ideas as to how to solve this?
Thanks,
Laszlo
Jirka Kosek wrote:
Laszlo Kovacs wrote:
Anybody can help me to get the entity value inside the PI template?
This is impossible. Entity references are expanded only in element
content and in attribute values.
Might be if you will describe problem you need to solve, someone will be
able to suggest you an alternative approach.
---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org