How do use an attribute with a namespace using oxy_xpath?
Posted: Thu Jan 05, 2012 8:01 pm
In a CSS, I want to insert the value of an attribute of a parent element. The attribute has a namespace. I have the namespace declared.
@namespace xlink "http://www.w3.org/1999/xlink";
I have tried this:
warning>trim\.para>link>prompt { content: oxy_xpath('parent::link/@xlink:href'); }
That produces the following error message in Author:
System ID: C:\Program Files\Oxygen XML Editor 13\frameworks\MIL-STD-2361C\css\Production.css
Severity: error
Description: [CSS]:XPath failed: XPath failed due to: Prefix xlink has not been declared
I have also tried:
warning>trim\.para>link>prompt { content: oxy_xpath('parent::link/@xlink|href'); }
which renders nothing.
Is there way to make this work?
@namespace xlink "http://www.w3.org/1999/xlink";
I have tried this:
warning>trim\.para>link>prompt { content: oxy_xpath('parent::link/@xlink:href'); }
That produces the following error message in Author:
System ID: C:\Program Files\Oxygen XML Editor 13\frameworks\MIL-STD-2361C\css\Production.css
Severity: error
Description: [CSS]:XPath failed: XPath failed due to: Prefix xlink has not been declared
I have also tried:
warning>trim\.para>link>prompt { content: oxy_xpath('parent::link/@xlink|href'); }
which renders nothing.
Is there way to make this work?