Thanks very much!
-----Original Message-----
From: Hussein Shafie [mailto:[email protected]]
Sent: Friday, June 15, 2007 1:19 AM
To: Mark Fletcher
Cc: xmleditor-support at xmlmind.com
Subject: Re: [XXE] How to use property("LOCATION_INFO") as a
command-button argument?
Mark Fletcher wrote:
> I'd like to use the value of property("LOCATION_INFO") as both the
> text and the parameter of a command button, but id doesn't seem to
> return a value in these cases. Is there a solution?
>
> Here's a snippet:
>
> someSelector {
> content: command-button(
> text, property("LOCATION_INFO"),
> command, "openConref",
> parameter, property("LOCATION_INFO"),
> text-decoration, underline,
> cursor, pointer
> );
> }
>
--> The property() pseudo-function works in the case of *simple*
generated content. Example:
---
*:property("LOCATION_INFO"):before {
display: block;
color: red;
font-size: small;
text-align: center;
content: "LOCATION_INFO=" property("LOCATION_INFO") "\A" icon(down);
}
---
See
http://www.xmlmind.com/xmleditor/_distrib/doc/csssupport/properties.html
--> In your case, you need to use xpath().
See http://www.xmlmind.com/xmleditor/_distrib/doc/csssupport/xpath.html
See
http://www.xmlmind.com/xmleditor/_distrib/doc/commands/xpathextfunc.html
---
someSelector {
content: command-button(
text, xpath('property("LOCATION_INFO")'),
command, "openConref",
parameter, xpath('property("LOCATION_INFO")'),
text-decoration, underline,
cursor, pointer
);
}
---
And yes, I know: this is not consistent.
---
PS: "cursor, pointer" is not implemented.