xsl-list
[Top] [All Lists]

[xsl] fo:basic-link

2009-11-06 21:27:19
Hi all,
I have been reviewing <fo:basic-link> and have learned how to use the external- and internal- destination properties. Two test code fragments are listed below. Is there a way to make
   <fo:basic-link external-destination="s.pdf">
take me directly to
   <xsl:attribute name="id">block1</xsl:attribute>

within the s.pdf document rather than just opening the "s.pdf" document?
If so, how would I change
   <fo:basic-link external-destination="s.pdf">
to do that?

Thanks,
Mark

Listing fragment 1: set Id
<fo:block xsl:use-attribute-sets="subject">
    <xsl:if test=". eq 'St. Adalbert Association'">
            <xsl:attribute name="id">block1</xsl:attribute>
    </xsl:if>
    <xsl:value-of select="."/>
    <fo:wrapper xsl:use-attribute-sets="catalog-numbers">
         <xsl:call-template name="catalog-name-and-number"/>
     </fo:wrapper>
     <xsl:apply-templates select="../Xref" mode="set-up"/>
  </fo:block>

Listing Fragment 2: make link
<xsl:choose>
       <xsl:when test="Heading eq 'St. Adalbert Association'">
               <fo:basic-link external-destination="s.pdf" color="blue">
                     <xsl:value-of select="Heading"/>
              </fo:basic-link>
       </xsl:when>
       <xsl:otherwise>
              <xsl:value-of select="Heading"/>
       </xsl:otherwise>
</xsl:choose>


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>