        text-align="start">
        <xsl:apply-templates/>
      </fo:block>
-@@ -456,7 +512,14 @@
+@@ -456,7 +512,16 @@
    </xsl:template>
  
    <xsl:template match="link">
 +    <xsl:choose>
 +      <xsl:when test="starts-with(@href, '#')">
-+    <fo:basic-link color="blue" text-decoration="underline" internal-destination="substring(@href,2)"><xsl:apply-templates/></fo:basic-link>
++    <fo:basic-link color="blue" text-decoration="underline" internal-destination="{substring(@href,2)}">
++      <xsl:apply-templates/>
++    </fo:basic-link>
 +      </xsl:when>
 +      <xsl:otherwise>
      <fo:basic-link color="blue" text-decoration="underline" external-destination="{@href}"><xsl:apply-templates/></fo:basic-link>

   </xsl:template>
 
   <xsl:template match="figure">

Index: src/resources/skins/common/xslt/fo/document2fo.xsl
===================================================================
RCS file: /home/cvspublic/xml-forrest/src/resources/skins/common/xslt/fo/document2fo.xsl,v
retrieving revision 1.2
diff -u -r1.2 document2fo.xsl
--- src/resources/skins/common/xslt/fo/document2fo.xsl	16 Nov 2002 22:58:50 -0000	1.2
+++ src/resources/skins/common/xslt/fo/document2fo.xsl	18 Nov 2002 14:09:29 -0000
@@ -2,6 +2,7 @@
 
 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
