List Info

Thread: Legal Notice Link Problem




Legal Notice Link Problem
user name
2007-11-06 10:08:31
> -----Original Message-----
> From: Richard Cooke 
> 
> I have place the following in my xml file (within a
book section): 
> 
>     <legalnotice> 
>       <para>    
>       Here is a short legal notice: blah blah 
>       </para> 
>     </legalnotice> 
> 
> And the following in a custom.xsl template: 
> 
>  <xsl:param
name="generate.legalnotice.link"
select="1"/> 
>   
> I use this to generate a html file, which it does along
with 
> another file containing the legal notice
(id4692171.html). 
> However, the link in the main html file is as follows:
> 
> <a 
>
href="Here%20is%20a%20short%20legal%20notice:%20blah%20
blah">L
egal Notice</a> 


[Moving this thread to the docbook-apps list, where
stylesheet issues are
discussed]


There is a bug in DocBook XSL 1.73.2 (and earlier) that
garbles the
legalnotice link when you generate single-page HTML (it
works for chunked
output). This is fixed in Subversion, and you can test it by
using a
snapshot release: http://doc
book.sourceforge.net/snapshots/.

The calculation of the legalnotice filename is now done as
follows:

1. First, there is a check to see if a filename is given by
the <?dbhtml
filename="..."?> processing instruction. If so,
that filename is used.

2. If the legalnotice has an id/xml:id attribute, and if
the
use.id.as.filename parameter != 0, then the filename is the
concatenation of
the id/xml:id value and the value of the html.ext
parameter.

3. If the legalnotice does not have an id/xml:id attribute,
or if
use.id.as.filename = 0, then the filename is the
concatenation of "ln-",
auto-generated id value, and html.ext value.

By the way, this naming scheme also applies to revhistory
when
generate.revhistory.link = 1 (for case 3, the prefix is
"rh-"). 

/MJ



------------------------------------------------------------
---------
To unsubscribe, e-mail: docbook-apps-unsubscribelists.oasis-open.org
For additional commands, e-mail: docbook-apps-helplists.oasis-open.org


[1]

about | contact  Other archives ( Real Estate discussion Medical topics )