Hello Markus,

We already have a recorded issue to make the xi:includes transparent for oxy_xpath(). I'll add your vote for it.

Meanwhile you can use a StylesFilter to dynamically compute the "values" property [1]. Instead of using an XPath, in the StylesFilter, you can use the API to navigate through the nodes structure and get the text of the DT nodes. The nodes from the XInclude are present in the author node model.

[1] http://oxygenxml.com/doc/ug-editor/#topics/api_faq_add_form_control_from_filter.html

Best regards,
Alex
-- 
Alex Jitianu
<oXygen/>  XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com 
On 8/19/2014 12:34 PM, practice innovation wrote:

Hi there,

 

I use oxy_xpath funktion in CSS like this

oxy_xpath("string-join(distinct-values(./..//DT/text()),',')")

 

which works very well with an XML like this:

<TD>

     <D>

        <DT>….</DT>

     <D>

     <D>

        <DT>….</DT>

     <D>

</TD>

 

But if D elements are in XML modules included with XInclude

<TD>

   <xi:include href=”d1.xml”/>

   <xi:include href=”d2.xml”/>

</TD>

 

No result is found (as expected first). But if I execute XPath in Author mode the results I’m looking for are found.

Is there any chance to get this or another oxy_xpath working with xincludes?

This oxy_xpath call is the value of “values” property in a popupselection control. So I could implement my own custom control, but I want to avoid this, if possible.

 

Thanks for any hints

Markus



_______________________________________________
oXygen-user mailing list
oXygen-user@oxygenxml.com
http://www.oxygenxml.com/mailman/listinfo/oxygen-user