This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [docbook-apps] HowTo get docbook <acronym> elements to be in html like a real html acronym


On Montag, 1. Dezember 2003 03:24, Bob Stayton wrote:
>
> Hi Claus,
> This looks very interesting.  Are you proposing that
> this feature be added to the stylesheet distribution?

Yes if a general solution is found!

>
> > The only  questionable point for me is:
> >
> > <!-- ###FIXME###: do I need this?
> >       <xsl:call-template name="anchor"/>
> >       <xsl:call-template name="simple.xlink">
> > ..
> > -->
>
> Only if you want your acronyms to be processed in
> a manner consistent with other inlines.  The
> 'anchor' template outputs a <a name="$id"/>
> if the inline has an id attribute, and the
> simple.xlink template outputs an xlink if
> the inline has a xlink:href attribute.  If
> you don't use those, then you don't need them.
> If your code is added to the stylesheet distribution,
> it will need them.

Hi Bob,

You are right, my solution is not so general as it should, but I could not found 
any example of an acronym tag with nested other tags or an 
xlink:href attribute.

The anchor works for acronyms found in my database, but the HTML is
no valid when I create the link to foldog for unknown acronyms.

One of my test cases:

 <glossentry>
      <glossterm><anchor id="glossterm-XHTML"/>XHTML</glossterm>
      <glossdef>
        <para>
    &lt;hypertext, standard, World-Wide Web (<acronym id="WWW">WWW</acronym>)&gt; 
    A reformulation of <acronym><link linkend="glossterm-HTML">HTML</link></acronym> 4.01 in 
    <acronym><link linkend="glossterm-XML">XML</link></acronym>. Being XML means that XHTML can be 
    viewed, edited, and validated with standard XML tools. At the same time, it operates as well 
    as or better than <acronym id="HTML4">HTML4</acronym> in existing 
    <acronym><anchor id="HTML_4"/>HTML 4</acronym> conforming user agents.
        </para>
        <para><ulink url="http://www.w3.org/TR/xhtml1/";>Home </ulink>.
        </para>
        <para>
   Latest version: 1.0, as of 2000-09-10.
        </para>
        <para>
          <remark>foldoc(2000-09-10)</remark>
        </para>
      </glossdef>
  </glossentry>


Do you have any example for me to test with?

Claus Klein


To unsubscribe from this list, send a post to docbook-apps-unsubscribe@lists.oasis-open.org, or visit http://www.oasis-open.org/mlmanage/.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]