OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: applying imports to additional text


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I want

<literal role="unreadable">foo</literal>

to be processed as if it were written

<literal role="data"><ulink url="...">#&lt;FOO&gt;</literal>

I wrote this:

<xsl:param name="clhs.top" select="'http://www.lisp.org/HyperSpec/'"/>
<xsl:param name="clhs.body" select="'{$clhs.top}Body/'"/>
<xsl:template match="literal[@role = 'unreadable']">
~ <span class="data"><a href="{$clhs.body}sec_2-4-8-20.html">#&lt;</a>
~  <xsl:apply-imports/>&gt;</span>
</xsl:template>

it has 2 bugs:

1. "{$clhs.body}" is expanded to "{$clhs.top}Body/", not to
"http://www.lisp.org/HyperSpec/Body/"; as I want. why?

2. the "#<" and ">" are not included in the <code></code> together with
FOO. How do I make <xsl:apply-imports/> operate on #<FOO> instead of
just FOO?

thanks.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFH4XiDPp1Qsf2qnMcRAi8FAJ9z1wSCdlyVJImK5G71Vtn/03x1JwCgkdwq
SW20C4oRo6p3BjmYjLyvGWo=
=dMha
-----END PGP SIGNATURE-----



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]