List Info

Thread: - anchors (internal links) collapsing




- anchors (internal links) collapsing
country flaguser name
Switzerland
2008-01-04 04:20:11
Hi


TinyMCE inserts
<a name="anchor-name"
title="anchor-title"></a>
for an internal link anchor (when the document is calles
using *.xml  
the anchor syntax is correct)


The anchor is collapsed in a later step to
<a name="anchor-name"
title="anchor-title" />
The above causes problems.


I've been searching for the transformation step that causes
that  
collapsing and I've also been trying to prevent the
collapsing by  
adding "a" to strip_namespaces.xsl (that
transformation does not seem  
to be applied to the content) (and switching prettyprinting
off) - no  
luck.


any hints where to look further are very appreciated.

BTW - while I was trying to insert that code into the zones
defaul pub  
with form-editor I got a "Involved objects are checked
out." message  
when trying to save or cancel.


Jürgen


null-oder-eins GmbH Zürich
web & graphic design

www.null-oder-eins.ch

ragallerapache.org
Skype: callto://ragaller




------------------------------------------------------------
---------
To unsubscribe, e-mail: dev-unsubscribelenya.apache.org
For additional commands, e-mail: dev-helplenya.apache.org


Re: - anchors (internal links) collapsing
country flaguser name
Switzerland
2008-01-04 06:06:12
Hi

Am 04.01.2008 um 11:20 schrieb Jürgen Ragaller:
>
> I've been searching for the transformation step that
causes that  
> collapsing and I've also been trying to prevent the
collapsing by  
> adding "a" to strip_namespaces.xsl (that
transformation does not  
> seem to be applied to the content) (and switching
prettyprinting  
> off) - no luck.

For now I added a xslt in page2xhtml.xsl that inserts a
comment  
between the opening and closing tag of an empty a (a hack,
but it  
works for  now).

That's the snippet I use:

<!-- this prevents anchors from collapsing -->
<xsl:template match="xhtml:div[id='body']//xhtml:a">
  <xsl:element name="{local-name()}">
     <xsl:copy-of select="*"/>
     <xsl:apply-templates/>
   <xsl:if test="string-length(.) =
0"><xsl:comment> </xsl:comment></ 
xsl:if>
   </xsl:element>
</xsl:template>


sorry for the noise

Jürgen


null-oder-eins GmbH Zürich
web & graphic design

www.null-oder-eins.ch

ragallerapache.org
Skype: callto://ragaller




------------------------------------------------------------
---------
To unsubscribe, e-mail: dev-unsubscribelenya.apache.org
For additional commands, e-mail: dev-helplenya.apache.org


[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )