Re: SV: Trying to use saxon:while and saxon:assign tin FOP

2007-03-13 Thread Abel Braaksma

Johan Johansson wrote:

Hi,

Thank you for your reply.

Didt do any difference for me when i added the trailing slash:


You meant "did not", I presume? ;)

The error message you show comes from FOP, not from Saxon. This means 
that the saxon:assign and saxon:while elements have not been interpreted 
as extension elements, which can mean two things:


  1. you did not use Saxon (check your classpath or use 
system-property('xsl:vendor')  )
  2. you still have an error in your namespace, which means in return 
that your ext. elements are interpreted as literal result elements.


Take a look at your intermediate result, i.e., the FO file, after the 
transformation and before the formatting. You will see that the elements 
saxon:assign appear as literal elements in there, which is of course wrong.


I can advice you two things:

  1. Do not use extension elements, and certainly not saxon:assign and 
saxon:while as there is really no use in using them. Use XSLT 2.0 
instead (you use Saxon, so why wouldn't you) and stay away from 
extensions and these in particular (other extensions can be used with 
some care, but I recommend against using assign/while, because they are 
against the basic "no-side-effect" rule of XSLT 2.0). In your stylesheet 
there is no reason whatsoever to use them, so you can easily get rid of 
them.


  2. Get your stylesheet to work with Saxon and to work properly, which 
will remove these LREs from the result tree.



All in all, there's nothing wrong with FOP here, there's just some error 
in the transformation part.


Cheers,
-- Abel Braaksma

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



SV: Trying to use saxon:while and saxon:assign tin FOP

2007-03-13 Thread Johan Johansson
Hi,

Thank you for your reply.

Didt do any difference for me when i added the trailing slash:

Mar 13, 2007 2:56:39 PM org.apache.fop.fo.ElementMappingRegistry findFOMaker
WARNING: Unknown formatting object http://saxon.sf.net/^while
Mar 13, 2007 2:56:39 PM org.apache.fop.fo.ElementMappingRegistry findFOMaker
WARNING: Unknown formatting object http://saxon.sf.net/^assign
Mar 13, 2007 2:56:39 PM org.apache.fop.layoutmgr.LayoutManagerMapping 
makeLayoutManagers
SEVERE: No LayoutManager maker for class class org.apache.fop.fo.UnknownXMLObj

best regards Johan

-Ursprungligt meddelande-
Från: Abel Braaksma [mailto:[EMAIL PROTECTED]
Skickat: den 13 mars 2007 14:33
Till: fop-users@xmlgraphics.apache.org
Ämne: Re: Trying to use saxon:while and saxon:assign tin FOP


Johan Johansson wrote:
> Hi!
>
> Trying to use saxon:assign and while in fop, but i recive this:
> (dont know if saxon extension works within the fop?)
>
> 
>
>  xmlns:saxon="http://saxon.sf.net";

Your namespace is incorrect, perhaps that has something to with it? 
Replace it with:

http://saxon.sf.net/

(I've had troubles before when not including the trailing slash. A 
namespace is not a path, remember, but a URI, and must be precisely and 
correctly set to the letter, which in this case does include the 
trailing slash)

-- Abel Braaksma

-
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: Trying to use saxon:while and saxon:assign tin FOP

2007-03-13 Thread Abel Braaksma

Johan Johansson wrote:

Hi!

Trying to use saxon:assign and while in fop, but i recive this:
(dont know if saxon extension works within the fop?)



 xmlns:saxon="http://saxon.sf.net";


Your namespace is incorrect, perhaps that has something to with it? 
Replace it with:


http://saxon.sf.net/

(I've had troubles before when not including the trailing slash. A 
namespace is not a path, remember, but a URI, and must be precisely and 
correctly set to the letter, which in this case does include the 
trailing slash)


-- Abel Braaksma

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



Trying to use saxon:while and saxon:assign tin FOP

2007-03-13 Thread Johan Johansson
Hi!

Trying to use saxon:assign and while in fop, but i recive this:
(dont know if saxon extension works within the fop?)

Mar 13, 2007 1:07:33 PM org.apache.fop.fo.ElementMappingRegistry findFOMaker
WARNING: Unknown formatting object http://saxon.sf.net^assign
Mar 13, 2007 1:07:33 PM org.apache.fop.fo.ElementMappingRegistry findFOMaker
WARNING: Unknown formatting object http://saxon.sf.net^while

SEVERE: No LayoutManager maker for class class org.apache.fop.fo.UnknownXMLObj
Mar 13, 2007 1:07:34 PM org.apache.fop.layoutmgr.LayoutManagerMapping 
makeLayoutManagers
SEVERE: No LayoutManager maker for class class org.apache.fop.fo.UnknownXMLObj
Mar 13, 2007 1:07:34 PM org.apache.fop.layoutmgr.LayoutManagerMapping 
makeLayoutManagers
SEVERE: No LayoutManager maker for class class org.apache.fop.fo.UnknownXMLObj
Mar 13, 2007 1:07:34 PM org.apache.fop.layoutmgr.LayoutManagerMapping 
makeLayoutManagers
SEVERE: No LayoutManager maker for class class org.apache.fop.fo.UnknownXMLObj
Mar 13, 2007 1:07:34 PM org.apache.fop.layoutmgr.LayoutManagerMapping 
makeLayoutManagers
SEVERE: No LayoutManager maker for class class org.apache.fop.fo.UnknownXMLObj
Mar 13, 2007 1:07:34 PM org.apache.fop.layoutmgr.LayoutManagerMapping 
makeLayoutManagers
SEVERE: No LayoutManager maker for class class org.apache.fop.fo.UnknownXMLObj
Mar 13, 2007 1:07:34 PM org.apache.fop.layoutmgr.LayoutManagerMapping 
makeLayoutManagers
SEVERE: No LayoutManager maker for class class org.apache.fop.fo.UnknownXMLObj
Mar 13, 2007 1:07:34 PM org.apache.fop.layoutmgr.LayoutManagerMapping 
makeLayoutManagers


the code:

http://www.w3.org/1999/XSL/Transform";
 xmlns:fo="http://www.w3.org/1999/XSL/Format";
 xmlns:saxon="http://saxon.sf.net";
 xmlns:redirect="http://xml.apache.org/xalan/redirect";
 extension-element-prefixes="redirect"
 version="1.0">



 
 
   px
   px
   px
   
   px
   px
   

 normal


  
  
   absolute
   absolute
   
   
   
   
   


black

 


   
  
 




  
The value of i is 

  


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