Use oxy_xpath with oxy_add?
Posted: Wed Nov 30, 2011 6:00 pm
I am attempting to use oxy_add in a custom CSS for the Author mode, which works fine. But the catch is I want to use oxy_xpath to return a number for one or two of the input parameters.
I have constructed the following:
oxy_add(oxy_xpath("./path/to/node/number()"),1, number)
This works in that the number is calculated correctly, but I am getting errors in the console as follows:
Any suggestions? Even though the oxy_add is working, I do not want to deploy it to end users with the console spitting out errors.
Thanks.
I have constructed the following:
oxy_add(oxy_xpath("./path/to/node/number()"),1, number)
This works in that the number is calculated correctly, but I am getting errors in the console as follows:
I suspect it is pointing to the dita.css because that is where my custom CSS is imported at.System ID: /Applications/author/modified_frameworks/dita/css_classed/dita.css
Severity: error
Description: [CSS]:Invalid "oxy_add" function signature. Must be "oxy_add"(param1, param2, ..., 'returnType')
Allowed values for the return type: ('integer', 'number', 'px', 'pt', etc).
Example:
width: oxy_add(attr(size), 10, 'px')
Could not convert the 1 argument to a float value.
Any suggestions? Even though the oxy_add is working, I do not want to deploy it to end users with the console spitting out errors.
Thanks.