Some controls do not work if not all xforms namespace prefixes have an import instruction

Project:formsPlayer
Version:1.5.5-dev
Component:User interface
Category:support
Priority:critical
Assigned:Unassigned
Status:closed
Description

This was tested with latest version 1.5.5.1018

Please use the spreadsheet and the self contained app that was sent earlier in an email to Mark for reference

"xf:output based on instance values/binds are not being displayed. Details of the following items are given in the ""Output Schedule"" form items in the below cells.

1. Start Date and End Date fields don’t show values
2. Grid data does not show anything that is referenced from xf:input values
3. Validation Results section which references instance data does not show anything
4. And any other other xf:ouput controls as well.
"

Updates

#1 submitted by Paul Butcher on Mon, 2007-09-24 12:25
Title:xf:output based on instance values are not being displayed.» Some controls do not work if not all xforms namespace prefixes have an import instruction

output and range both use the first declared XForms namespace in creating their UI component. If that namespace does not have a corresponding import processing instruction, then they will not work.

Given a form where the opening tag of its document element looks like this:

<html xmlns="http://www.w3.org/1999/xhtml" xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:xf="http://www.w3.org/2002/xforms" >

If the only import processing instruction is this:

<?import namespace="xf" implementation="#FormsPlayer" ?>

output and range will not work.

There are three workarounds for this issue:
1: Add an extra import processing instruction thus:

<?import namespace="xforms" implementation="#FormsPlayer" ?>

2: Reorder the namespace declarations in the opening tag thus:

<html xmlns="http://www.w3.org/1999/xhtml" xmlns:xf="http://www.w3.org/2002/xforms" xmlns:xforms="http://www.w3.org/2002/xforms" >

3: Only use one namespace prefix for XForms in your document.

#2 submitted by Paul Butcher on Thu, 2007-10-04 12:10
Status:new» applied
#3 submitted by abb on Mon, 2007-10-08 17:52
Status:applied» new

Thx for identifying the issue. We can close this issue

#4 submitted by Paul Butcher on Wed, 2007-10-10 17:00
Status:new» closed