Hi All,
I'd like to implement the real time schema validation shown in the
"schema sandbox" example. However, instead of pasting the XML and
schema in seperate inputs, I'd like the function to pick up the XML and
schema already assigned to my instance in my XForm.
I can get the bind to put up the inputted XML data easily enough, but I
can't make it pick up the schema.
Has anyone any ideas of how to do this?
<xforms:model id="model_Document" xmlns="
http://www.w3.org/1999/xhtml"
schema="oxf:/TSU/$tsmt.019.001.01.xsd">
<xforms:instance id="instance_model_Document">
<xi:include href="$tsmt.019.001.01.xml"/>
</xforms:instance>
<xforms:bind nodeset="formatted-output"
calculate="xxforms:call-xpl
('oxf:/TSU/run-schema.xpl',
('input','schema'),
(instance('instance_model_Document'),
??????),
'formatted-output')"/>
</xforms:model>
I've tried assigning my schema to it's own separate instance, too, but
no joy.
--
Colin Seaman
Senior Developer
Tradocs Ltd,
Tower Point,
44 North Road,
Brighton,
BN1 1YR
email:
[hidden email]
telephone: 0870-1417031
website:
http://www.tradocs.netThis email and any files transmitted with it are confidential
and intended solely for the use of the individual or entity to
whom they are addressed. If you have received this email in
error please contact Tradocs. Please note that any views or
opinions presented in this email are solely those of the author
and do not necessarily represent those of the company. Finally,
the recipient should check this email and any attachments for
the presence of viruses. The company accepts no liability for
any damage caused by any virus transmitted by this email.
This content of this email is without prejudice.
--
You receive this message as a subscriber of the
[hidden email] mailing list.
To unsubscribe: mailto:
[hidden email]
For general help: mailto:
[hidden email]?subject=help
ObjectWeb mailing lists service home page:
http://www.objectweb.org/wws