cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefano Mazzocchi <stef...@apache.org>
Subject Re: Problem with document-stylebook.xsl
Date Wed, 19 Jan 2000 23:35:36 GMT
Gerard van Enk wrote:
> 
> In the file 'document-stylebook.xsl' alle the possible links are converted
> to 'jump'-tags. But in the file 'document.xsl' from stylebook there's a
> difference. <link> is a link to another xml-file. If you use <link
> idref="test">test</link> document.xsl will convert this to <a
> href="test.html>test</a>.
> Maybe there's a reason for converting all possible links to jumps, but if
> not here's the diff to resolve it.
> 
> Gerard
> 
> --- document-stylebook.xsl
> Wed Dec 15 13:56:39 1999
> +++ document-stylebook.xsl  Wed
> Jan 19 18:11:32 2000
> @@ -58,12 +58,18 @@
> 
>  <!-- links -->
> 
> - <xsl:template match="link|jump|fork">
> + <xsl:template match="jump|fork">
>    <jump href="{@href}">
>     <xsl:apply-templates/>
>    </jump>
>   </xsl:template>
> 
> + <xsl:template match="link">
> +  <link idref="{@href}">
> +   <xsl:apply-templates/>
> +  </link>
> + </xsl:template>
> +
>   <xsl:template match="connect">
>    <xsl:apply-templates/>
>   </xsl:template>

Pier, what's the difference between <link> and <jump> in the default
skin?

-- 
Stefano Mazzocchi      One must still have chaos in oneself to be
                          able to give birth to a dancing star.
<stefano@apache.org>                             Friedrich Nietzsche
--------------------------------------------------------------------
 Come to the first official Apache Software Foundation Conference!  
------------------------- http://ApacheCon.Com ---------------------



Mime
View raw message