[xep-support] URL based font files in xep.xml

From: Christian Kriebel <christian.kriebel@assentis.com>
Date: Tue Jun 20 2006 - 06:55:22 PDT

Hello

I'm using xep in a way that it retrives the xep.xml from an url using the
systemproperty com.renderx.xep.CONFIG.
For example: http://localhost:11002/DBLayer/getResource?path=Repository
1/NPMS/GlobalResources/xep/xep.xml

Within the xep.xml I've configured the following fonts section:

<fonts xmlns="http://www.renderx.com/XEP/config"
 
xml:base="http://localhost:11002/DBLayer/getResource?path=Repository%201/NPM
S/GlobalResources/xep/afm/"
         default-family="Helvetica">
    
    <font-group label="Base 14" embed="false">

      <font-family name="Helvetica">
        <font><font-data afm="Helvetica.afm"/></font>
        <font style="oblique"><font-data
afm="Helvetica-Oblique.afm"/></font>
        <font weight="bold"><font-data afm="Helvetica-Bold.afm"/></font>
        <font weight="bold" style="oblique"><font-data
afm="Helvetica-BoldOblique.afm"/></font>
      </font-family>

Then I get the following error:
[error] Cannot read font metric from
http://localhost:11002/DBLayer/Helvetica.afm
[error] java.io.IOException: HTTP response status is 404

When I configure the afm attribute also containing the whole url, then it
works.
<font-family name="Helvetica">
        <font>
                <font-data
        
afm="http://localhost:11002/DBLayer/getResource?path=Repository%201/NPMS/Glo
balResources/xep/afm/Helvetica.afm"/>
        </font>
       

Is that behaviour as expected ?
It seems, that the xml:base attribute is not considered when using xep.xml
from an url ?
I'm using XEP45_20060419.

Thanks in advance
Christian Kriebel

~~~~~~~~~~~~~~~~~~~~~
Dr. Christian Kriebel - CTO
Assentis Technologies AG
Lettenstr. 7, 6343 Rotkreuz, Switzerland

mailto:christian.kriebel@assentis.com
Mobile: +41-79-233 19 74
Phone : +41-41-790 91 92
~~~~~~~~~~~~~~~~~~~~~

-------------------
(*) 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/terms-of-service.html
Received on Tue Jun 20 07:27:31 2006

This archive was generated by hypermail 2.1.8 : Tue Jun 20 2006 - 07:27:32 PDT