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: HTML: Text behind <ulink> not written


Hi,

I have a set of docbook xml-files. These files are merged by xinclude in 
a separate task before the xslt transformation.

The name of the product is inserted via an entity
<!ENTITY phoenix '<ulink url="http://www.phoenixcc.de";>Phoenix<emphasis 
role="italic">CC</emphasis>&copy;</ulink>'>
The insertion of the entities is managed by the xinclude task.
The merged document contains the correct content.

After the transformation to html every text behind the closing </ulink> 
is missing, independently of surrounding title or section tag. In the 
toc the ulink is ignored and the correct text is printed after the 
entity. The transformation to html chunk produces the correct content.

For html I use the following xsl transformation file (html.xsl):

##################
<?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
                version='1.0'
                xmlns="http://www.w3.org/1999/xhtml";
                exclude-result-prefixes="#default">

<xsl:import href="docbook:docbook.html"/>

<xsl:template match="section">
  <xsl:variable name="depth" select="count(ancestor::section)+1"/>

  <div>
      <xsl:attribute name="class">
          <xsl:value-of select="name(.)" />
          <xsl:if test="@role">
                  <xsl:value-of select="concat(' ', @role)" />
          </xsl:if>
      </xsl:attribute>
    <xsl:call-template name="language.attribute"/>
    <xsl:call-template name="section.titlepage"/>

    <xsl:variable name="toc.params">
      <xsl:call-template name="find.path.params">
        <xsl:with-param name="table" 
select="normalize-space($generate.toc)"/>
      </xsl:call-template>
    </xsl:variable>

    <xsl:if test="contains($toc.params, 'toc') and $depth &lt;= 
$generate.section.toc.level">
      <xsl:call-template name="section.toc">
        <xsl:with-param name="toc.title.p" select="contains($toc.params, 
'title')"/>
      </xsl:call-template>
      <xsl:call-template name="section.toc.separator"/>
    </xsl:if>
    <xsl:apply-templates/>
    <xsl:call-template name="process.chunk.footnotes"/>
  </div>
</xsl:template>


<xsl:param name="html.stylesheet" select="'phoenixdoc.css'"/>
<xsl:param name="generate.legalnotice.link" select="0"/>
<xsl:param name="generate.section.toc.level" select="1"/>
<xsl:param name="toc.section.depth" select="1"/>
<xsl:param name="section.autolabel" select="1"/>
<xsl:param name="section.autolabel.max.depth" select="2"/>
<xsl:param name="section.label.includes.component.label" select="1"/>
<xsl:param name="make.valde.html" select="1"/>
<xsl:param name="generate.toc">
    appendix  toc,title
    article/appendix  nop
    article   toc,title
    book      toc,title,figure,example,equation
    chapter   toc,title
    part      toc,title
    preface   toc,title
    qandadiv  toc
    qandaset  toc
    reference toc,title
    sect1     toc
    sect2     toc
    sect3     toc
    sect4     toc
    sect5     toc
    section   toc
    set       toc,title
</xsl:param>

<xsl:param name="local.l10n.xml" select="document('')"/>
<l:i18n xmlns:l="http://docbook.sourceforge.net/xmlns/l10n/1.0";>
  <l:l10n language="de">
        <l:context name="xref-number-and-title">
           <l:template name="section" text="&#8222;%t&#8220;"/>
           <l:template name="table" text="&#8222;%t&#8220;"/>
        </l:context>
   <l:context name="title-numbered">
      <l:template name="chapter" text="%n. %t"/>
   </l:context>
  </l:l10n>
</l:i18n>

<xsl:template name="user.header.content">
  <link rel="SHORTCUT ICON" href="../pictures/favicon.ico"/>
</xsl:template>
 
</xsl:stylesheet>


##################
My html chunk xsl file (html_chunk.xsl) includes the html version 
(html.xsl) and looks like that:

##################
<?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
                version='1.0'
                xmlns="http://www.w3.org/1999/xhtml";
                exclude-result-prefixes="#default">

<xsl:import href="html.xsl"/>
<xsl:import href="docbook:docbook.html_chunk.common"/>
<xsl:include href="docbook:docbook.html_chunk.manifest"/>
<xsl:include href="docbook:docbook.html_chunk.code"/>

<xsl:param name="chunk.first.sections" select="1"/>
<xsl:param name="chunk.section.depth" select="2"/>
<xsl:param name="navig.graphics" select="1"/>
<xsl:param name="navig.graphics.path">icons/</xsl:param>

</xsl:stylesheet>
##################

    Thanks in advance for any information

       Holger



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