On 03/11/2011 01:14 PM, Hussein Shafie wrote:
* It's:
<cfg:command name="pick"
parameter="'Choose the default Attribute' true %_" />
and not:
<cfg:command name="pick"
parameter="'Choose the default Attribute' false %_" />
Yes, we used it with the appropriate 'true' flag (it was a typo in my mail)
* Adding trace="true" to the macro would print useful diagnostics on the
console.
Thanks; I am really confused...
Indeed XXE complains that namespace prefix '*geov*' is undefined (3
compilation errors in the stylesheet):
/-->setDefaultItem:transform: checking...
transform "%_": error: Namespace prefix geov has not been declared
transform "%_": error: Namespace prefix geov has not been declared
transform "%_": error: Namespace prefix geov has not been declared
cannot compile
---
/And indeed, when its prints the stylesheet on the terminal, there is
only one prefix printed, i.e. xmlns:xsl
/<?xml version="1.0"?>
<xsl:stylesheet
version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
>/
However, in my *transform command*, the stylesheet does define two
prefixes, '*xsl*' and '*geov*'; it behaves as if only '*xsl*' had been
defined:
<cfg:command name="setDefaultItem">
<cfg:macro trace="true">
<cfg:sequence>
<cfg:get expression="serialize($implicitElement)"/>
/<cfg:transform source="%_">
<xsl:stylesheet version="1.0"
xmlns:geov="http://www.cggveritas.com/geovation/module/2.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
/
Surely some obvious tiny thing that I fail to see... ?
Many thanks.
Philippe.
--
XMLmind XML Editor Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/xmleditor-support