docbook: Element aliasing?


Previous by date: 11 Jan 2001 14:50:26 -0000 Linuxdoc 2 html question., Ryan Gallagher
Next by date: 11 Jan 2001 14:50:26 -0000 Re: Element aliasing?, Gregory Leblanc
Previous in thread:
Next in thread: 11 Jan 2001 14:50:26 -0000 Re: Element aliasing?, Gregory Leblanc

Subject: Element aliasing?
From: "John R. Daily" ####@####.####
Date: 11 Jan 2001 14:50:26 -0000
Message-Id: <20010111145013.174201BE90@albus.indy.progeny.com>

I know this is a bit off-topic, but I'm running out of avenues to
explore. It's rare that Google fails me, but my ignorance of XML
terminology is likely the real culprit.

I'd like to create new elements that are aliases to existing ones in
DocBook. As an example, let's say that I'm referencing protocols such
as TFTP, and I'm not certain how I want to mark those up. <acronym> is
a possibility, although I'd like to leave the option of creating my
own <protocol> element at a later date.

So I'd like to create a protocol element which starts out as an alias
to acronym, so that if I find another element that exists in DocBook
already which meets my needs, I can switch the alias over to it, and
if I don't, I can define protocol as a real element if and when
desired.

I've been trying to fake it with constructs like this:

   <!ENTITY % protostart "<acronym>">
   <!ENTITY % protoend   "</acronym>">

   <!ENTITY % tftp "%protostart;TFTP%protoend;">

But besides its inherent ugliness, that doesn't seem to fly well with
my current parsers.

Is there a suggested way to handle this type of situation? Is one of
my fundamental assumptions awry? Or is there another list where I
should take this up?

Thanks.

-John Daily
####@####.####

Previous by date: 11 Jan 2001 14:50:26 -0000 Linuxdoc 2 html question., Ryan Gallagher
Next by date: 11 Jan 2001 14:50:26 -0000 Re: Element aliasing?, Gregory Leblanc
Previous in thread:
Next in thread: 11 Jan 2001 14:50:26 -0000 Re: Element aliasing?, Gregory Leblanc


  ©The Linux Documentation Project, 2014. Listserver maintained by dr Serge Victor on ibiblio.org servers. See current spam statz.