You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Abhijit Junnare <ma...@yahoo.com> on 2003/10/09 16:36:31 UTC

Printing Current Date and Time

Dear List,
I am wondering if there is any built-in function to
ger the current date and time using XSL to print it in
the PDF generated using FOP. I have used java script
earlier while converting to HTML when displaying in a
browser but not done in regards to PDF. 
Thanks in advance for the help.
Abhi

__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org


Re: Printing Current Date and Time

Posted by Jeremias Maerki <de...@greenmail.ch>.
Clay,

have a look at http://www.exslt.org/. Some, if not all of it, is also
implemented in Xalan-J and in many other XSLT-processors as well.

On 09.10.2003 18:54:05 Clay Leeds wrote:
> Abhi, I think you misunderstood my last message.
> 
> You indicated that you have found an extension function which gets the 
> current date and time for use in xsl-fo.
> 
> I have some questions for you:
> 
> - What is the name of the extension function?
> - Where can this extension function for getting the current date and 
> time for use in XSL-FO be found?
> - What is the namespace/uri?
> - Can this extension function for getting the current date and time for 
> use in XSL-FO be used from the command line?


Jeremias Maerki


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org


Re: Printing Current Date and Time

Posted by Clay Leeds <cl...@medata.com>.
Thanks! This is the type of information (URL, namespace, etc.) I was 
looking for. J.Pietschmann just posted the link:

   http://www.exslt.org/

...in a reply to my previous message, and I've been checking it out a 
bit. I'd been there before "way back in 2002" (it seems like ages ago!), 
but they've progressed a bunch since then. Wow! They've been busy there. 
I'm impressed! It certainly warrants another look-see! Thanks for 
bringing it back onto my radar!

If anyone has a need for some type of xsl-fo function they wish were in 
the xsl-fo spec (mathematical, regexp, string functions, etc.), it 
merits a look to see if it's been implemented by these folks!

Web Maestro Clay

Abhijit Junnare wrote:
> Oops. Sorry I misunderstood what you were saying. But
> I am not sure if what I have can answer your
> questions.
> I am using XSLT and XSL FO combined together to
> generate PDF for the XML documents. SO essentially I
> am using the XSL extension fucntions. I am sure that
> you know bunch of those kinda functions. I am using
> something like this
> 
> xmlns:date="http://exslt.org/dates-and-times"
> 
> <xsl:value-of select="date:date-time()"/>
> 
> I have this code some place in my stylesheet to
> convert the XML into PDF using FOP. 
> I hope that this is what you had asked for.
> Thanks,
> Abhi



---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org


Re: Printing Current Date and Time

Posted by Abhijit Junnare <ma...@yahoo.com>.
Oops. Sorry I misunderstood what you were saying. But
I am not sure if what I have can answer your
questions.
I am using XSLT and XSL FO combined together to
generate PDF for the XML documents. SO essentially I
am using the XSL extension fucntions. I am sure that
you know bunch of those kinda functions. I am using
something like this

xmlns:date="http://exslt.org/dates-and-times"

<xsl:value-of select="date:date-time()"/>

I have this code some place in my stylesheet to
convert the XML into PDF using FOP. 
I hope that this is what you had asked for.
Thanks,
Abhi



--- Clay Leeds <cl...@medata.com> wrote:
> Abhi, I think you misunderstood my last message.
> 
> You indicated that you have found an extension
> function which gets the 
> current date and time for use in xsl-fo.
> 
> I have some questions for you:
> 
> - What is the name of the extension function?
> - Where can this extension function for getting the
> current date and 
> time for use in XSL-FO be found?
> - What is the namespace/uri?
> - Can this extension function for getting the
> current date and time for 
> use in XSL-FO be used from the command line?
> 
> Thanks!
> 
> Abhijit Junnare wrote:
> > Thanks:)
> > --- Clay Leeds <cl...@medata.com> wrote:
> > 
> >>Which one? What's it called? What do I have to do
> to
> >>use it? Can it be 
> >>used from the COMMAND LINE?
> >>
> >>Careful, your answer might end up in a FAQ! ;-p
> >>
> >>Abhijit Junnare wrote:
> >>
> >>>No Problem. I think I got the solution. I am
> using
> >>>extension function.
> >>>Thanks,
> >>>Abhi
> >>>--- Abhijit Junnare <ma...@yahoo.com> wrote:
> >>>
> >>>>Dear List,
> >>>>I am wondering if there is any built-in function
> >>
> >>to
> >>
> >>>>ger the current date and time using XSL to print
> >>
> >>it
> >>
> >>>>in
> >>>>the PDF generated using FOP. I have used java
> >>
> >>script
> >>
> >>>>earlier while converting to HTML when displaying
> >>
> >>in
> >>
> >>>>a
> >>>>browser but not done in regards to PDF. 
> >>>>Thanks in advance for the help.
> >>>>Abhi
> 
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> fop-user-unsubscribe@xml.apache.org
> For additional commands, e-mail:
> fop-user-help@xml.apache.org
> 


__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org


Re: Printing Current Date and Time

Posted by Clay Leeds <cl...@medata.com>.
Abhi, I think you misunderstood my last message.

You indicated that you have found an extension function which gets the 
current date and time for use in xsl-fo.

I have some questions for you:

- What is the name of the extension function?
- Where can this extension function for getting the current date and 
time for use in XSL-FO be found?
- What is the namespace/uri?
- Can this extension function for getting the current date and time for 
use in XSL-FO be used from the command line?

Thanks!

Abhijit Junnare wrote:
> Thanks:)
> --- Clay Leeds <cl...@medata.com> wrote:
> 
>>Which one? What's it called? What do I have to do to
>>use it? Can it be 
>>used from the COMMAND LINE?
>>
>>Careful, your answer might end up in a FAQ! ;-p
>>
>>Abhijit Junnare wrote:
>>
>>>No Problem. I think I got the solution. I am using
>>>extension function.
>>>Thanks,
>>>Abhi
>>>--- Abhijit Junnare <ma...@yahoo.com> wrote:
>>>
>>>>Dear List,
>>>>I am wondering if there is any built-in function
>>
>>to
>>
>>>>ger the current date and time using XSL to print
>>
>>it
>>
>>>>in
>>>>the PDF generated using FOP. I have used java
>>
>>script
>>
>>>>earlier while converting to HTML when displaying
>>
>>in
>>
>>>>a
>>>>browser but not done in regards to PDF. 
>>>>Thanks in advance for the help.
>>>>Abhi



---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org


Re: Printing Current Date and Time

Posted by Abhijit Junnare <ma...@yahoo.com>.
Thanks:)
--- Clay Leeds <cl...@medata.com> wrote:
> Which one? What's it called? What do I have to do to
> use it? Can it be 
> used from the COMMAND LINE?
> 
> Careful, your answer might end up in a FAQ! ;-p
> 
> Abhijit Junnare wrote:
> > No Problem. I think I got the solution. I am using
> > extension function.
> > Thanks,
> > Abhi
> > --- Abhijit Junnare <ma...@yahoo.com> wrote:
> >>Dear List,
> >>I am wondering if there is any built-in function
> to
> >>ger the current date and time using XSL to print
> it
> >>in
> >>the PDF generated using FOP. I have used java
> script
> >>earlier while converting to HTML when displaying
> in
> >>a
> >>browser but not done in regards to PDF. 
> >>Thanks in advance for the help.
> >>Abhi
> 
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> fop-user-unsubscribe@xml.apache.org
> For additional commands, e-mail:
> fop-user-help@xml.apache.org
> 


__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org


Re: Printing Current Date and Time

Posted by Clay Leeds <cl...@medata.com>.
Which one? What's it called? What do I have to do to use it? Can it be 
used from the COMMAND LINE?

Careful, your answer might end up in a FAQ! ;-p

Abhijit Junnare wrote:
> No Problem. I think I got the solution. I am using
> extension function.
> Thanks,
> Abhi
> --- Abhijit Junnare <ma...@yahoo.com> wrote:
>>Dear List,
>>I am wondering if there is any built-in function to
>>ger the current date and time using XSL to print it
>>in
>>the PDF generated using FOP. I have used java script
>>earlier while converting to HTML when displaying in
>>a
>>browser but not done in regards to PDF. 
>>Thanks in advance for the help.
>>Abhi



---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org


Re: Printing Current Date and Time

Posted by Abhijit Junnare <ma...@yahoo.com>.
No Problem. I think I got the solution. I am using
extension function.
Thanks,
Abhi
--- Abhijit Junnare <ma...@yahoo.com> wrote:
> Dear List,
> I am wondering if there is any built-in function to
> ger the current date and time using XSL to print it
> in
> the PDF generated using FOP. I have used java script
> earlier while converting to HTML when displaying in
> a
> browser but not done in regards to PDF. 
> Thanks in advance for the help.
> Abhi
> 
> __________________________________
> Do you Yahoo!?
> The New Yahoo! Shopping - with improved product
> search
> http://shopping.yahoo.com
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> fop-user-unsubscribe@xml.apache.org
> For additional commands, e-mail:
> fop-user-help@xml.apache.org
> 


__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org