Success!!! I had neglected the current() before the /@href 

I thank you again for all your help. 

I am supporting a small group that is using xxe for editing xml. If this 
support goes well, and I am able to get the rest of our issues resolved we may 
be able to purchase more copies of xxe. (I can't make any promises.)

This was a big hurdle. Our current xml editor that my group is using, afaik, 
doesn't do this.

I hope that I can at least ask questions as to what is possible!

Thanks again!


Russ

-----Original Message-----
From: Hussein Shafie [mailto:[email protected]] 
Sent: Wednesday, October 28, 2009 5:54 AM
To: Urquhart, Russ
Cc: xmleditor-support at xmlmind.com
Subject: Re: [XXE] css xpath question

Urquhart, Russ wrote:
> 
> I don't know if it IS a matter of the version I am using (3.4.0) but what you 
> suggested didn't work with my version. I added the namespace reference as you 
> suggested.
> 

Once again, I didn't suggest this. Please read *carefully* re-read my previous 
email and *double-check* what you did.

It is not simply a matter of adding a namespace declaration. You need to edit 
css/DocZone.css and replace these lines:

---
@namespace db5 "http://docbook.org/ns/docbook";;

...

CrossReference {
  text-decoration: underline;
/*
SOME COMMENTS HERE
*/
  content: icon(left-link)
   xpath("//db5:tit...@target = substring-after(@href, '#')]") ;
  color: navy;
}
---

by *exactly*:

---
@namespace dz "http://www.xmlmind.com/xmleditor/schema/DocZone";;

CrossReference {
  content: icon(left-link)
   xpath("//dz:tit...@target = substring-after(current()/@href, '#')]");
  text-decoration: underline;
  color: navy;
}
---

I don't see why the above rule wouldn't work in XXE v3.4. However I may be 
wrong because this version is ancient.




> I WOULD be interested if you had a configuration that would work with the 
> latest version. Also, as the people that I am trying to do this work for, I 
> don't know fi they would be able to upgrade, and info or thoughts on why I am 
> still having problems that would be great!

After making a few modifications, your configuration *seems* to work OK in XXE 
v4.5. However from what I've seen, I think it needs to be deeply reworked in 
order to make it lean and mean, easy to maintain, perennial, etc.



> Thanks for ALL your help!

I should have started by asking you what version you are using. Version
3.4 is no longer supported and I was *not* supposed to answer your questions.







Reply via email to