Hi Hussein,

I've just been trying out the Spreadsheet extensions to XXE. This is really
interesting, and a very neat solution.

One question though. I've worked through the tutorial, which is obviously on
an XHTML document. For me, I'd want to do this on a DITA topic. However, in
the latter document, I can't get the formulas to work with element ids.

So I have:
<p>In 2009 we made £<ph id="previous">234</ph></p>

But the formula:
<p>Previous = <?xxe-formula formula='=$(previous)'?></p>
does not return a result (but no error).

However, the XPath version:
<p>Previous = <?xxe-formula formula='=`//*...@id=&#39;previous&#39;]`'?></p>
does work.

Similar behaviour happens when the referenced element is a <stentry>.

What am I doing wrong here?

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
       Roy MacLean -- IT Training & Technical Writing
                      http://roymaclean-it.co.uk
                    [email protected]
                             07 956 474 911
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~





=======
Email scanned by PC Tools - No viruses or spyware found.
(Email Guard: 7.0.0.18, Virus/Spyware Database: 6.16120)
http://www.pctools.com/
=======
 
--
XMLmind XML Editor Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/xmleditor-support

Reply via email to