You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-users@xalan.apache.org by David Yan <da...@yahoo-inc.com> on 2003/06/19 01:49:54 UTC

some useful xalan c++ extensions

I'm new to Xalan.  I have developed some generic xalan c++ extensions
that I think will be very useful to xalan-c users.  They are:

encode-uri: %-encodes the input string, very similar to exslt:encode-uri

current-time: gives the current time in w3c format, also takes
timezone as an optional argument

strftime: similar to strftime(3), but takes the time in w3c format.

format-time: similar to strftime, but takes ICU format.

The above functions are already being used at Yahoo!, the company I
currently work for.

Let me know whether I should contribute this to Xalan.

David

Re: some useful xalan c++ extensions

Posted by da...@us.ibm.com.



Hi David,

> I'm new to Xalan.  I have developed some generic xalan c++ extensions
> that I think will be very useful to xalan-c users.  They are:
>
> encode-uri: %-encodes the input string, very similar to exslt:encode-uri

We would consider this if we can modify it to implement the EXSLT function.
We have already committed to supporting EXSLT, and I would not want to
introduce functions which are similar, but not compatible.

> current-time: gives the current time in w3c format, also takes
> timezone as an optional argument
>
> strftime: similar to strftime(3), but takes the time in w3c format.
>
> format-time: similar to strftime, but takes ICU format.

Again, we would want to implement the EXSLT functions that are related to
dates and times.

Thanks for your offer to submit code!

Dave