forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul Kronenwetter (JIRA)" <j...@apache.org>
Subject [jira] Commented: (FOR-704) span-template in html2document.xsl doubles span-content
Date Fri, 19 Jan 2007 22:42:30 GMT

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

Paul Kronenwetter commented on FOR-704:
---------------------------------------

Sjur,

  I don't think that's a completely valid fix.  I'm now getting these, from Forrest-generated
content:
X [0]                                     Board/Minutes/Board_200510.html      BROKEN: The
content of elements must consist of well-formed character data or markup.

This is content generated from a .sxw (OpenOffice) file.  I'm looking at html-to-document.xsl
 to see if I can adjust it to allow processing of H1 tags, but not require them.  I have many
pages that do not have such a tag.

> 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

        

Mime
View raw message