string-pad()

Here should go questions about transforming XML with XSLT and FOP.
tsh138
Posts: 17
Joined: Tue Feb 05, 2008 11:14 pm

string-pad()

Post 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
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Re: string-pad()

Post 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
Post Reply