RE: Current date integration

2002-05-02 Thread Sandrine Pilon
I buid a file test with minimum elements as follow and the result is OK
!!
I think there are elements in my file whitch are icompatible. I will search
in this side..
Thank you very much for your help,
Sandrine

*

http://www.w3.org/1999/XSL/Transform";
xmlns:fo="http://www.w3.org/1999/XSL/Format";
xmlns:date="java.util.Date"
xmlns:format="java.text.SimpleDateFormat"
exclude-result-prefixes="date format">


  

  
  
  



  
  

  
  


.MM.dd G 'at' hh:mm:ss a
zzz





   

  
  
  

*












-Message d'origine-
De : Oleg Tkachenko [mailto:[EMAIL PROTECTED]
Envoyé : jeudi 2 mai 2002 13:08
À : [EMAIL PROTECTED]
Objet : Re: Current date integration



hmmm, well, with version attribute the transformation works fine with
saxon and xalan, but it produces no fo elements, how do you use it with fop?

Sandrine Pilon wrote:
  Version "1.0" stylesheet is included but it's a copy/paste problem .
> Also fo element are included but I wanted to be concise.
> I still have error 'null'.
--
Oleg Tkachenko
Multiconn International, Israel


(routed by MccMailRouter)



Re: Current date integration

2002-05-02 Thread Oleg Tkachenko
hmmm, well, with version attribute the transformation works fine with 
saxon and xalan, but it produces no fo elements, how do you use it with fop?

Sandrine Pilon wrote:
 Version "1.0" stylesheet is included but it's a copy/paste problem .
Also fo element are included but I wanted to be concise.
I still have error 'null'.
--
Oleg Tkachenko
Multiconn International, Israel


RE: Current date integration

2002-05-02 Thread Sandrine Pilon
Version "1.0" stylesheet is included but it's a copy/paste problem .
Also fo element are included but I wanted to be concise.
I still have error 'null'.
Thanks
Sandrine

-Message d'origine-
De : Oleg Tkachenko [mailto:[EMAIL PROTECTED]
Envoyé : jeudi 2 mai 2002 12:13
À : [EMAIL PROTECTED]
Objet : Re: Current date integration



Sandrine Pilon wrote:

> **
> [INFO]: FOP 0.20.3
> file:///D:/Program Files/FOP/fop-0.20.3/MCCFdConfig_FO_2.xsl; Line 7;
Column
> 40; [ERROR]: null
> **
> and the line 7 is this: 'extension-element-prefixes="date">'
> Column 40 is lhe last column.
> I also tried J.Pietschmann advises, but the same error occurred with his
> example:
>
> **
> 
>xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
>   xmlns:fo="http://www.w3.org/1999/XSL/Format";
>   xmlns:date="java.util.Date"
>   xmlns:format="java.text.SimpleDateFormat"
>   exclude-result-prefixes="date format">
>
> 
>   .MM.dd G 'at' hh:mm:ss a
> zzz
>   
>   
>   
> 
> **

 element must have version attribute - that's probably
your error. And that stylesheet doesn't generate any fo elements also,
is it test only one?

--
Oleg Tkachenko
Multiconn International, Israel


(routed by MccMailRouter)



Re: Current date integration

2002-05-02 Thread Oleg Tkachenko
Sandrine Pilon wrote:
**
[INFO]: FOP 0.20.3
file:///D:/Program Files/FOP/fop-0.20.3/MCCFdConfig_FO_2.xsl; Line 7; Column
40; [ERROR]: null
**
and the line 7 is this: 'extension-element-prefixes="date">'
Column 40 is lhe last column.
I also tried J.Pietschmann advises, but the same error occurred with his
example:
**

http://www.w3.org/1999/XSL/Transform";
xmlns:fo="http://www.w3.org/1999/XSL/Format";
xmlns:date="java.util.Date"
xmlns:format="java.text.SimpleDateFormat"
exclude-result-prefixes="date format">

.MM.dd G 'at' hh:mm:ss a
zzz




**
 element must have version attribute - that's probably 
your error. And that stylesheet doesn't generate any fo elements also, 
is it test only one?

--
Oleg Tkachenko
Multiconn International, Israel


RE: Current date integration

2002-05-02 Thread Sandrine Pilon
Hi Oleg & J.Pietschmann,


Sandrine Pilon wrote:
> OK ! But a problem persists.
> when I compile with FOP, It returns me errors about the line:
> 'exclude-result-prefixes="user"' in stylesheet and I don't understand why.

What is the error message ?

Here is the result when I compiled with FOP:
**
[INFO]: FOP 0.20.3
file:///D:/Program Files/FOP/fop-0.20.3/MCCFdConfig_FO_2.xsl; Line 7; Column
40; [ERROR]: null
**
and the line 7 is this: 'extension-element-prefixes="date">'
Column 40 is lhe last column.


I also tried J.Pietschmann advises, but the same error occurred with his
example:

**

http://www.w3.org/1999/XSL/Transform";
xmlns:fo="http://www.w3.org/1999/XSL/Format";
xmlns:date="java.util.Date"
xmlns:format="java.text.SimpleDateFormat"
exclude-result-prefixes="date format">


.MM.dd G 'at' hh:mm:ss a
zzz




**


Thank you because 'I'm stumped'. ;o)
Sandrine



Re: Current date integration

2002-04-30 Thread J.Pietschmann
Sandrine Pilon wrote:
How is it possible to integrate (simply) current date to a xsl stylesheet ?
Using javaScript is one solution, exactly as you did. With
Xalan, you can also use java.util.Date directly:
 http://www.biglist.com/lists/xsl-list/archives/200203/msg01243.html
Neither of these approaches is protable (yet). If you need
portability, pass the formatted date as a parameter to the
style sheet. You can pass parameters from the command line
as well as to an transformer object if you run an embedded
transformer. For Cocoon, it's best to write an apropriate
filter.
J.Pietschmann


Re: Current date integration

2002-04-30 Thread Oleg Tkachenko
Sandrine Pilon wrote:
OK ! But a problem persists.
when I compile with FOP, It returns me errors about the line:
'exclude-result-prefixes="user"' in stylesheet and I don't understand why.
What is the error message ?
--
Oleg Tkachenko
Multiconn International, Israel


RE: Current date integration

2002-04-30 Thread Sandrine Pilon
OK ! But a problem persists.
when I compile with FOP, It returns me errors about the line:
'exclude-result-prefixes="user"' in stylesheet and I don't understand why.

Thanks
Sandrine [Paris]




-Message d'origine-
De : Roland Lechner [mailto:[EMAIL PROTECTED]
Envoyé : mardi 30 avril 2002 11:02
À : [EMAIL PROTECTED]
Objet : Re: Current date integration



This definitly works (at least in my application).
It might be a "waste" to define a new namespace for just own function, but
it seems to be the only solution.

Roland

[EMAIL PROTECTED] schrieb am 30.04.02:
> Dear all,
>
> How is it possible to integrate (simply) current date to a xsl stylesheet
?
>
> This solution seems to be run, but it's constraining to define an own
> namespace for one function.
>

> 
>xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
>   xmlns:fo="http://www.w3.org/1999/XSL/Format";
>   xmlns:func="http://www.exslt.org/functions";
>   xmlns:user="http://www.mcc-soft.com/mynamespace";
>
>   extension-element-prefixes="func"
>   exclude-result-prefixes="user">
>
> 
> 
> 
> 
>   
>   
> 
> 
>

> 
>
> Thanks for your help & best regards,
> Sandrine - Paris France
>
>



Keine verlorenen Lotto-Quittungen, keine vergessenen Gewinne mehr!
Beim WEB.DE Lottoservice: http://tippen2.web.de/?x=13



(routed by MccMailRouter)



Re: Current date integration

2002-04-30 Thread Roland Lechner
This definitly works (at least in my application).
It might be a "waste" to define a new namespace for just own function, but it 
seems to be the only solution.

Roland

[EMAIL PROTECTED] schrieb am 30.04.02:
> Dear all,
> 
> How is it possible to integrate (simply) current date to a xsl stylesheet ?
> 
> This solution seems to be run, but it's constraining to define an own
> namespace for one function.
> 
> 
>xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
>   xmlns:fo="http://www.w3.org/1999/XSL/Format";
>   xmlns:func="http://www.exslt.org/functions";
>   xmlns:user="http://www.mcc-soft.com/mynamespace";
> 
>   extension-element-prefixes="func"
>   exclude-result-prefixes="user">
> 
> 
> 
> 
> 
>   
>   
> 
> 
> 
> 
> 
> Thanks for your help & best regards,
> Sandrine - Paris France
> 
> 



Keine verlorenen Lotto-Quittungen, keine vergessenen Gewinne mehr! 
Beim WEB.DE Lottoservice: http://tippen2.web.de/?x=13