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] | [Elist Home]


Subject: Re: DOCBOOK-APPS: XSL & xref


On Wed, Jan 29, 2003 at 01:03:31PM +0700, pclouds wrote:
> Hello
> I wrote the code like:
> <qandaset>
>   <qandaentry>
>     <question id="q1"><para>Question 1</para></question>
>     <answer><para>Here is the 
> xref <xref linkend="q1" endterm="q1"/><para></answer>
>   </qandaentry>
> </qandaset>
> 
> And <xref> produce: <a href="#q1"><p>Question 1</p></a>
> It should be: <a href="#q1">Question 1</a>
> Can you show me how to fix this?

Are you using a stylesheet customization?
The default XSL output for an <xref> to a <question> is
<a href="#q1>Q: 1.1</a>.  That comes from the gentext
template:

   <l:context name="xref">
      <l:template name="question" text="Q:&#160;%n"/>

in common/en.xml (or whatever lang you are using).
If you are getting the text of the question, then
there is a customization somewhere.  

-- 

Bob Stayton                                 400 Encinal Street
Publications Architect                      Santa Cruz, CA  95060
Technical Publications                      voice: (831) 427-7796
The SCO Group                               fax:   (831) 429-1887
                                            email: bobs@sco.com


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


Powered by eList eXpress LLC