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

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

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


Subject: Re: html navigation <link> elements


Hi Bob,

> * Bob Stayton <obof@fntruvyy.arg> [2006-05-08 09:14:54 -0700]:
>
>> suppose "http://clisp.cons.org/impnotes/faq.html#faq-help";
>> has id "faq-help" in the docbook/xml document being processed, how do I
>> refer to it in the <link> above?
>
> How do you put an id on a quoted string?  Is that string in a ulink with
> an id attribute?  An example would help.

my docbook/xml document contains these elements :

<index id="idx"/>
<qandaentry id="faq-help"> ...
&c

when I convert it to HTML, I want the <html><head> element to contain
the following elements:

<link rel="help" title="How do I ask for help?" href="faq.html#faq-help"/>
<link rel="contents" title="Index" href="idx.html"/>

to that end, I added the following template to my xsl customization layer:


<xsl:template name="user.head.content">
 <meta name="date">
  <xsl:attribute name="content"><xsl:call-template name="datetime.format">
    <xsl:with-param name="date" select="date-time()"/>
    <xsl:with-param name="format" select="'regenerated: x'"/>
 </xsl:call-template></xsl:attribute></meta>
 <link rel="help" title="How do I ask for help?" href="faq.html#faq-help"/>
 <link rel="home" title="Home" href="http://clisp.cons.org"/>
 <link rel="contents" title="Table of Contents" href="index.html"/>
 <link rel="contents" title="Index" href="idx.html"/>
</xsl:template>


it works as intended (after I remove the <meta> element which does does
not work because "date-time" and "date:date-time" are not defined, see
http://article.gmane.org/gmane.text.docbook.apps:15096)

now, I would like to be able to replace href="idx.html" and
href="faq.html#faq-help" with something like href="f(idx)" and
href="f(faq-html)" where f() is a function that computes the anchor/id
of the html element into which the docbook element with the
corresponding id is mapped.

thanks.

PS. Bob, please configure your MUA to respect the header
    "Mail-Copies-To: never" (I do not want mail-copies of replies, I
    read this list on gmane).  Thanks.

-- 
Sam Steingold (http://www.podval.org/~sds) on Fedora Core release 5 (Bordeaux)
http://thereligionofpeace.com http://truepeace.org http://jihadwatch.org
http://honestreporting.com http://camera.org http://pmw.org.il http://memri.org
When C++ is your hammer, everything looks like a thumb.



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