Commit 7911eeca authored by Anne Goloubkoff-Duponchel's avatar Anne Goloubkoff-Duponchel
Browse files

amélioration pdf

parent 66dc05e4
Loading
Loading
Loading
Loading
+33 −12
Original line number Diff line number Diff line
@@ -133,13 +133,14 @@
  </xsl:template> -->

  <!-- Un peu de typo -->
  <xsl:template match="ead:emph">
  <xsl:template match="ead:emph | ead:title[@render]">
    <fo:inline>
      <xsl:apply-templates select="./@render"/>
      <xsl:apply-templates/>
    </fo:inline>
  </xsl:template>


  <!-- Les composants -->
  <xsl:template match="ead:dsc/ead:c">
    <fo:block xsl:use-attribute-sets="composants">
@@ -252,21 +253,37 @@
    </fo:block>
  </xsl:template>

  <xsl:template match="ead:accessrestrict | ead:accruals | ead:acqinfo | ead:altformavail | ead:appraisal | ead:arrangement | ead:bibliography | ead:bioghist | ead:controlaccess | ead:custodhist | ead:odd | ead:originalsloc | ead:otherfindaid | ead:phystech | ead:prefercite | ead:processinfo | ead:relatedmaterial | ead:scopecontent | ead:separatedmaterial | ead:userestrict | ead:c/ead:dao  | ead:c/ead:daogroup">
  <xsl:template match="ead:physfacet/ead:genreform">
    <xsl:apply-templates/>
    <xsl:if test="position() != last()">
      <xsl:text> ; </xsl:text>
    </xsl:if>
  </xsl:template>

  <xsl:template match="ead:accessrestrict | ead:accruals | ead:acqinfo | ead:altformavail | ead:appraisal | ead:arrangement | ead:bibliography | ead:bioghist | ead:controlaccess | ead:custodhist | ead:odd | ead:originalsloc | ead:otherfindaid | ead:phystech | ead:prefercite | ead:processinfo | ead:relatedmaterial | ead:scopecontent | ead:separatedmaterial | ead:userestrict | ead:c/ead:daogroup">
    <fo:block xsl:use-attribute-sets="div">
      <xsl:choose>
        <xsl:when test="ead:head">
          <xsl:apply-templates select="ead:head" mode="titre"/>
          <xsl:apply-templates />
        </xsl:when>
        <xsl:otherwise>
          <xsl:choose>
            <xsl:when test="@type">
              <fo:block xsl:use-attribute-sets="head">
              <xsl:choose>
                <xsl:when test="not(parent::ead:odd)">
                  <fo:block xsl:use-attribute-sets="head1">
                    <xsl:value-of select="@type"/>
                  </fo:block>
                </xsl:when>
                <xsl:otherwise>
              <fo:block xsl:use-attribute-sets="head">
                  <fo:block xsl:use-attribute-sets="head2">
                    <xsl:value-of select="@type"/>
                  </fo:block>
                </xsl:otherwise>
              </xsl:choose>
            </xsl:when>
            <xsl:otherwise>
              <fo:block xsl:use-attribute-sets="head2">
                <xsl:choose>
                  <xsl:when test="self::ead:accessrestrict">
                    <xsl:text>Conditions d’accès</xsl:text>
@@ -364,7 +381,7 @@
  <xsl:template match="ead:item">
    <fo:list-item xsl:use-attribute-sets="item">
      <fo:list-item-label xsl:use-attribute-sets="item-puce">
        <fo:block></fo:block>
        <fo:block></fo:block>
      </fo:list-item-label>
      <fo:list-item-body xsl:use-attribute-sets="item-corps">
        <fo:block xsl:use-attribute-sets="item-texte">
@@ -374,13 +391,8 @@
    </fo:list-item>
  </xsl:template>

  <xsl:template match="ead:head" mode="titre">
    <fo:block xsl:use-attribute-sets="head">
      <xsl:apply-templates/>
    </fo:block>
  </xsl:template>

  <xsl:template match="ead:head"></xsl:template>
  <xsl:template match="ead:head">##<xsl:apply-templates/>%%</xsl:template>

  <xsl:template match="ead:list/ead:head" mode="titre_liste">
    <xsl:apply-templates select="node()"/>
@@ -393,7 +405,9 @@
    <fo:inline>
      <xsl:apply-templates/>
    </fo:inline>
    <xsl:if test="position() != last()">
      <xsl:text> ; </xsl:text>
    </xsl:if>
  </xsl:template>

  <!-- Les liens -->
@@ -410,5 +424,12 @@
    <!-- </fo:basic-link> -->
  </xsl:template>

  <!-- Les images -->

  <xsl:template match="ead:dao">
      [Image] <external-graphic src="{@*:href}" width="50%"/> 
    <xsl:apply-templates/>
  </xsl:template>

</xsl:stylesheet>
+52 −30
Original line number Diff line number Diff line
@@ -19,7 +19,7 @@
      </xsl:when>
      <xsl:when test=".='super'">
        <xsl:attribute name="font-size">7pt</xsl:attribute>
        <xsl:attribute name="baseline-shift">5pt</xsl:attribute>
        <xsl:attribute name="baseline-shift">3pt</xsl:attribute>
      </xsl:when>
      <xsl:when test=".='bold'">
        <xsl:attribute name="font-weight">bold</xsl:attribute>
@@ -28,7 +28,8 @@
  </xsl:template>
  <!-- Les liens -->
  <xsl:attribute-set name="liens">
    <xsl:attribute name="color">blue</xsl:attribute>
    <xsl:attribute name="color">grey</xsl:attribute>
    <xsl:attribute name="text-decoration">underline</xsl:attribute>
  </xsl:attribute-set>

  <!-- styles des composants -->
@@ -43,22 +44,25 @@
  </xsl:attribute-set>

  <xsl:attribute-set name="table">
    <xsl:attribute name="margin-left">5px</xsl:attribute>
    <xsl:attribute name="margin-right">5px</xsl:attribute>
    <xsl:attribute name="background-color">#EEEEEE</xsl:attribute>
  </xsl:attribute-set>
  <xsl:attribute-set name="cell">
    <xsl:attribute name="font-size">9px</xsl:attribute>
    <xsl:attribute name="font-size">9pt</xsl:attribute>
    <xsl:attribute name="text-align">left</xsl:attribute>
    <xsl:attribute name="padding">3px</xsl:attribute>
    <xsl:attribute name="border">solid 1px #fff</xsl:attribute>
    <xsl:attribute name="padding">3pt</xsl:attribute>
    <xsl:attribute name="border">solid 1pt #fff</xsl:attribute>
  </xsl:attribute-set>
  <xsl:attribute-set name="label">
    <xsl:attribute name="font-family">sans-serif</xsl:attribute>
    <xsl:attribute name="margin-top">3pt</xsl:attribute>
    <xsl:attribute name="font-family">serif</xsl:attribute>
    <xsl:attribute name="line-height">1.3</xsl:attribute>

  </xsl:attribute-set>

  <xsl:attribute-set name="content">
    <xsl:attribute name="margin-top">3pt</xsl:attribute>
    <xsl:attribute name="font-family">serif</xsl:attribute>
    <xsl:attribute name="line-height">1.3</xsl:attribute>
  </xsl:attribute-set>

  <xsl:attribute-set name="tableBorder">
@@ -68,13 +72,13 @@
  <xsl:attribute-set name="div">
    <xsl:attribute name="font-size">10pt</xsl:attribute>
    <xsl:attribute name="text-align">justify</xsl:attribute>
    <xsl:attribute name="margin-top">5px</xsl:attribute>
    <xsl:attribute name="margin-bottom">5px</xsl:attribute>
    <xsl:attribute name="margin-left">10px</xsl:attribute>
    <xsl:attribute name="margin-top">5pt</xsl:attribute>
    <xsl:attribute name="margin-bottom">5pt</xsl:attribute>
    <!-- <xsl:attribute name="border">solid 1pt red</xsl:attribute> -->
  </xsl:attribute-set>

  <xsl:attribute-set name="para">
    <xsl:attribute name="font-size">10pt</xsl:attribute>
    <xsl:attribute name="font-size">9pt</xsl:attribute>
    <xsl:attribute name="font-family">serif</xsl:attribute>
    <xsl:attribute name="line-height">14pt</xsl:attribute>
    <xsl:attribute name="line-height-shift-adjustment">disregard-shifts</xsl:attribute>
@@ -84,46 +88,66 @@
    <xsl:attribute name="hyphenation-push-character-count">3</xsl:attribute>
  </xsl:attribute-set>

   <xsl:attribute-set name="head">
   <xsl:attribute name="font-family">sans-serif</xsl:attribute>
    <xsl:attribute name="padding">2pt</xsl:attribute>
    <xsl:attribute name="margin-left">5pt</xsl:attribute>
  <xsl:attribute-set name="head1">
    <xsl:attribute name="font-family">serif</xsl:attribute>
    <xsl:attribute name="padding-top">10pt</xsl:attribute>
    <xsl:attribute name="padding-bottom">5pt</xsl:attribute>
    <xsl:attribute name="font-size">12pt</xsl:attribute>
    <xsl:attribute name="text-align">left</xsl:attribute>
    <xsl:attribute name="color">#0056b3</xsl:attribute>
  </xsl:attribute-set>
  <!-- <xsl:attribute-set name="head">
    <xsl:attribute name="font-family">serif</xsl:attribute>
    <xsl:attribute name="padding-top">8pt</xsl:attribute>
    <xsl:attribute name="padding-bottom">10pt</xsl:attribute>
    <xsl:attribute name="font-size">10pt</xsl:attribute>
    <xsl:attribute name="text-align">left</xsl:attribute>
    <xsl:attribute name="color">red</xsl:attribute>
  </xsl:attribute-set> -->
  <xsl:attribute-set name="head2">
    <xsl:attribute name="font-family">serif</xsl:attribute>
    <xsl:attribute name="padding-top">4pt</xsl:attribute>
    <xsl:attribute name="padding-bottom">3pt</xsl:attribute>
    <xsl:attribute name="font-size">10pt</xsl:attribute>
    <xsl:attribute name="text-align">left</xsl:attribute>
    <xsl:attribute name="color">#0056b3</xsl:attribute>
  </xsl:attribute-set>
  <xsl:attribute-set name="head-list">
   <xsl:attribute name="font-family">sans-serif</xsl:attribute>
    <xsl:attribute name="padding">2pt</xsl:attribute>
    <xsl:attribute name="margin-left">5pt</xsl:attribute>
    <xsl:attribute name="font-family">serif</xsl:attribute>
    <xsl:attribute name="margin-top">5pt</xsl:attribute>
    <xsl:attribute name="margin-left">10pt</xsl:attribute>
    <xsl:attribute name="font-size">10pt</xsl:attribute>
    <xsl:attribute name="text-align">left</xsl:attribute>
    <xsl:attribute name="font-size">9pt</xsl:attribute>
  </xsl:attribute-set>

  <xsl:attribute-set name="item">
    <xsl:attribute name="space-before.optimum">8pt</xsl:attribute>
    <!-- <xsl:attribute name="margin-left">5pt</xsl:attribute>
    <xsl:attribute name="text-align">left</xsl:attribute> -->
    <xsl:attribute name="space-before.optimum">5pt</xsl:attribute>
    <xsl:attribute name="margin-left">10pt</xsl:attribute>
    <!-- <xsl:attribute name="border">1pt solid black</xsl:attribute> -->
  </xsl:attribute-set>

  <xsl:attribute-set name="item-puce">
    <xsl:attribute name="end-indent">label-end()</xsl:attribute>
    <!-- <xsl:attribute name="margin-left">5pt</xsl:attribute>
    <xsl:attribute name="text-align">left</xsl:attribute> -->
    <xsl:attribute name="margin-left">15pt</xsl:attribute>
    <!-- <xsl:attribute name="border">1pt solid blue</xsl:attribute> -->
  </xsl:attribute-set>
  <xsl:attribute-set name="item-corps">
    <xsl:attribute name="start-indent">body-start()</xsl:attribute>
    <!-- <xsl:attribute name="margin-left">5pt</xsl:attribute>
    <xsl:attribute name="text-align">left</xsl:attribute> -->
    <xsl:attribute name="font-size">9pt</xsl:attribute>
    <!-- <xsl:attribute name="border">1pt solid red</xsl:attribute> -->

  </xsl:attribute-set>
  <xsl:attribute-set name="item-texte">
    <xsl:attribute name="text-align">justify</xsl:attribute>
    <xsl:attribute name="font-family">serif</xsl:attribute>
    <!-- <xsl:attribute name="margin-left">5pt</xsl:attribute>
    <xsl:attribute name="text-align">left</xsl:attribute> -->
    <xsl:attribute name="font-size">9pt</xsl:attribute>
    <!-- <xsl:attribute name="border">1pt solid green</xsl:attribute> -->
  </xsl:attribute-set>

  <xsl:attribute-set name="bibref">
    <xsl:attribute name="font-family">serif</xsl:attribute>
    <xsl:attribute name="font-size">9pt</xsl:attribute>
    <xsl:attribute name="line-height-shift-adjustment">disregard-shifts</xsl:attribute>
    <xsl:attribute name="text-indent">-6mm</xsl:attribute>
    <xsl:attribute name="margin-left">6mm</xsl:attribute>
@@ -137,8 +161,6 @@
    <xsl:attribute name="font-family">serif</xsl:attribute>
  </xsl:attribute-set>

 

  <xsl:attribute-set name="citation">
    <xsl:attribute name="font-size">10pt</xsl:attribute>
    <xsl:attribute name="line-height">12pt</xsl:attribute>