I don't think I am doing anything wrt namespace usage. Should I have something specific for the current css?
I've attached the directory I created in my addon directory as well as the sample I've been trying. If you get a chance I'd appreicate it! Thanks, Russ -----Original Message----- From: Hussein Shafie [mailto:[email protected]] Sent: Saturday, October 24, 2009 2:51 AM To: Urquhart, Russ Cc: xmleditor-support at xmlmind.com Subject: Re: [XXE] css xpath question Urquhart, Russ wrote: > > However, I tried both versions of this xpath expression: > > xpath("//tit...@target = substring-after(current()/@href, '#')]") This one should work fine. > And > > xpath("//tit...@target = substring-after(@href, '#')]") This one cannot work. I've attempted to explain why. > In this css code: > CrossReference { > color: blue; > text-decoration: underline; > content: icon(left-link) xpath("//tit...@target = > substring-after(@href, '#')]") ; > > vertical-align: text-top; > color: navy; > } > > All I get is the link icon and nothing else. > > Is there something else I can try? > --> No. Please *double-check* what you did, because what I told you is 100% correct and XMLmind XML Editor has no bug related to what you do. Also please check your namespace declararations if any, and remember that XPath expressions do not support the default namespace feature. --> I've reproduced your case using a DocBook 5 document in which: * title/@role is used instead of Title/@Target * phrase/@xmlink:href is used instead of CrossReference/@href I've added this to docbook5.css: --- @namespace db5 "http://docbook.org/ns/docbook"; ... @namespace xlink "http://www.w3.org/1999/xlink"; phrase[xlink|href] { content: icon(left-link) xpath("//db5:tit...@role = substring-after(current()/@xlink:href, '#')]"); text-decoration: underline; color: navy; } --- And as expected it works fine. See attached TestXRef.xml and screenshot TestXRef.png. -------------- next part -------------- A non-text attachment was scrubbed... Name: DocZone.zip Type: application/x-zip-compressed Size: 70284 bytes Desc: DocZone.zip Url : http://www.xmlmind.com/pipermail/xmleditor-support/attachments/20091026/d3cd5817/attachment-0001.bin -------------- next part -------------- A non-text attachment was scrubbed... Name: DZ_CH16_Nokia_INF_5031_GS.xml Type: text/xml Size: 248492 bytes Desc: DZ_CH16_Nokia_INF_5031_GS.xml Url : http://www.xmlmind.com/pipermail/xmleditor-support/attachments/20091026/d3cd5817/attachment-0001.xml

