Re: stykesheet attribute version

2002-06-12 Thread Jochen . Maes

the problem is solved, i dunno what changed or what happen, i just rebuild
all my jars and now it works same xml, same xsl etc...

weird shite :D


thx all for helping

Jochen Maes
ICT Development


KBC Securities (kbcsecurities.com)
Havenlaan 12 Avenue du Port SIF 8683
B-1080 Brussels
Belgium

 Tel:  +32 2 429 96 81  

 GSM:  +32 496 57 90 99 

 E-mail :  [EMAIL PROTECTED] 





This message and any attachments hereto are for the named person's use
only. It may contain confidential, proprietary or legally privileged
information. You may not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the
intended recipient. If you have received this e-mail message without being
the intended recipient, please notify KBC Securities promptly and delete
this e-mail. Any views expressed in this message are those of the
individual sender, except where the message states otherwise and the sender
is authorised to state them to be the views of KBC Securities. KBC
Securities reserves the right to monitor all e-mail communications through
its networks and any messages addressed to, received or sent by KBC
Securities or its employees are deemed to be professional in nature. The
sender or recipient of any messages to or of KBC Securities agrees that
those may be read by other employees of KBC Securities than the stated
recipient or sender in order to ensure the continuity of work-related
activities and allow supervision thereof. KBC Securities does not accept
liability for the correct and complete transmission of the information, nor
for any delay or interruption of the transmission, nor for damages arising
from the use of, or reliance on, the information.



Re: stykesheet attribute version

2002-06-11 Thread Jochen . Maes

Do you mean that there is no way around it?
weird, i can run it from my workstation (same os etc only diff processor
and less memory)
can't be...

if someone knows how to resolve it i would really appreciate it...

Jochen Maes
ICT Development


KBC Securities (kbcsecurities.com)
Havenlaan 12 Avenue du Port SIF 8683
B-1080 Brussels
Belgium

 Tel:  +32 2 429 96 81  

 GSM:  +32 496 57 90 99 

 E-mail :  [EMAIL PROTECTED] 





This message and any attachments hereto are for the named person's use
only. It may contain confidential, proprietary or legally privileged
information. You may not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the
intended recipient. If you have received this e-mail message without being
the intended recipient, please notify KBC Securities promptly and delete
this e-mail. Any views expressed in this message are those of the
individual sender, except where the message states otherwise and the sender
is authorised to state them to be the views of KBC Securities. KBC
Securities reserves the right to monitor all e-mail communications through
its networks and any messages addressed to, received or sent by KBC
Securities or its employees are deemed to be professional in nature. The
sender or recipient of any messages to or of KBC Securities agrees that
those may be read by other employees of KBC Securities than the stated
recipient or sender in order to ensure the continuity of work-related
activities and allow supervision thereof. KBC Securities does not accept
liability for the correct and complete transmission of the information, nor
for any delay or interruption of the transmission, nor for damages arising
from the use of, or reliance on, the information.




Peter Jacobs

[EMAIL PROTECTED]To: [EMAIL PROTECTED] 
  
magie.comcc:   

  Subject: Re: stykesheet 
attribute version 
11/06/2002 11:28

Please respond to   

fop-user









[EMAIL PROTECTED] wrote:

 anyway, i get the error:
 java.xml.transform.TransformerConfigurationException: stylesheet requires
 attribute: version...

 of course it is there, but still i get the error, i maved the version tag
 in the attributes before and after each of the other attributes... but
 still same error...

looks like:
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6813
sorry, is not really helpfull...


Peter Jacobs
Freelance multimedia programmeur
De Budetstraat 8
B-3201 Aarschot
[EMAIL PROTECTED]
016/573257







Re: stykesheet attribute version

2002-06-11 Thread Oleg Tkachenko
[EMAIL PROTECTED] wrote:
Do you mean that there is no way around it?
weird, i can run it from my workstation (same os etc only diff processor
and less memory)
can't be...
if someone knows how to resolve it i would really appreciate it...
The exception means that xslt processor couldn't see version attribute in the 
xsl stylesheet.
Make sure your xsl is ok and you are not trying to provide xml file instead of 
xsl stylesheet. If this doesn't help, show us what are you doing and how.

--
Oleg Tkachenko
Multiconn International Ltd, Israel


Re: stykesheet attribute version

2002-06-11 Thread Oleg Tkachenko
[EMAIL PROTECTED] wrote:
java -cp
kbcs_fop.jar;batik.jar;avalonframework.jar;fop.jar;xalan.jar;iText.jar;logkit1b4.jar;jaxp.jar;xerces.jar;.
com.kbcsecurities.test.Startup
You didn't show us how you build initprops Map, please.

public void process(Map props) throws ProcessException {
DOMResult res = null;
TransformerFactory transFactory;
Transformer transForm;
String language;
// XML Parsen en de preparatie van het document zodat de renderer
// de juiste gegevens heeft.
try{
language = (String)props.get(languageKey);
transFactory = TransformerFactory.newInstance();
At this point you can check whether 
(Node)TransformDocs.get(((String)props.get(languageKey)) + _XSL) returns you 
valid stylesheet DOM document, e.g. try to serialize it and inspect.

--
Oleg Tkachenko
Multiconn International Ltd, Israel


RE: stykesheet attribute version

2002-06-11 Thread Torsten Erler
I think you should try this:

?xml version=1.0?
xsl:stylesheet xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
xmlns:fo=http://www.w3.org/1999/XSL/Format; version=1.0
!-- optional --
xsl:output method=xml indent=yes encoding=ISO-8859-1/

note at the version attribute inside the xsl:stylesheet tag

cu Torsten

ps:

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]
 Sent: Dienstag, 11. Juni 2002 14:50
 To: [EMAIL PROTECTED]
 Subject: Re: stykesheet attribute version



 i showed the code in the first mail , and i do implement the
 version in the
 tag...
 look below...

 ?xml version=1.0? !-- this one i removed once and reset
 back cause it
 didn't change the bugga--
 xsl:stylesheet version=1.0 xmlns:xsl=
 http://www.w3.org/1999/XSL/Transform; xmlns:fo=
 http://www.w3.org/1999/XSL/Format;
   xsl:output method=html/

--x SNIP



Re: stykesheet attribute version

2002-06-11 Thread Peter Jacobs
[EMAIL PROTECTED] wrote:
Do you mean that there is no way around it?
weird, i can run it from my workstation (same os etc only diff processor
and less memory)
can't be...
The fact that it is logged in bugzilla does not imply it is a bug, in 
fact that one was tagged as invalid (see comment at bottom). But that 
comment doesn't help you much...

 this is how i call my whole application

 java -cp 
kbcs_fop.jar;batik.jar;avalonframework.jar;fop.jar;xalan.jar;iText.jar;logkit1b4.jar;jaxp.jar;xerces.jar;. 

 com.kbcsecurities.test.Startup

That jaxp.jar looks suspicious to me, do you need it? Does it work if 
you remove it? I would think xerces and xalan is enough? I would bet 
there some problem in your classpath and the wrong XSLT-engine is called 
or so.

(I am absolutely not an XML expert, just trying to help a bit... :-)
Peter



Re: stykesheet attribute version

2002-06-11 Thread Jochen . Maes
param name=sourceKey value=FinalPDF/
param name=targetKey value=FilePDF/
   /Step
  /Seq
 /Sequences
/XML_Stream



Jochen Maes
ICT Development


KBC Securities (kbcsecurities.com)
Havenlaan 12 Avenue du Port SIF 8683
B-1080 Brussels
Belgium

 Tel:  +32 2 429 96 81  

 GSM:  +32 496 57 90 99 

 E-mail :  [EMAIL PROTECTED] 





This message and any attachments hereto are for the named person's use
only. It may contain confidential, proprietary or legally privileged
information. You may not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the
intended recipient. If you have received this e-mail message without being
the intended recipient, please notify KBC Securities promptly and delete
this e-mail. Any views expressed in this message are those of the
individual sender, except where the message states otherwise and the sender
is authorised to state them to be the views of KBC Securities. KBC
Securities reserves the right to monitor all e-mail communications through
its networks and any messages addressed to, received or sent by KBC
Securities or its employees are deemed to be professional in nature. The
sender or recipient of any messages to or of KBC Securities agrees that
those may be read by other employees of KBC Securities than the stated
recipient or sender in order to ensure the continuity of work-related
activities and allow supervision thereof. KBC Securities does not accept
liability for the correct and complete transmission of the information, nor
for any delay or interruption of the transmission, nor for damages arising
from the use of, or reliance on, the information.



   
Oleg
   
TkachenkoTo: [EMAIL PROTECTED]  
 
[EMAIL PROTECTED]cc:   

onn.com Subject: Re: stykesheet attribute 
version 

   
11/06/2002  
   
16:10   
   
Please  
   
respond to  
   
fop-user
   

   

   




[EMAIL PROTECTED] wrote:

 java -cp

kbcs_fop.jar;batik.jar;avalonframework.jar;fop.jar;xalan.jar;iText.jar;logkit1b4.jar;jaxp.jar;xerces.jar;.


 com.kbcsecurities.test.Startup

You didn't show us how you build initprops Map, please.


 public void process(Map props) throws ProcessException {
 DOMResult res = null;
 TransformerFactory transFactory;
 Transformer transForm;
 String language;
 // XML Parsen en de preparatie van het document zodat de renderer
 // de juiste gegevens heeft.
 try{
 language = (String)props.get(languageKey);
 transFactory = TransformerFactory.newInstance();
At this point you can check whether
(Node)TransformDocs.get(((String)props.get(languageKey)) + _XSL) returns
you
valid stylesheet DOM document, e.g. try to serialize it and inspect.

--
Oleg Tkachenko
Multiconn International Ltd, Israel







Re: stykesheet attribute version

2002-06-11 Thread Jochen . Maes

hi Peter,

I tried without it, but doesn't change a thing... still get the same
error...

and no worries, every help is help... and sometimes other peeps see more
then you do after looking @ it for ages :-)

greets


Jochen Maes
ICT Development


KBC Securities (kbcsecurities.com)
Havenlaan 12 Avenue du Port SIF 8683
B-1080 Brussels
Belgium

 Tel:  +32 2 429 96 81  

 GSM:  +32 496 57 90 99 

 E-mail :  [EMAIL PROTECTED] 





This message and any attachments hereto are for the named person's use
only. It may contain confidential, proprietary or legally privileged
information. You may not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the
intended recipient. If you have received this e-mail message without being
the intended recipient, please notify KBC Securities promptly and delete
this e-mail. Any views expressed in this message are those of the
individual sender, except where the message states otherwise and the sender
is authorised to state them to be the views of KBC Securities. KBC
Securities reserves the right to monitor all e-mail communications through
its networks and any messages addressed to, received or sent by KBC
Securities or its employees are deemed to be professional in nature. The
sender or recipient of any messages to or of KBC Securities agrees that
those may be read by other employees of KBC Securities than the stated
recipient or sender in order to ensure the continuity of work-related
activities and allow supervision thereof. KBC Securities does not accept
liability for the correct and complete transmission of the information, nor
for any delay or interruption of the transmission, nor for damages arising
from the use of, or reliance on, the information.



Re: stykesheet attribute version

2002-06-11 Thread Oleg Tkachenko
[EMAIL PROTECTED] wrote:
ok don't complain if it is a lot of code:
Well, that was really not much, but too hard to grasp, so lets begin from 
another side:

 public void process(Map props) throws ProcessException {
DOMResult res = null;
TransformerFactory transFactory;
Transformer transForm;
String language;
// XML Parsen en de preparatie van het document zodat de renderer
// de juiste gegevens heeft.
try{
language = (String)props.get(languageKey);
transFactory = TransformerFactory.newInstance();

Lets serialize xsl doc at this point to see whether it's ok:
Node xslDOM = (Node)TransformDocs.get(((String)props.get(languageKey)) + 
_XSL);
Transformer idTransform = transFactory.newTransformer();
idTransform.transform(new DOMSource(xslDOM), new StreamResult(System.out));
And what is at the System.out after that ?
--
Oleg Tkachenko
Multiconn International Ltd, Israel


Re: stykesheet attribute version

2002-06-11 Thread Jochen . Maes

Oleg,


i get my whole xsl file bact printed out... (as good as i can see it...)

if you want it i'll write the output to file...

let me know

Jochen Maes
ICT Development


KBC Securities (kbcsecurities.com)
Havenlaan 12 Avenue du Port SIF 8683
B-1080 Brussels
Belgium

 Tel:  +32 2 429 96 81  

 GSM:  +32 496 57 90 99 

 E-mail :  [EMAIL PROTECTED] 





This message and any attachments hereto are for the named person's use
only. It may contain confidential, proprietary or legally privileged
information. You may not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the
intended recipient. If you have received this e-mail message without being
the intended recipient, please notify KBC Securities promptly and delete
this e-mail. Any views expressed in this message are those of the
individual sender, except where the message states otherwise and the sender
is authorised to state them to be the views of KBC Securities. KBC
Securities reserves the right to monitor all e-mail communications through
its networks and any messages addressed to, received or sent by KBC
Securities or its employees are deemed to be professional in nature. The
sender or recipient of any messages to or of KBC Securities agrees that
those may be read by other employees of KBC Securities than the stated
recipient or sender in order to ensure the continuity of work-related
activities and allow supervision thereof. KBC Securities does not accept
liability for the correct and complete transmission of the information, nor
for any delay or interruption of the transmission, nor for damages arising
from the use of, or reliance on, the information.



   
Oleg
   
TkachenkoTo: [EMAIL PROTECTED]  
 
[EMAIL PROTECTED]cc:   

onn.com Subject: Re: stykesheet attribute 
version 

   
11/06/2002  
   
16:51   
   
Please  
   
respond to  
   
fop-user
   

   

   




[EMAIL PROTECTED] wrote:
 ok don't complain if it is a lot of code:
Well, that was really not much, but too hard to grasp, so lets begin from
another side:

  public void process(Map props) throws ProcessException {
 DOMResult res = null;
 TransformerFactory transFactory;
 Transformer transForm;
 String language;
 // XML Parsen en de preparatie van het document zodat de renderer
 // de juiste gegevens heeft.
 try{
 language = (String)props.get(languageKey);
 transFactory = TransformerFactory.newInstance();

Lets serialize xsl doc at this point to see whether it's ok:

Node xslDOM = (Node)TransformDocs.get(((String)props.get(languageKey)) + 
_XSL);
Transformer idTransform = transFactory.newTransformer();
idTransform.transform(new DOMSource(xslDOM), new StreamResult(System.out));

And what is at the System.out after that ?

--
Oleg Tkachenko
Multiconn International Ltd, Israel







Re: stykesheet attribute version

2002-06-11 Thread Jochen . Maes

Oleg, here is the file (copy and pasted it...)

thank you for your help



?xml version=1.0 encoding=UTF-8?
xsl:stylesheet version=1.0 xmlns:fo=http://www.w3.org/1999/XSL/Format;
xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
 xsl:output method=html/
 xsl:strip-space elements=*/
 xsl:template match=/
  fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format;
   fo:layout-master-set
fo:simple-page-master margin-bottom=1.5cm
margin-left=2cm margin-right=2cm margin-top=1cm master-name
=landscape page-height=21cm page-width=29.7cm
 fo:region-body margin-top=3cm/
 fo:region-before extent=3cm/
 fo:region-after extent=1.5cm/
/fo:simple-page-master
fo:simple-page-master margin-bottom=1cm margin-left
=2cm margin-right=2cm margin-top=1pt master-name=Brief page-height
=29.7cm page-width=21cm
 fo:region-body margin-bottom=4cm margin-top
=3cm/
 fo:region-before extent=3cm/
 fo:region-after extent=3.5cm/
/fo:simple-page-master
fo:simple-page-master margin-bottom=0cm margin-left
=2cm margin-right=2cm margin-top=3cm master-name=overzicht
page-height=29.7cm page-width=21cm
 fo:region-body margin-bottom=4cm margin-top
=3cm/
 fo:region-before extent=3cm/
 fo:region-after extent=3.5cm/
/fo:simple-page-master
   /fo:layout-master-set
   fo:page-sequence master-reference=Brief
  !-- De voetnoot.
   De algemene gegevens die kunnen vervangen worden zitten in
de footnote (NIET onder footnote-body dus.
   In de voetnoots body zitten de adresgegevens van KBC
Securities--
fo:static-content flow-name=xsl-region-after
 fo:block
  fo:footnote
   fo:inline
 fo:block font-family=Arialn
font-size=10pt
  xsl:text
___/xsl:text
 /fo:block
   /fo:inline
   fo:inline
 fo:block font-family=Arialn
font-size=10pt line-height=14pt
  fo:inline font-family
=Arial font-size=8pt vertical-align=super1/fo:inline
  fo:inline font-family
=Arialn font-size=10pt line-height=14pt Enkel schriftelijke reacties
kunnen in aanmerking genomen worden./fo:inline
 /fo:block
   /fo:inline
   fo:inline
   !--fo:block font-size=10pt
font-family=Arialn line-height=3pt vertical-align=super
 xsl:text
___/xsl:text
 /fo:block--
 fo:block font-family=Arial
font-size=8pt line-height=11pt
  fo:table border-style
=solid border-width=1pt
   fo:table-column
column-width=3,4cm/
   fo:table-column
column-width=3,4cm/
   fo:table-column
column-width=3,4cm/
   fo:table-column
column-width=3,4cm/
   fo:table-column
column-width=3,4cm/
   fo:table-body
fo:table-row

fo:table-cell
  fo:block
font-family=Arial font-size=8pt

fo:inline font-family=Arialbd font-size=8 font-weight
=boldBrussels/fo:inline

/fo:block

/fo:table-cell

fo:table-cell
  fo:block
font-family=Arial font-size=8pt

xsl:textAmsterdam/xsl:text

/fo:block

/fo:table-cell

fo:table-cell
  fo:block
font-family=Arial font-size=8pt

xsl:textMadrid/xsl:text

/fo:block

/fo:table-cell

fo:table-cell
  fo:block
font-family=Arial font-size=8pt

xsl:textNew York/xsl:text

/fo:block

/fo:table-cell

fo:table-cell
  fo:block
font-family=Arial font-size=8pt

xsl:textParis/xsl:text

/fo:block

/fo:table-cell
   

Re: stykesheet attribute version

2002-06-11 Thread Peter Jacobs
ok, i'll try one more time, but this really has little to do with FOP. 
Did you check the xalan-dev archive?
http://marc.theaimsgroup.com/?l=xalan-dev

Maybe the problem is in setNamespaceAware


while(li.hasNext()){
try {
String key = (String)li.next();
if (key.endsWith(_XSL)){
DocumentBuilderFactory dbf = 
DocumentBuilderFactory.newInstance();
DocumentBuilder db = dbf.newDocumentBuilder();
dbf.setNamespaceAware(true);
Don't you have to switch these last 2 lines?
Peter


Re: stykesheet attribute version

2002-06-11 Thread Jochen . Maes

i tried it again with both ways still get the exeption...

but thanks anyway, and i'm sorry that i brought it up here, but you guyz
are the only ones that really care and really help

greets
Jochen Maes
ICT Development


KBC Securities (kbcsecurities.com)
Havenlaan 12 Avenue du Port SIF 8683
B-1080 Brussels
Belgium

 Tel:  +32 2 429 96 81  

 GSM:  +32 496 57 90 99 

 E-mail :  [EMAIL PROTECTED] 





This message and any attachments hereto are for the named person's use
only. It may contain confidential, proprietary or legally privileged
information. You may not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the
intended recipient. If you have received this e-mail message without being
the intended recipient, please notify KBC Securities promptly and delete
this e-mail. Any views expressed in this message are those of the
individual sender, except where the message states otherwise and the sender
is authorised to state them to be the views of KBC Securities. KBC
Securities reserves the right to monitor all e-mail communications through
its networks and any messages addressed to, received or sent by KBC
Securities or its employees are deemed to be professional in nature. The
sender or recipient of any messages to or of KBC Securities agrees that
those may be read by other employees of KBC Securities than the stated
recipient or sender in order to ensure the continuity of work-related
activities and allow supervision thereof. KBC Securities does not accept
liability for the correct and complete transmission of the information, nor
for any delay or interruption of the transmission, nor for damages arising
from the use of, or reliance on, the information.



Re: stykesheet attribute version

2002-06-11 Thread Oleg Tkachenko
[EMAIL PROTECTED] wrote:
Oleg, here is the file (copy and pasted it...)
Looks good :( Debug your code and if the exception occurs in
transForm = transFactory.newTransformer(new DOMSource ...
try to ask on your xslt processor mail-list.
--
Oleg Tkachenko
Multiconn International Ltd, Israel


Re: stykesheet attribute version

2002-06-11 Thread J.Pietschmann
[EMAIL PROTECTED] wrote:
kbcs_fop.jar;batik.jar;avalonframework.jar;fop.jar;xalan.jar;
iText.jar;logkit1b4.jar;jaxp.jar;xerces.jar;.
 ^
Bad idea, remove it. Usually this jar contains ancient
and outdated JAXP stuff which interferes with the correct
code in xerces.jar.
J.Pietschmann