Hi Jon,
You said DocBook 5, so I think you need to add the namespace prefix to the element name:

<xsl:value-of select="d:refentrytitle"/>

--
Bob Stayton
Sagehill Enterprises
b...@sagehill.net


On 11/8/2013 3:56 AM, Jon Leech wrote:
    I've got a Docbook 5 <refentry> page including

<citerefentry><refentrytitle>glDepthRange</refentrytitle></citerefentry>

and a stylesheet customization of ...xsl-ns/current/xhtml5/onechunk.xsl
including

    <xsl:param name="citerefentry.link" select="'1'"></xsl:param>
<xsl:template name="generate.citerefentry.link"><xsl:value-of select="refentrytitle"/><xsl:text>.xhtml</xsl:text></xsl:template>

    When I process this with e.g.

xsltproc testref.xsl testref.xml

the generate.citerefentry.link template is run, but does not emit the
<refentrytitle> contents in testref.xhtml. I expect to see

<a class="citerefentry" href="glDepthRange.xhtml"><span class="citerefentry"><span class="refentrytitle">glDepthRange</span></span></a>

but in fact get

...href=".xhtml"...

Did something change about the way this template should be coded between the XSL and XSL-NS stylesheets? When I change the stylesheet in testref.xsl to
the old ...release/xsl/current/xhtml5/onechunk.xsl, the generated link
comes out correctly. This is using the the 1.78.1 releases of both XSL and
XSL-NS, as packaged by Debian.
    Thanks,
    Jon Leech



---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org

Reply via email to