[xep-support] Invalid system ID

From: <frederic.ouellet@desjardins.com>
Date: Thu Dec 02 2004 - 06:54:50 PST

Another try...

Hello support members!

Since the migration from v3 to v4, I have a couple of reconfiguration to do.

I have this error at the xsl validation when the generator render the PDF.

Here it is:
(document
  (validate [validation OK])
  (compile
    [warning] Null system ID: relative URLs may behave badly
    (masters
      (sequence-master [master-name layoutLettre]))
    (sequence [master-reference layoutLettre]
      (flow [flow-name xsl-region-body])))
  (format
    (sequence [master-reference layoutLettre]
      (flow [1])
      (static-content [1])))
  (generate [output-format pdf][1]))

I have search for system ID in all the reference document... but I have seen nothing about it.

I work around the property BASE that I use to xsl:include a file. I have remove the BASE property because it is not valid anymore. But I kept the URIResolver that work
in v3. The included file is in a EAR so, I use the URIResolver to check on wich server, on wich weblogic instance to create the completed path.

So when I want to generate this:

<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
      <xsl:include href="pres/general/ergoDesjardins.xsl"/>
      <xsl:template match="ERREUR_PDF">
            <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
                  <fo:layout-master-set>
                        <!-- On laisse un jeu tout le tour du document afin que le contenu ne soit jamais trop collé sur le bord de la page -->
                        <fo:simple-page-master master-name="layoutLettre" page-width="21.6cm" page-height="27.9cm" margin-top="0.7cm" margin-left="0.7cm"
margin-right="0.7cm" margin-bottom="0.7cm">
                              <fo:region-body margin-top="2.0cm" margin-bottom="1.0cm"/>
                              <!-- Le pied de page commencera ŕ 0,7cm de la fin de la page. -->
                              <fo:region-before extent="2.0cm"/>
                              <!-- Le contenu de la page se terminera 0.3cm avant le pied de page. -->
                              <fo:region-after extent="0.7cm"/>
                        </fo:simple-page-master>
                  </fo:layout-master-set>
                  <fo:page-sequence master-reference="layoutLettre">
                        <fo:flow flow-name="xsl-region-body" xsl:use-attribute-sets="atxtZoneContenu">
                              <fo:block>
                                    <fo:table xsl:use-attribute-sets="table-dimension">
                                          <fo:table-column column-width="proportional-column-width(10)"/>
                                          <fo:table-column column-width="proportional-column-width(80)"/>
                                          <fo:table-column column-width="proportional-column-width(10)"/>
                                          <fo:table-body>
                                                <fo:table-row>
                                                      <fo:table-cell/>
                                                      <fo:table-cell xsl:use-attribute-sets="tblErreurTitre">
                                                            <fo:block>
                                                                  An error occurred on the central server
                                                            </fo:block>
                                                      </fo:table-cell>
                                                      <fo:table-cell/>
                                                </fo:table-row>
                                                <fo:table-row>
                                                      <fo:table-cell/>
                                                      <fo:table-cell xsl:use-attribute-sets="tblErreur">
                                                            <fo:block>&#160;</fo:block>
                                                          <fo:block width="10%">
                                                            <xsl:attribute name="font-weight">bold</xsl:attribute>
                                                                        Description:
                                                            </fo:block>
                                                            <fo:block>
                                                                  <xsl:value-of select="MESSAGE_ERREUR"></xsl:value-of>
                                                            </fo:block>
                                                      </fo:table-cell>
                                                      <fo:table-cell/>
                                                </fo:table-row>
                                                <fo:table-row>
                                                      <fo:table-cell/>
                                                      <fo:table-cell xsl:use-attribute-sets="tblErreur">
                                                            <fo:block>&#160;</fo:block>
                                                            <fo:block width="10%">
                                                                  <xsl:attribute name="font-weight">bold</xsl:attribute>
                                                                        Reference ID(support centre) :
                                                            </fo:block>
                                                            <fo:block>
                                                                  <xsl:value-of select="ID_MESSAGE_ERREUR"></xsl:value-of>
                                                            </fo:block>
                                                            <fo:block>&#160;</fo:block>
                                                      </fo:table-cell>
                                                      <fo:table-cell/>
                                                </fo:table-row>
                                          </fo:table-body>
                                    </fo:table>
                              </fo:block>
                        </fo:flow>
                  </fo:page-sequence>
            </fo:root>
      </xsl:template>
</xsl:stylesheet>

I have the system ID null...
The PDF have been generated but my ergoDesjardins.xsl have not been considered:

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format">

      <!-- police-document - devient -> atxtZoneContenu -->
      <xsl:attribute-set name="atxtZoneContenu">
            <xsl:attribute name="font-family">Helvetica</xsl:attribute>
            <xsl:attribute name="font-size">10pt</xsl:attribute>
            <xsl:attribute name="font-style">normal</xsl:attribute>
            <xsl:attribute name="font-weight">normal</xsl:attribute>
            <xsl:attribute name="color">#000000</xsl:attribute>
            <xsl:attribute name="text-align">left</xsl:attribute>
            <xsl:attribute name="vertical-align">middle</xsl:attribute>
            <xsl:attribute name="padding-top">2pt</xsl:attribute>
            <xsl:attribute name="padding-left">2pt</xsl:attribute>
            <xsl:attribute name="padding-right">2pt</xsl:attribute>
            <xsl:attribute name="padding-bottom">2pt</xsl:attribute>
      </xsl:attribute-set>

      <!-- cellule-tableau-entete - devient -> atblTitreSection -->
      <xsl:attribute-set name="tblErreurTitre">
            <xsl:attribute name="font-family">Helvetica</xsl:attribute>
            <xsl:attribute name="font-size">10pt</xsl:attribute>
            <xsl:attribute name="font-style">normal</xsl:attribute>
            <xsl:attribute name="font-weight">bold</xsl:attribute>
            <xsl:attribute name="color">#FFFFFF</xsl:attribute>
            <xsl:attribute name="text-align">left</xsl:attribute>
            <xsl:attribute name="vertical-align">middle</xsl:attribute>
            <xsl:attribute name="background-color">#0052BA</xsl:attribute>
            <xsl:attribute name="padding-top">2pt</xsl:attribute>
            <xsl:attribute name="padding-left">2pt</xsl:attribute>
            <xsl:attribute name="padding-right">2pt</xsl:attribute>
            <xsl:attribute name="padding-bottom">2pt</xsl:attribute>
      </xsl:attribute-set>

      <!-- cellule-tableau-entete - devient -> atblTitreSection -->
      <xsl:attribute-set name="tblErreur">
            <xsl:attribute name="font-family">Helvetica</xsl:attribute>
            <xsl:attribute name="font-size">10pt</xsl:attribute>
            <xsl:attribute name="font-style">normal</xsl:attribute>
            <xsl:attribute name="color">#000000</xsl:attribute>
            <xsl:attribute name="text-align">center</xsl:attribute>
            <xsl:attribute name="vertical-align">middle</xsl:attribute>
            <xsl:attribute name="background-color">#EAEAEA</xsl:attribute>
            <xsl:attribute name="padding-top">2pt</xsl:attribute>
            <xsl:attribute name="padding-left">2pt</xsl:attribute>
            <xsl:attribute name="padding-right">2pt</xsl:attribute>
            <xsl:attribute name="padding-bottom">2pt</xsl:attribute>
      </xsl:attribute-set>

      <!-- XXXXXXXXXXXXXXX -->
      <xsl:attribute-set name="table-dimension">
            <xsl:attribute name="table-layout">fixed</xsl:attribute>
            <xsl:attribute name="border-collapse">collapse</xsl:attribute>
            <xsl:attribute name="width">100%</xsl:attribute>
      </xsl:attribute-set>

</xsl:stylesheet>

-------------------
(*) To unsubscribe, send a message with words 'unsubscribe xep-support'
in the body of the message to majordomo@renderx.com from the address
you are subscribed from.
(*) By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/tos.html

-------------------
(*) To unsubscribe, send a message with words 'unsubscribe xep-support'
in the body of the message to majordomo@renderx.com from the address
you are subscribed from.
(*) By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/tos.html
Received on Thu Dec 2 07:32:51 2004

This archive was generated by hypermail 2.1.8 : Thu Dec 02 2004 - 07:32:52 PST