Hi,
How are you setting the type of the node? If you're using, inside the model of your XBL control, an <xf:bind type="…"/>, then you can have the type change dynamically with something like:
<xf:bind ref="instance('my-instance')/root/value[@type = 'date']" type="xs:date"/>
I.e., the type will be set to date if the element also has an attribute type="date". But of course, in that test you could use any other value from that instance, or another instance, and support multiple types this way.
Is this something that could work in your scenario?
Alex
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet