cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gerard van Enk" <gerard.van....@eo.nl>
Subject Problem with document-stylebook.xsl
Date Wed, 19 Jan 2000 15:25:55 GMT
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>


Mime
View raw message