RE: [docbook-apps] External entities to graphics lost during profiling

2008-02-06 Thread Mauritz Jeanson
> -Original Message-
> From: Bob Stayton 
> It  seems the profiling stylesheets do resolve @entityref 
> entity references during that stage of processing, since the 
> entity declarations can't be copied by the XSLT profiling 
> process (XSLT does not have access to the internal subset 
> declarations).  This step is taken in
> profiling/profile-mode.xsl:
> 
>   
>   
> 
>   
> 
>   
> 
> The $profile.baseuri.fixup parameter is set to true() by 
> default, so this should be working for you. 


Yes, this should work for single-pass profiling. But GUI Access used
profiling/profile.xsl, and in that case profile.baseuri.fixup=false(). So
this has to be changed to true() in a customization layer or on the command
line. 

In any case, the suggestion that I sent earlier today can be ignored.

/MJ



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [docbook-apps] External entities to graphics lost during profiling

2008-02-06 Thread Bob Stayton

Hi,
It  seems the profiling stylesheets do resolve @entityref entity references 
during that stage of processing, since the entity declarations can't be 
copied by the XSLT profiling process (XSLT does not have access to the 
internal subset declarations).  This step is taken in 
profiling/profile-mode.xsl:


 

 
   
 
   
 

The $profile.baseuri.fixup parameter is set to true() by default, so this 
should be working for you.  You might try doing the two-step profiling to 
examine the intermediate results to see what kind of fileref values you are 
getting.


Bob Stayton
Sagehill Enterprises
[EMAIL PROTECTED]


- Original Message - 
From: "GUI Access" <[EMAIL PROTECTED]>

To: 
Sent: Tuesday, February 05, 2008 11:28 PM
Subject: [docbook-apps] External entities to graphics lost during profiling



I am using Saxon 6-5-5, DocBook XSL 1.73.2, and DocBook XML 4.5.

External entities to graphics disappear when I profile a document.

I declared an entity in a test document as follows:

 
http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd"; [

]>

I then inserted a mediaobject that referenced the entity:

 





The file test.gif is in the same directory as this document.

If I profile this document with profiling/profile.xsl and since the 
mediaobject element is not to be profiled out, it is copied verbatim to 
the profiled document.  However, the external entity to test.gif is lost, 
thus not making it possible to be passed onto HTML.


I am using XML catalogs to resolve the DTD location.

How can I fix this?

Thanks.

GUI Access


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [docbook-apps] External entities to graphics lost during profiling

2008-02-06 Thread Mauritz Jeanson
> -Original Message-
> From: GUI Access 
> 
> If I profile this document with profiling/profile.xsl and 
> since the mediaobject element is not to be profiled out, it 
> is copied verbatim to the profiled document.  However, the 
> external entity to test.gif is lost, thus not making it 
> possible to be passed onto HTML.


Here is a solution:
http://www.oasis-open.org/archives/docbook-apps/200509/msg00024.html

/MJ



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]