forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Juan Jose Pablos <che...@che-che.com>
Subject Re: [PATCH] <abstract> element ignored in document2html.xsl
Date Tue, 29 Jul 2003 22:04:54 GMT
Eirik,

An abstract element can have all these elements:

<!ENTITY % markup "strong|em|code|sub|sup">
<!ENTITY % links "link|connect|jump|fork|anchor">
<!ENTITY % special "br|img|icon">

So I do not think that you should overwrite that, I applied a patch on 
the CVS. Could you verify that works for you?

Cheers,
Cheche
	

Eirik Bjørsnøs wrote:
> Hi all,
> 
> document2html.xsl seems to ignore the <abstract> element, which is a part
> of the document DTD (Used inside <header>)
> 
> The attached patch wraps the content of the abstract inside a <p> and <em>
> element, just before the TOC.
> 
> I don't know if this is the preferred way of doing it. I just tried to
> make it look similar to  the PDF, where the abstract is in italics.
> 
> But it should be better than just ignoring it, anyway..
> 
> Eirik.
> 
> 
> ------------------------------------------------------------------------
> 
> Index: src/resources/skins/common/xslt/html/document2html.xsl
> ===================================================================
> RCS file: /home/cvspublic/xml-forrest/src/resources/skins/common/xslt/html/document2html.xsl,v
> retrieving revision 1.19
> diff -u -r1.19 document2html.xsl
> --- src/resources/skins/common/xslt/html/document2html.xsl	19 Jun 2003 10:51:49 -0000
1.19
> +++ src/resources/skins/common/xslt/html/document2html.xsl	29 Jul 2003 14:09:19 -0000
> @@ -85,6 +85,13 @@
>            </font>
>          </p>
>        </xsl:if>
> +      <xsl:if test="header/abstract">
> +        <p>
> +          <i>
> +            <xsl:apply-templates select="header/abstract"/>
> +          </i>
> +        </p>
> +      </xsl:if>
>        <xsl:apply-templates select="body"/>
>      </div>
>    </xsl:template>



Mime
View raw message