I wanted to use the standard processors.xml file but could not find it in the site. So I modified the old processors.xml. Can you tell me from where will I get the standard processors.xml file?
I am facing another problem. For radio buttons and check boxes I had xforms:bind in the instance xml.
<xforms:bind nodeset="/instanceData/TXLife/A_ExistingInsuranceInd" calculate="if(string() = '', 0, .)"/>
This is not working with the new version. So I changed it to
<xforms:bind nodeset="/instanceData/TXLife/A_ExistingInsuranceInd" calculate="if(string() = '')
then 0
else ."/>
But this was not working. It is creating a node like this: <A_ExistingInsuranceInd><A_ExistingInsuranceInd/></A_ExistingInsuranceInd>
So I removed the binding. As a result, if I dont select a check box it is not setting any value, where as I need to set 0. I think I am doing something wrong in the if block.
Somehow some <dummy/> elements are also getting created in instance xml at runtime. Are all these happening because xforms is now parsed differently in new oxf?
-Anindita
----------------------------------------------------------------------------------------
This is a PRIVATE message. If you are not the intended recipient, please delete without copying and kindly advise us by e-mail of the mistake in delivery. NOTE: Regardless of content, this e-mail shall not operate to bind CSC to any order or other contract unless pursuant to explicit written agreement or government initiative expressly permitting the use of e-mail for such purpose.
----------------------------------------------------------------------------------------
| Erik Bruchez <ebruchez @orbeon.com> Sent by: orbeon-user-admin 01/11/2005 04:41 PM
|
To: [email protected] cc: Subject: Re: [orbeon-user] error thrown in oxf-ewrite.xsl |
Probably since 2.5 final, the oxf:xslt maps to the generic XSLT 2.0
processor:
<processor name="oxf:xslt" uri="oxf/processor/xslt">
<instantiation name="oxf:generic-xslt-2.0">
<input name="transformer">
<config>
<class>DEFAULT</class>
</config>
</input>
</instantiation>
</processor>
It looks like you have your own processors.xml? Except for your own
custom processors that you may have added to processors.xml, the rest of
it should in general remain untouched.
-Erik
Anindita Goswami wrote:
>
> Hi Erik,
>
> We are not using actual v2.5. It is beta release of 2.5, which is quite
> different from 2.5.
> In my epilogue it was <p:processor name="oxf:xslt">. But then it was
> throwing error in oxf-rewrite as it seems it supports only 1.0. In my
> processors.xml file entry for xslt processor is as follows.
>
> <processor name="oxf:generic-xslt-1.0"
> uri="oxf/processor/generic-xslt-1.0">
> <class
> name="org.orbeon.oxf.processor.transformer.xslt.XSLT1Transformer"/>
> </processor>
> <processor name="oxf:xslt" uri="oxf/processor/xslt">
> <instantiation name="oxf:generic-xslt-1.0">
> <input name="transformer">
> <config>
> <class>DEFAULT</class>
> </config>
> </input>
> </instantiation>
> </processor>
>
> So in epilogue I changed oxf:xslt to oxf:xslt-2.0 and it started working.
> Entry for oxf:xslt-2.0 in processors.xml is as follows:
>
> <processor name="oxf:generic-xslt-2.0"
> uri="oxf/processor/generic-xslt-2.0">
> <class
> name="org.orbeon.oxf.processor.transformer.xslt.XSLT2Transformer"/>
> </processor>
> <processor name="oxf:saxon7" uri="oxf/processor/saxon7">
> <instantiation name="oxf:generic-xslt-2.0">
> <input name="transformer">
> <config>
>
> <class>net.sf.saxon.TransformerFactoryImpl</class>
> </config>
> </input>
> </instantiation>
> </processor>
> <processor name="oxf:xslt-2.0" uri="oxf/processor/xslt-2.0">
> <instantiation name="oxf:saxon7"/>
> </processor>
>
> Please let me know if I am doing anything wrong.
>
> Thanks,
> Anindita
-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
orbeon-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/orbeon-user
