Re: [xep-support] XEP v4 Desktop - XSL 1.1 support?

From: CRW150@yahoo.com
Date: Tue Oct 19 2004 - 08:50:20 PDT

  • Next message: Alexander Peshkov: "Re: [xep-support] footnotes: reversed text and placement problem"

    Jim,

    Thanks so much (a bit late, but I was out of town--sorry). I tried
    your suggestion but with no luck. If you don't mind, I have two
    questions. One, about the syntax--

    --- Jim Melton <jim.melton@acm.org> wrote:

    > Just in case it's useful, here's a snippet of my .fo code for an
    > "external" link:
    >
    > <fo:basic-link
    > external-destination="url('file:my_file.pdf#'my_symbol'')"
    I'm confused here. I thought it would be illegal to use a set of
    single quotes inside a set of single quotes. ?? But I tried this, and
    it doesn't seem to matter whether I do or don't use quotes around
    'my_symbol'. Either way, my link just takes me to page 1.

    My .fo code looks like this:
    <!--template for the main document-->
    <xsl:template match="persName">
      <fo:inline id="#mention-{generate-id(.)}" color="#CC6666">
        <fo:basic-link
    external-destination="url('file:popIndexnew.pdf#person.{generate-id(.)}')">
          <xsl:apply-templates/>
        </fo:basic-link>
      </fo:inline>
    </xsl:template>

    <!--template for the index document-->
    <xsl:for-each select="//persName[count(.|key('persons-by-who',
    @who)[1])=1]">
      <xsl:variable name="peop" select="@who"/>
        <fo:block xsl:use-attribute-sets="font" space-before="24pt"
    space-after="24pt">
        <xsl:if test="(@who=$identified)">
          <fo:block font-weight="bold" id="#person.{generate-id(.)}">
            <fo:basic-link
    external-destination="url('file:MemToDate.pdf#mention-{generate-id(.)}')">
              <xsl:value-of
    select="translate($indexdoc//item[@id=$peop]//surname, $lower,
    $upper)"/>
            </fo:basic-link>
    ...
    </xsl:template>

    If that question is off-topic for this list, I'll ask elsewhere, and
    please pardon me.

    But for XEP specifically, would you mind telling me how you run the
    transformation? I've been doing the first transformation of my source
    and stylesheet with Saxon, which creates 2 .fo files, and then using
    XEP to transform the two resulting .fo files into .pdf--mainly because
    I can't figure out what commands to use to do it all in XEP.

    I would appreciate any help--if you have time!
    Thanks,
    Susan

                    
    _______________________________
    Do you Yahoo!?
    Declare Yourself - Register online to vote today!
    http://vote.yahoo.com
    -------------------
    (*) To unsubscribe, send a message with words 'unsubscribe xep-support'
    in the body of the message to majordomo@renderx.com from the address
    you are subscribed from.
    (*) By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/tos.html



    This archive was generated by hypermail 2.1.5 : Tue Oct 19 2004 - 09:10:15 PDT