title: FOP XSL-FO Anchor in an external destination
body: <p>With XSL-FO (Fop), I succeeded in creating a link to an external PDF :</p>
  
  <pre><code>&lt;fo:basic-link show-destination="new"&gt;
  &lt;xsl:attribute name="external-destination"&gt;foo.pdf&lt;/xsl:attribute&gt;
  &lt;/fo:basic-link&gt;
  </code></pre>
  
  <p>But now, I would like to reach an anchor in this external PDF. So I tried to build something like that :</p>
  
  <pre><code>&lt;fo:basic-link show-destination="new"&gt;
  &lt;xsl:attribute name="external-destination"&gt;foo.pdf#anchorId&lt;/xsl:attribute&gt;
  &lt;/fo:basic-link&gt;
  </code></pre>
  
  <p>Unfortunately, when I click on the generated link, I get an error. It tries to open the document <strong>foo.pdf%23anchorId</strong>.</p>
  
  <p>In my .fo file, the link is correct with a <strong>#</strong> but this <strong>#</strong> is misinterpreted  during the transformation in PDF.</p>
  
  <p>Do you have an idea to solve this issue ?</p>
  
  <p>Thanks,</p>
  
  <p>Johann</p>