Page 1 of 1

string-pad()

Posted: Thu Mar 20, 2008 9:36 pm
by tsh138
I'm trying to use string-pad, but Saxon9B tells me it is an unknown system function. I have selected XPath 2.0 via Options->Preferences->XML Parser as well as on the menu bar. What am I missing?

Thanx

Re: string-pad()

Posted: Fri Mar 21, 2008 4:31 pm
by sorin_ristache
Hello,

There is no string-pad function in XPath 2.0. There is an example of user function with that name in the XPath 2.0 specification but it is not a standard XPath function. If you need the example function from the specification you should copy it in your XPath 2.0 stylesheet and use it as user defined function.


Regards,
Sorin