Changeset 1f1699f


Ignore:
Timestamp:
05/11/10 09:29:40 (3 years ago)
Author:
Aurélien Bompard <aurelien@…>
Branches:
master
Children:
ef52efc
Parents:
b620e6f
git-author:
Aurélien Bompard <aurelien@…> (05/11/10 09:29:40)
git-committer:
Aurélien Bompard <aurelien@…> (05/11/10 09:29:40)
Message:

Improve support for the HTML5 <aside> element

Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • xsl/document-content/html5.xsl

    rb620e6f r1f1699f  
    6969 
    7070<xsl:template match="h:aside"> 
    71     <!-- TODO: make a floating frame --> 
    72     <xsl:apply-templates/> 
     71    <text:p text:style-name="Text_20_body"> 
     72        <draw:frame draw:style-name="Marginalia" 
     73                    text:anchor-type="paragraph" 
     74                    svg:width="8.5cm" style:rel-width="50%"> 
     75            <draw:text-box fo:min-height="0.5cm"> 
     76                <xsl:apply-templates/> 
     77            </draw:text-box> 
     78        </draw:frame> 
     79    </text:p> 
    7380</xsl:template> 
    7481 
  • xsl/styles/main-styles.xsl

    rd81cc88 r1f1699f  
    361361    </xsl:if> 
    362362 
     363    <xsl:if test="count(//office:styles/style:style[@style:name = 'Marginalia']) = 0"> 
     364        <style:style style:name="Marginalia" style:display-name="Marginalia" 
     365                     style:family="graphic"> 
     366            <style:graphic-properties svg:width="8.5cm" style:rel-width="50%" 
     367                                      fo:min-height="0.5cm" 
     368                                      text:anchor-type="paragraph" 
     369                                      svg:x="0cm" svg:y="0cm" 
     370                                      fo:margin-left="0.2cm" 
     371                                      fo:margin-right="0cm" 
     372                                      fo:margin-top="0.1cm" 
     373                                      fo:margin-bottom="0.1cm" 
     374                                      style:wrap="parallel" 
     375                                      style:number-wrapped-paragraphs="no-limit" 
     376                                      style:wrap-contour="false" 
     377                                      style:vertical-pos="top" 
     378                                      style:vertical-rel="paragraph" 
     379                                      style:horizontal-pos="right" 
     380                                      style:horizontal-rel="paragraph" 
     381                                      fo:background-color="transparent" 
     382                                      style:background-transparency="100%" 
     383                                      fo:padding="0.15cm" 
     384                                      fo:border="0.002cm solid #000000" 
     385                                      style:shadow="none"> 
     386            </style:graphic-properties> 
     387        </style:style> 
     388    </xsl:if> 
     389 
    363390</xsl:template> 
    364391 
Note: See TracChangeset for help on using the changeset viewer.