Using custom functions defined in an external xsl file in ox
Posted: Fri Oct 24, 2014 6:09 pm
Hello,
Does anyone know of a way to call functions defined in an external xsl style sheet from the oxy_xpath() function provided to populate content in a CSS file?
I am implementing some form controls whose values are populated by an xpath expression. The often the xpath expressions are very complicated and have dependencies on other xml files or are attempting to do conditional matches across the current document.
The problem is as follows:
XML Source:
CSS File:
I am open to a complete solution implemented in place in xpath, but at the moment I have not been able to get this working. Thank you for all your help.
Sincerely,
Dirk Dubois
Does anyone know of a way to call functions defined in an external xsl style sheet from the oxy_xpath() function provided to populate content in a CSS file?
I am implementing some form controls whose values are populated by an xpath expression. The often the xpath expressions are very complicated and have dependencies on other xml files or are attempting to do conditional matches across the current document.
The problem is as follows:
XML Source:
Code: Select all
<root>
<group>
<ID>myID</ID>
<item>(content to be populated by xpath)</item>
</group>
<definitions>
<define>
<ID>myID</ID>
<list>value 1</list>
</define>
<define>
<ID>myOtherID</ID>
<list>value 2</list>
</define>
</definitions>
</root>
Code: Select all
item{
content:oxy_xpath("util:getItemContent(../ID)");
}
Sincerely,
Dirk Dubois