executing XPath after XInclude
Posted: Mon Jul 15, 2013 11:17 pm
I have elements that I want to style in Author depending on contextual information. For this, I figured that I would use oxy_xpath() to perform a test that, importantly, grabs information (an attribute) from the parent element. This works until I XInclude the content. I checked the forum, and I see a few posts related to this issue:
- 1)xi:include is not included while evaluating XPath states "...XPaths are only performed on the current document's content."
2)oxy_xpath not evaluating for xi:include elements/attributes in parent document shows that attr(attrName) will get attribute even inside XIncludes, which I have confirmed.
Code: Select all
myChildElement {
border-color: oxy_xpath("if (@childId = ../@specialChildId) then 'yellow' else 'black'"));
}