Re: [docbook-apps] closing <a name> tag

From
Marie Sauvage - EBM WebSourcing <>
Date
2007-09-07T13:42:20+00:00
ID
Thread
Re: [docbook-apps] closing <a name> tag
I've found the template and
succeeded partially :

    <xsl:template name="anchor">

        <xsl:param name="node" select="."/>

        <xsl:param name="conditional" select="1"/>

        <xsl:variable name="id">

            <xsl:call-template name="object.id">

                <xsl:with-param name="object" select="$node"/>

            </xsl:call-template>

        </xsl:variable>

        <xsl:if test="$conditional = 0 or $node/@id or
$node/@xml:id">

            <a name="{$id}">.</a>

        </xsl:if>

    </xsl:template>

but when I put no content (or a space) between opening and closing tag
(instead of the point here), it's written in my html generated file
like before with simply <a name="xxx" />. Do you know what does
it ? I'm using Ant and Xalan, is it it ? Do you know a way to force
this ?

I'll maybe have a look in an ant regex replacement...

Marie.

Marie Sauvage - EBM WebSourcing a écrit :

  
  Hi all !

  

I have a problem with my html output. The automatic <a name...>
are generated like that :

<a name="xxx" />

  

but with this, Firefox doesn't consider it closed and all my text is
highlighted like an anchor. I would like to have the anchors like that :

<a name="xxx"></a>

  

is there a parameter to set to force the closing tag to be added and
not to have the closing / in the tag ?

or could you help me in where (and/or how) to find the template to
correct ?

  

thank you in advance,

Marie.

  
  

  

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

Scanned with Copfilter Version
0.83beta3a (P3Scan 2.2.1)

AntiSpam: SpamAssassin 3.1.4

by Markus Madlener @ http://www.copfilter.org

  

---------------------------------------------------------------------
To unsubscribe, e-mail: 
For additional commands, e-mail: