Re: [Xsltforms-support] Support de "src" pour charger une instance externe?
Brought to you by:
alain-couthures
|
From: Grégoire C. <gco...@gm...> - 2010-02-10 13:58:43
|
Hi,
Thank you Franclin. The "debug" mode was useful. My problem was with my
XPath selector which I use to return the french strings only, like this :
<xf:select1 ref="/search/type">
<xf:itemset model="myModel"
nodeset="/resources/resource[@xml:lang='fr']/item">
<xf:label ref="label"/>
<xf:label ref="value"/>
</xf:itemset>
</xf:select1>
If I use [@xml:lang='fr'], it doesn't work and XSLTForms stays at the
"Loading..." message in the Select1 widget. An event "xforms-out-of-range"
is dispatched for this widget.
However, if I change my external model to have the attribute "lang='fr'" and
not "xml:lang='fr'", and change the XPath selector accordingly, then it
works perfectly.
It seems there's a bug in XSLTForms with external models and the way
namespaces are dealt with, but I'm not an XPath expert so I may be wrong.
Regards,
Grégoire
2010/2/10 Franclin Foping <f.f...@4c...>
> On 10/02/10 10:26, Grégoire Colbert wrote:
>
> Bonjour,
>
> Je voudrais savoir si ceci est faisable avec XSLTForms :
>
> <xf:model>
> <xf:instance src="myExternalInstance.xml"/>
> </xf:model>
>
> Car ça n'a pas l'air de fonctionner chez moi...
>
> Cordialement,
> Grégoire
>
>
> ------------------------------------------------------------------------------
> SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
> Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOWhttp://p.sf.net/sfu/solaris-dev2dev
>
>
> _______________________________________________
> Xsltforms-support mailing lis...@li...://lists.sourceforge.net/lists/listinfo/xsltforms-support
>
> Gregoire,
> Oui je peux confirmer cette assertion car j'ai eu a utilise un tel
> mecanisme tout recemment. Si cela ne fonctionne pas chez toi, je te
> conseillerai que le fichier externe (myExternalInstance.xml) se trouve au
> bon endroit. C'est a dire dans le meme repertoire que le fichier XSL de
> XSLTForms. Tu peux aussi utiliser l'option debug pour savoir si le fichier a
> ete charge ou pas.
> Par contre, je ne suis pas sur que tu puisses utiliser Google Maps avec
> XSLTForms j'ai tente a plusieurs sans succes. J'ai meme poste des messages
> sur le forum mais sans reponse!
> Par souci d'equite ou pour beneficier a toute la communaute, je vais
> poster ma reponse en Anglais :)
> Cordialement,
> Franclin.
> *********************************************
> ENGLISH VERSION
> *********************************************
> Gregoire,
> I can confirm that it is perfectly possible to do what you are after with
> XSLTForms. I did a similar stuff recently. If you are unable to make it
> work, I would strongly suggest that you check the path of your file. You can
> also make use of the Debug option provided by XSLTForms to find out if the
> file was loaded at runtime.
> However, I still do not believe it is possible to embed XSLTForms with
> Google Maps maybe because of the excessive JavaScript involved. I have tried
> different techniques but to no avail. I even posted a lot of messages on
> this forum but never got a reply. Maybe nobody has a clue.
> Regards,
> Franclin
>
>
>
> ------------------------------------------------------------------------------
> SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
> Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
> http://p.sf.net/sfu/solaris-dev2dev
> _______________________________________________
> Xsltforms-support mailing list
> Xsl...@li...
> https://lists.sourceforge.net/lists/listinfo/xsltforms-support
>
>
|