on 05-25-2007 2:46 PM
I would like to use an xpath function in an assignment block. I have tried the following:
codepoints-to-string(80)
{codepoints-to-string(80)}
Both cause evaluation errors.
What am I doing wrong?
Dave,
This can be accomplished via an XSL Transformation, which supports recursive functions.
Regards,
Michael Teti
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi, David.
codepoints-to-string is a proposed function for the XPath 2.0 specification, which very few of the major XSL/XML parsers and processors support. We use Apache Xalan, which at present, does not support this.
What exactly are you trying to do? I suspect there may be another way.
- Rick
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I am trying to convert an ASCII String to its HEX string equivalent and back again (two separate functions)
Example: "HELLO THERE!" => "48454C4C4F20544845524521"
I have it working by performing character by character lookups in a static string of all possible characters then mapping that over positionally with a static string of corresponding hex values.
I was hoping that there might be a way to do this mathematically so that I did not need to maintain the static strings.
Is there a white paper that goes into more detail on XPATH. I do not see too much in the docs.
Hi David,
XPATH is not specific to xMII.
There are a lot of resources on the web regarding XPATH. Start with www.w3schools.com.
David,
do a search on "xmii xpath" on SDN and you will find info on XPath usage in xMII like the following: https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e339015e-0b01-0010-a4b8-f35ed792...
With regards to supported XPath functions in Xalan, I believe it only fully implements XPath 1.0 at the moment, but I might be wrong on that. A quick Google search should clear that up.
User | Count |
---|---|
12 | |
7 | |
3 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.