You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Gerard van Enk <ge...@eo.nl> on 2000/01/19 16:25:55 UTC

Problem with document-stylebook.xsl

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>


Re: Problem with document-stylebook.xsl

Posted by Pierpaolo Fumagalli <pi...@apache.org>.
Gerard van Enk wrote:
> 
> > Pier, what's the difference between <link> and <jump> in the default
> > skin?
> >
> 
> I thought it was something like this: use <link> for a link between
> documents generated by Stylebook and <jump> for a link to another
> website...but I could be wrong...

Bingo... <link idref="..."> links to a document whose ID is specified in
the file...

	Pier

-- 
--------------------------------------------------------------------
-          P              I              E              R          -
stable structure erected over water to allow the docking of seacraft
<ma...@betaversion.org>    <http://www.betaversion.org/~pier/>
--------------------------------------------------------------------
- ApacheCON Y2K: Come to the official Apache developers conference -
-------------------- <http://www.apachecon.com> --------------------

RE: Problem with document-stylebook.xsl

Posted by Gerard van Enk <ge...@eo.nl>.
> Pier, what's the difference between <link> and <jump> in the default
> skin?
>

I thought it was something like this: use <link> for a link between
documents generated by Stylebook and <jump> for a link to another
website...but I could be wrong...

Gerard


Re: Problem with document-stylebook.xsl

Posted by Stefano Mazzocchi <st...@apache.org>.
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.
<st...@apache.org>                             Friedrich Nietzsche
--------------------------------------------------------------------
 Come to the first official Apache Software Foundation Conference!  
------------------------- http://ApacheCon.Com ---------------------