> This tests call-template while providing an xml fragment (<x:context>
> in xspec.)
> [...]
> Do you have suggestions how to translate this kind of test into xspec?
> Or would this require xspec to be extended?
I can be wrong , but I think there is no way to write such a test
with XSpec (please someone prove me wrong!)
This is unfortunately a general problem with XSpec, it fulfills very
easily most of the cases, but the language has not been designed at
once, and has a lot of such little corner cases. Some concepts are
not orthogonal enough, but this is difficult to change because there
is some legacy and existing code using the current design.
In this case, I guess we could overload the semantics of x:context
in case it is followed by an x:call[@template]. Something like:
<x:scenario>
<x:context>
<dtb:dtbook xml:lang="de-CH"/>
<x:context>
<x:call template="findLanguage"/>
...
I am not a big fan of overloading, but I cannot really think of
another name for x:context here...
Any idea?
Regards,
--
Florent Georges
http://fgeorges.org/
Hi,
> How long do you estimate would it take to implement this feature?
> Do you plan to implement it?
I'd like first to give a chance to hear from other people on
the list. Any idea? Any comment? For the context:
http://groups.google.com/group/xspec-users/browse_thread/thread/17b9ebef6033ef76/0b70e911876794f6
If people agree, or no one disagree, I guess this is not a big
deal. The most difficult part is to find some time to work on
it. Any contribution welcome ;-)