You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@forrest.apache.org by "Sjur N. Moshagen (JIRA)" <ji...@apache.org> on 2007/01/05 13:05:27 UTC

[jira] Commented: (FOR-704) span-template in html2document.xsl doubles span-content

    [ https://issues.apache.org/jira/browse/FOR-704?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12462470 ] 

Sjur N. Moshagen commented on FOR-704:
--------------------------------------

I can confirm the issue on a simple page I was playing with:

<body>
<h1>Below this title should be a row of iframes!</h1>
<span style="white-space: nowrap; ">
Some content
</span>
</body>

The content of the span element was duplicated. Removing the last apply-templates, as described in the previous comment, solves the problem.

In forrest-0.8-dev the file is named html-to-document.xsl

> span-template in html2document.xsl doubles span-content
> -------------------------------------------------------
>
>                 Key: FOR-704
>                 URL: https://issues.apache.org/jira/browse/FOR-704
>             Project: Forrest
>          Issue Type: Bug
>          Components: Skins (general issues)
>    Affects Versions: 0.7
>            Reporter: Vronk Daut
>             Fix For: 0.8-dev
>
>
> template for span-element traverses to children elements via xsl:apply-templates TWICE!
> once in xsl:choose, than outside
> thus producing doubling the content of span.
> ::
>     <xsl:template match="span">
> 		  <xsl:choose>
> <!-- ... -->
> 	  	    <xsl:otherwise>
> 	  	        <!-- Strip -->
> 	            <xsl:apply-templates/>
> 		    </xsl:otherwise>
> 	    </xsl:choose>
>     
>            <xsl:apply-templates select="./*"/> 
>     </xsl:template>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira