attr() as argument in oxy_substring
Posted: Wed Dec 21, 2011 10:00 pm
Can the attr() be used as the value for the text using oxy_substring CSS function? I need to eliminate part of the xlink:href value of my <link> element to create links in Author. The syntax of the value must be maintained due to propriety IETM publishing software. My link element looks like this:
<link xlink:href="IETM://M00033" xmlns:xlink="http://www.w3.org/1999/xlink"><prompt>PROMPT TEXT</prompt></link>
I need to grab the substring "M00033" for file name of the linked to file.
I have tried the following:
link:before {link: oxy_substring(attr(xlink|href),7)".xml";}
and I have tried:
link:before {link: oxy_xpath("substring-after(attr(xlink|href),'IETM://')".xml";}
Neither method using Oxygen CSS custom extension functions is working. Is what I'm trying to do possible?
<link xlink:href="IETM://M00033" xmlns:xlink="http://www.w3.org/1999/xlink"><prompt>PROMPT TEXT</prompt></link>
I need to grab the substring "M00033" for file name of the linked to file.
I have tried the following:
link:before {link: oxy_substring(attr(xlink|href),7)".xml";}
and I have tried:
link:before {link: oxy_xpath("substring-after(attr(xlink|href),'IETM://')".xml";}
Neither method using Oxygen CSS custom extension functions is working. Is what I'm trying to do possible?