This is the mail archive of the
docbook@lists.oasis-open.org
mailing list for the DocBook project.
[docbook] Macros / Entities with custom parameters?
- From: Antoine Calando <antoine at alliancemca dot net>
- To: docbook at lists dot oasis-open dot org
- Date: Thu, 04 Sep 2003 11:14:06 +0200
- Subject: [docbook] Macros / Entities with custom parameters?
Hi,
I'm trying to find how to write some kind of macro or entity with custom parameters
that are reused when the entity is expanded. I am not sure it is very clear, so
here is an example :
I want something like "&dbtag($$$$$);"
(where dbtag is the entity name, and $$$$$ is a parameter like "section" for instance)
to be expanded in :
<ulink url="url_to_docbook_doc/$$$$$"> <sgmltag>$$$$$</sgmltag></ulink>
I search in the DocBook and XML docs but I cannot find anything. May be with SGML?
The better workaround I found would be to do (if $$$$$ is used 2 times):
"¯o_beginning; $$$$$$$ ¯o_middle; $$$$$$$ ¯o_end;"
but this not very elegant...
An other way would be to add a new tag in the dtd and also new xslt rules to handle
it but that's too much work!
If anyone could at least confirm that it's not possible...
Antoine Calando
To unsubscribe from this list, send a post to docbook-unsubscribe@lists.oasis-open.org.