Posted by
Tanya Gray (Oxford) on
URL: https://discuss.orbeon.com/Orbeon-Forms-3-5-xforms-help-tp33030p33031.html
thanks Joseph and Alex for your help - I have identified the cause:
a custom theme.xsl file was added for use with the epilogue-servlet.xpl and an incorrect path for the help.gif image was used:
<!-- Add images to the page instead of using CSS to get around IE reloading issue -->
<xsl:template match="xhtml:label[tokenize(@class, ' ') = 'xforms-help']" >
<xsl:variable name="image-class" as="xs:string+" select="
('xforms-help-image',
(for $c in tokenize(@class, ' ') return if ($c = 'xforms-help') then () else $c))"/>
<xhtml:img alt="Help" title="" src="images/help.gif" class="{string-join($image-class, ' ')}"/>
<xsl:copy>
<xsl:apply-templates select="@*|node()"/>
</xsl:copy>
</xsl:template>
>>>
[hidden email] 03/09/07 4:26 AM >>>
Hi Tanya,
Is it that you want to display an image inside the tooltip of xforms:help?
In that case the following might work:
<xforms:output value="'Help Image Demo'">
<xforms:help>
<xforms:output value="'<img src="/ops/images/xforms/remove.gif"/>'" mediatype="text/html"/>
</xforms:help>
</xforms:output>
Thanks
Joseph Lawrence
Stabilix Solutions
"Tanya Gray (Oxford)" <
[hidden email]> wrote: Alex
Regarding the xforms:help element, is it possible to continue to use an image for xforms:help? If so, what is the correct syntax to use? Up to now, I have used:
Regarding the XQuery, I am using the same eXist version as before - 1.0beta2. The query can be executed in the eXist Basic Xquery Interface. I just wonder what has changed in relation to the xml-db processor that might affect this, and if anyone else has come across it?
here is an example:
{//element-name}
Tanya
>>>
[hidden email] 03/08/07 5:59 PM >>>
Tanya,
On 3/8/07, Tanya Gray (Oxford) wrote:
> Further to installation of OF 3.5, the xforms:help elements in my input forms are
> displayed as 'Help' text instead of an image. Is there an explanation for why this is the
> case? I looked to update the config/xforms.css file to add a background image to the
> .xforms-help-image class, however, the help text is still displayed.
There used to only a label for help. Now there is an image and a
label. When we only had a label, the image was displayed by setting it
as a background to the label in CSS. But that was causing some
problems, hence the image and the label.
We have an alt attribute on the help image, because that attribute is
required in HTML. But it won't get displayed if CSS/JavaScript is
working as it should on your browser.
I admit that we need to revisit the HTML we output for help, and improve that.
> Also, I have found that some of my XQuery statements are no longer executed correctly
> in the xml-db processor (previously working with OPS 3.1), e.g. $x//element-name
> - this no longer returns matching elements and needs to be changed to: $x//*[./name() eq
> 'element-name']
Most likely, this is due to the new version of eXist. Can you try to
run this query with the eXist client?
Alex
--
Orbeon Forms - Web 2.0 Forms for the Enterprise
http://www.orbeon.com/--
This message (and any attachments) is for the recipient only. NERC
is subject to the Freedom of Information Act 2000 and the contents
of this email and any reply you make may be disclosed by NERC unless
it is exempt from release under the Act. Any material supplied to
NERC may be stored in an electronic records management system.
--
You receive this message as a subscriber of the
[hidden email] mailing list.
To unsubscribe: mailto:
[hidden email]
For general help: mailto:
[hidden email]?subject=help
ObjectWeb mailing lists service home page:
http://www.objectweb.org/wws
---------------------------------
TV dinner still cooling?
Check out "Tonight's Picks" on Yahoo! TV.
--
This message (and any attachments) is for the recipient only. NERC
is subject to the Freedom of Information Act 2000 and the contents
of this email and any reply you make may be disclosed by NERC unless
it is exempt from release under the Act. Any material supplied to
NERC may be stored in an electronic records management system.
--
You receive this message as a subscriber of the
[hidden email] mailing list.
To unsubscribe: mailto:
[hidden email]
For general help: mailto:
[hidden email]?subject=help
ObjectWeb mailing lists service home page:
http://www.objectweb.org/wws