Insert Origin namespace problem

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Insert Origin namespace problem

FraserHore-2
I am creating a form to edit xforms and I want to insert model
elements and controls from templates in a xformsControls document.
Unfortunately the use of the xforms as a namespace for the edited
document and the controls document creates a problem and the template
item won't be inserted.  If i use some other namespace, such as
xmlns:my="http://www.example.com", it works fine.  Any assistance
would be much appreciated!

This is what I want but doesn't work:

OriginTest.xml
<code>
<?xml version="1.0" encoding="UTF-8"?>

<html xmlns="http://www.w3.org/1999/xhtml" xmlns:xhtml="http://
www.w3.org/1999/xhtml"
    xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:xsd="http://
www.w3.org/2001/XMLSchema"
    xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:my="http://
www.example.com">

    <head>
        <title>Test</title>
        <xforms:model>
            <xforms:instance src="TestForm.xml" id="instanceForm" />
            <xforms:instance src="TestControls.xml"
id="instanceControls" />
        </xforms:model>
        <link href="default.css" rel="stylesheet" />
    </head>

    <body>

        <xforms:group ref="/xhtml:html/xhtml:head/xforms:model">
            <xforms:label>Instances</xforms:label>
            <xforms:repeat nodeset="xforms:instance"
id="repeatInstances">
                <xforms:label>Instance</xforms:label>
                <xforms:input ref="@src">
                    <xforms:label>SRC</xforms:label>
                </xforms:input>
                <xforms:input ref="@id">
                    <xforms:label>ID</xforms:label>
                </xforms:input>
            </xforms:repeat>

            <xforms:trigger>
                <xforms:label>Add an Instance</xforms:label>
                <xforms:insert
                    context="/xhtml:html/xhtml:head/xforms:model"
                    nodeset="xforms:instance"
origin="instance('instanceControls')//xforms:instance"
                    ev:event="DOMActivate" />
            </xforms:trigger>

        </xforms:group>

    </body>
</html>
</code>

TestForm.xml
<code>
<?xml version="1.0" encoding="UTF-8"?>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:xforms="http://
www.w3.org/2002/xforms" xmlns:my="http://www.example.com">
    <head>
        <xforms:model>
            <xforms:instance src="somedoc.xml" id="instance1" />
            <xforms:instance src="anotherdoc.xml" id="instance2" />
        </xforms:model>
    </head>
    <body>Test</body>
</html>
</code>

TestControls
<code>
<?xml version="1.0" encoding="UTF-8"?>
<xforms:group xmlns:xforms="http://www.w3.org/2002/xforms"
xmlns:my="http://www.example.com">
    <xforms:model>
        <xforms:instance src="Enter Document Name" id=""/>
    </xforms:model>
</xforms:group>
</code>

This, however does work.  The only difference is that for TestForm.xml
and TestControls.xml I changed the namespace for the elements to my:.

OriginTest.xml
<code>
<?xml version="1.0" encoding="UTF-8"?>

<html xmlns="http://www.w3.org/1999/xhtml" xmlns:xhtml="http://
www.w3.org/1999/xhtml"
    xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:xsd="http://
www.w3.org/2001/XMLSchema"
    xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:my="http://
www.example.com">

    <head>
        <title>Test</title>
        <xforms:model>
            <xforms:instance src="TestForm.xml" id="instanceForm" />
            <xforms:instance src="TestControls.xml"
id="instanceControls" />
        </xforms:model>
        <link href="default.css" rel="stylesheet" />
    </head>

    <body>

        <xforms:group ref="/xhtml:html/xhtml:head/my:model">
            <xforms:label>Instances</xforms:label>
            <xforms:repeat nodeset="my:instance" id="repeatInstances">
                <xforms:label>Instance</xforms:label>
                <xforms:input ref="@src">
                    <xforms:label>SRC</xforms:label>
                </xforms:input>
                <xforms:input ref="@id">
                    <xforms:label>ID</xforms:label>
                </xforms:input>
            </xforms:repeat>

            <xforms:trigger>
                <xforms:label>Add an Instance</xforms:label>
                <xforms:insert
                    context="/xhtml:html/xhtml:head/my:model"
                    nodeset="my:instance"
origin="instance('instanceControls')//my:instance"
                    ev:event="DOMActivate" />
            </xforms:trigger>

        </xforms:group>

    </body>
</html>
</code>

TestForm.xml
<code>
<?xml version="1.0" encoding="UTF-8"?>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:xforms="http://
www.w3.org/2002/xforms" xmlns:my="http://www.example.com">
    <head>
        <my:model>
            <my:instance src="somedoc.xml" id="instance1" />
            <my:instance src="anotherdoc.xml" id="instance2" />
        </my:model>
    </head>
    <body>Test</body>
</html>
</code>

TestControls
<code>
<?xml version="1.0" encoding="UTF-8"?>
<my:group xmlns:xforms="http://www.w3.org/2002/xforms"
xmlns:my="http://www.example.com">
    <my:model>
        <my:instance src="Enter Document Name" id=""/>
    </my:model>
</my:group>
</code>

_______________________________________________
dev-tech-xforms mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-tech-xforms
Reply | Threaded
Open this post in threaded view
|

Re: Insert Origin namespace problem

FraserHore-2
This problem appears to be specific to the Firefox xforms extension
because it works in the Orbeon sandbox.  It seems that the extension
doesn't like to have elements from the xforms namespace inside an
instance.  I tested the same case using an input control instead of an
instance and although Firefox will repeat through the existing input
controls, it will not insert a new one.  So it appears that you can't
insert xforms model or control elements from a template instance.

Fraser



On Sep 4, 2:07 am, Fraser <[hidden email]> wrote:

> I am creating a form to edit xforms and I want to insert model
> elements and controls from templates in a xformsControls document.
> Unfortunately the use of the xforms as a namespace for the edited
> document and the controls document creates a problem and the template
> item won't be inserted.  If i use some other namespace, such as
> xmlns:my="http://www.example.com", it works fine.  Any assistance
> would be much appreciated!
>
> This is what I want but doesn't work:
>
> OriginTest.xml
> <code>
> <?xml version="1.0" encoding="UTF-8"?>
>
> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:xhtml="http://www.w3.org/1999/xhtml"
>     xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
>     xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:my="http://www.example.com">
>
>     <head>
>         <title>Test</title>
>         <xforms:model>
>             <xforms:instance src="TestForm.xml" id="instanceForm" />
>             <xforms:instance src="TestControls.xml"
> id="instanceControls" />
>         </xforms:model>
>         <link href="default.css" rel="stylesheet" />
>     </head>
>
>     <body>
>
>         <xforms:group ref="/xhtml:html/xhtml:head/xforms:model">
>             <xforms:label>Instances</xforms:label>
>             <xforms:repeat nodeset="xforms:instance"
> id="repeatInstances">
>                 <xforms:label>Instance</xforms:label>
>                 <xforms:input ref="@src">
>                     <xforms:label>SRC</xforms:label>
>                 </xforms:input>
>                 <xforms:input ref="@id">
>                     <xforms:label>ID</xforms:label>
>                 </xforms:input>
>             </xforms:repeat>
>
>             <xforms:trigger>
>                 <xforms:label>Add an Instance</xforms:label>
>                 <xforms:insert
>                     context="/xhtml:html/xhtml:head/xforms:model"
>                     nodeset="xforms:instance"
> origin="instance('instanceControls')//xforms:instance"
>                     ev:event="DOMActivate" />
>             </xforms:trigger>
>
>         </xforms:group>
>
>     </body>
> </html>
> </code>
>
> TestForm.xml
> <code>
> <?xml version="1.0" encoding="UTF-8"?>
> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:my="http://www.example.com">
>     <head>
>         <xforms:model>
>             <xforms:instance src="somedoc.xml" id="instance1" />
>             <xforms:instance src="anotherdoc.xml" id="instance2" />
>         </xforms:model>
>     </head>
>     <body>Test</body>
> </html>
> </code>
>
> TestControls
> <code>
> <?xml version="1.0" encoding="UTF-8"?>
> <xforms:group xmlns:xforms="http://www.w3.org/2002/xforms"
> xmlns:my="http://www.example.com">
>     <xforms:model>
>         <xforms:instance src="Enter Document Name" id=""/>
>     </xforms:model>
> </xforms:group>
> </code>
>
> This, however does work.  The only difference is that for TestForm.xml
> and TestControls.xml I changed the namespace for the elements to my:.
>
> OriginTest.xml
> <code>
> <?xml version="1.0" encoding="UTF-8"?>
>
> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:xhtml="http://www.w3.org/1999/xhtml"
>     xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
>     xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:my="http://www.example.com">
>
>     <head>
>         <title>Test</title>
>         <xforms:model>
>             <xforms:instance src="TestForm.xml" id="instanceForm" />
>             <xforms:instance src="TestControls.xml"
> id="instanceControls" />
>         </xforms:model>
>         <link href="default.css" rel="stylesheet" />
>     </head>
>
>     <body>
>
>         <xforms:group ref="/xhtml:html/xhtml:head/my:model">
>             <xforms:label>Instances</xforms:label>
>             <xforms:repeat nodeset="my:instance" id="repeatInstances">
>                 <xforms:label>Instance</xforms:label>
>                 <xforms:input ref="@src">
>                     <xforms:label>SRC</xforms:label>
>                 </xforms:input>
>                 <xforms:input ref="@id">
>                     <xforms:label>ID</xforms:label>
>                 </xforms:input>
>             </xforms:repeat>
>
>             <xforms:trigger>
>                 <xforms:label>Add an Instance</xforms:label>
>                 <xforms:insert
>                     context="/xhtml:html/xhtml:head/my:model"
>                     nodeset="my:instance"
> origin="instance('instanceControls')//my:instance"
>                     ev:event="DOMActivate" />
>             </xforms:trigger>
>
>         </xforms:group>
>
>     </body>
> </html>
> </code>
>
> TestForm.xml
> <code>
> <?xml version="1.0" encoding="UTF-8"?>
> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:my="http://www.example.com">
>     <head>
>         <my:model>
>             <my:instance src="somedoc.xml" id="instance1" />
>             <my:instance src="anotherdoc.xml" id="instance2" />
>         </my:model>
>     </head>
>     <body>Test</body>
> </html>
> </code>
>
> TestControls
> <code>
> <?xml version="1.0" encoding="UTF-8"?>
> <my:group xmlns:xforms="http://www.w3.org/2002/xforms"
> xmlns:my="http://www.example.com">
>     <my:model>
>         <my:instance src="Enter Document Name" id=""/>
>     </my:model>
> </my:group>
> </code>

_______________________________________________
dev-tech-xforms mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-tech-xforms
Reply | Threaded
Open this post in threaded view
|

Re: Insert Origin namespace problem

Aaron Reed
We've already started looking at this.  It looks like a bug to us.
Please open a bug and attach a testcase.

Thanks,
--Aaron


Fraser wrote:

> This problem appears to be specific to the Firefox xforms extension
> because it works in the Orbeon sandbox.  It seems that the extension
> doesn't like to have elements from the xforms namespace inside an
> instance.  I tested the same case using an input control instead of an
> instance and although Firefox will repeat through the existing input
> controls, it will not insert a new one.  So it appears that you can't
> insert xforms model or control elements from a template instance.
>
> Fraser
>
>
>
> On Sep 4, 2:07 am, Fraser <[hidden email]> wrote:
>> I am creating a form to edit xforms and I want to insert model
>> elements and controls from templates in a xformsControls document.
>> Unfortunately the use of the xforms as a namespace for the edited
>> document and the controls document creates a problem and the template
>> item won't be inserted.  If i use some other namespace, such as
>> xmlns:my="http://www.example.com", it works fine.  Any assistance
>> would be much appreciated!
>>
>> This is what I want but doesn't work:
>>
>> OriginTest.xml
>> <code>
>> <?xml version="1.0" encoding="UTF-8"?>
>>
>> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:xhtml="http://www.w3.org/1999/xhtml"
>>     xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
>>     xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:my="http://www.example.com">
>>
>>     <head>
>>         <title>Test</title>
>>         <xforms:model>
>>             <xforms:instance src="TestForm.xml" id="instanceForm" />
>>             <xforms:instance src="TestControls.xml"
>> id="instanceControls" />
>>         </xforms:model>
>>         <link href="default.css" rel="stylesheet" />
>>     </head>
>>
>>     <body>
>>
>>         <xforms:group ref="/xhtml:html/xhtml:head/xforms:model">
>>             <xforms:label>Instances</xforms:label>
>>             <xforms:repeat nodeset="xforms:instance"
>> id="repeatInstances">
>>                 <xforms:label>Instance</xforms:label>
>>                 <xforms:input ref="@src">
>>                     <xforms:label>SRC</xforms:label>
>>                 </xforms:input>
>>                 <xforms:input ref="@id">
>>                     <xforms:label>ID</xforms:label>
>>                 </xforms:input>
>>             </xforms:repeat>
>>
>>             <xforms:trigger>
>>                 <xforms:label>Add an Instance</xforms:label>
>>                 <xforms:insert
>>                     context="/xhtml:html/xhtml:head/xforms:model"
>>                     nodeset="xforms:instance"
>> origin="instance('instanceControls')//xforms:instance"
>>                     ev:event="DOMActivate" />
>>             </xforms:trigger>
>>
>>         </xforms:group>
>>
>>     </body>
>> </html>
>> </code>
>>
>> TestForm.xml
>> <code>
>> <?xml version="1.0" encoding="UTF-8"?>
>> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:my="http://www.example.com">
>>     <head>
>>         <xforms:model>
>>             <xforms:instance src="somedoc.xml" id="instance1" />
>>             <xforms:instance src="anotherdoc.xml" id="instance2" />
>>         </xforms:model>
>>     </head>
>>     <body>Test</body>
>> </html>
>> </code>
>>
>> TestControls
>> <code>
>> <?xml version="1.0" encoding="UTF-8"?>
>> <xforms:group xmlns:xforms="http://www.w3.org/2002/xforms"
>> xmlns:my="http://www.example.com">
>>     <xforms:model>
>>         <xforms:instance src="Enter Document Name" id=""/>
>>     </xforms:model>
>> </xforms:group>
>> </code>
>>
>> This, however does work.  The only difference is that for TestForm.xml
>> and TestControls.xml I changed the namespace for the elements to my:.
>>
>> OriginTest.xml
>> <code>
>> <?xml version="1.0" encoding="UTF-8"?>
>>
>> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:xhtml="http://www.w3.org/1999/xhtml"
>>     xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
>>     xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:my="http://www.example.com">
>>
>>     <head>
>>         <title>Test</title>
>>         <xforms:model>
>>             <xforms:instance src="TestForm.xml" id="instanceForm" />
>>             <xforms:instance src="TestControls.xml"
>> id="instanceControls" />
>>         </xforms:model>
>>         <link href="default.css" rel="stylesheet" />
>>     </head>
>>
>>     <body>
>>
>>         <xforms:group ref="/xhtml:html/xhtml:head/my:model">
>>             <xforms:label>Instances</xforms:label>
>>             <xforms:repeat nodeset="my:instance" id="repeatInstances">
>>                 <xforms:label>Instance</xforms:label>
>>                 <xforms:input ref="@src">
>>                     <xforms:label>SRC</xforms:label>
>>                 </xforms:input>
>>                 <xforms:input ref="@id">
>>                     <xforms:label>ID</xforms:label>
>>                 </xforms:input>
>>             </xforms:repeat>
>>
>>             <xforms:trigger>
>>                 <xforms:label>Add an Instance</xforms:label>
>>                 <xforms:insert
>>                     context="/xhtml:html/xhtml:head/my:model"
>>                     nodeset="my:instance"
>> origin="instance('instanceControls')//my:instance"
>>                     ev:event="DOMActivate" />
>>             </xforms:trigger>
>>
>>         </xforms:group>
>>
>>     </body>
>> </html>
>> </code>
>>
>> TestForm.xml
>> <code>
>> <?xml version="1.0" encoding="UTF-8"?>
>> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:my="http://www.example.com">
>>     <head>
>>         <my:model>
>>             <my:instance src="somedoc.xml" id="instance1" />
>>             <my:instance src="anotherdoc.xml" id="instance2" />
>>         </my:model>
>>     </head>
>>     <body>Test</body>
>> </html>
>> </code>
>>
>> TestControls
>> <code>
>> <?xml version="1.0" encoding="UTF-8"?>
>> <my:group xmlns:xforms="http://www.w3.org/2002/xforms"
>> xmlns:my="http://www.example.com">
>>     <my:model>
>>         <my:instance src="Enter Document Name" id=""/>
>>     </my:model>
>> </my:group>
>> </code>
>
_______________________________________________
dev-tech-xforms mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-tech-xforms
Reply | Threaded
Open this post in threaded view
|

Re: Insert Origin namespace problem

FraserHore-2
Hi Aaron,

I'd be happy to file a bug for this but i'm not sure exactly where or
how.  Could you please provide a link?

Thanks,

Fraser

On Sep 13, 5:47 pm, Aaron Reed <[hidden email]> wrote:

> We've already started looking at this.  It looks like a bug to us.
> Please open a bug and attach a testcase.
>
> Thanks,
> --Aaron
>
> Fraser wrote:
> > This problem appears to be specific to the Firefox xforms extension
> > because it works in the Orbeon sandbox.  It seems that the extension
> > doesn't like to have elements from the xforms namespace inside an
> > instance.  I tested the same case using an input control instead of an
> > instance and although Firefox will repeat through the existing input
> > controls, it will not insert a new one.  So it appears that you can't
> > insert xforms model or control elements from a template instance.
>
> > Fraser
>
> > On Sep 4, 2:07 am, Fraser <[hidden email]> wrote:
> >> I am creating a form to edit xforms and I want to insert model
> >> elements and controls from templates in a xformsControls document.
> >> Unfortunately the use of the xforms as a namespace for the edited
> >> document and the controls document creates a problem and the template
> >> item won't be inserted.  If i use some other namespace, such as
> >> xmlns:my="http://www.example.com", it works fine.  Any assistance
> >> would be much appreciated!
>
> >> This is what I want but doesn't work:
>
> >> OriginTest.xml
> >> <code>
> >> <?xml version="1.0" encoding="UTF-8"?>
>
> >> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:xhtml="http://www.w3.org/1999/xhtml"
> >>     xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> >>     xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:my="http://www.example.com">
>
> >>     <head>
> >>         <title>Test</title>
> >>         <xforms:model>
> >>             <xforms:instance src="TestForm.xml" id="instanceForm" />
> >>             <xforms:instance src="TestControls.xml"
> >> id="instanceControls" />
> >>         </xforms:model>
> >>         <link href="default.css" rel="stylesheet" />
> >>     </head>
>
> >>     <body>
>
> >>         <xforms:group ref="/xhtml:html/xhtml:head/xforms:model">
> >>             <xforms:label>Instances</xforms:label>
> >>             <xforms:repeat nodeset="xforms:instance"
> >> id="repeatInstances">
> >>                 <xforms:label>Instance</xforms:label>
> >>                 <xforms:input ref="@src">
> >>                     <xforms:label>SRC</xforms:label>
> >>                 </xforms:input>
> >>                 <xforms:input ref="@id">
> >>                     <xforms:label>ID</xforms:label>
> >>                 </xforms:input>
> >>             </xforms:repeat>
>
> >>             <xforms:trigger>
> >>                 <xforms:label>Add an Instance</xforms:label>
> >>                 <xforms:insert
> >>                     context="/xhtml:html/xhtml:head/xforms:model"
> >>                     nodeset="xforms:instance"
> >> origin="instance('instanceControls')//xforms:instance"
> >>                     ev:event="DOMActivate" />
> >>             </xforms:trigger>
>
> >>         </xforms:group>
>
> >>     </body>
> >> </html>
> >> </code>
>
> >> TestForm.xml
> >> <code>
> >> <?xml version="1.0" encoding="UTF-8"?>
> >> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:my="http://www.example.com">
> >>     <head>
> >>         <xforms:model>
> >>             <xforms:instance src="somedoc.xml" id="instance1" />
> >>             <xforms:instance src="anotherdoc.xml" id="instance2" />
> >>         </xforms:model>
> >>     </head>
> >>     <body>Test</body>
> >> </html>
> >> </code>
>
> >> TestControls
> >> <code>
> >> <?xml version="1.0" encoding="UTF-8"?>
> >> <xforms:group xmlns:xforms="http://www.w3.org/2002/xforms"
> >> xmlns:my="http://www.example.com">
> >>     <xforms:model>
> >>         <xforms:instance src="Enter Document Name" id=""/>
> >>     </xforms:model>
> >> </xforms:group>
> >> </code>
>
> >> This, however does work.  The only difference is that for TestForm.xml
> >> and TestControls.xml I changed the namespace for the elements to my:.
>
> >> OriginTest.xml
> >> <code>
> >> <?xml version="1.0" encoding="UTF-8"?>
>
> >> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:xhtml="http://www.w3.org/1999/xhtml"
> >>     xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> >>     xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:my="http://www.example.com">
>
> >>     <head>
> >>         <title>Test</title>
> >>         <xforms:model>
> >>             <xforms:instance src="TestForm.xml" id="instanceForm" />
> >>             <xforms:instance src="TestControls.xml"
> >> id="instanceControls" />
> >>         </xforms:model>
> >>         <link href="default.css" rel="stylesheet" />
> >>     </head>
>
> >>     <body>
>
> >>         <xforms:group ref="/xhtml:html/xhtml:head/my:model">
> >>             <xforms:label>Instances</xforms:label>
> >>             <xforms:repeat nodeset="my:instance" id="repeatInstances">
> >>                 <xforms:label>Instance</xforms:label>
> >>                 <xforms:input ref="@src">
> >>                     <xforms:label>SRC</xforms:label>
> >>                 </xforms:input>
> >>                 <xforms:input ref="@id">
> >>                     <xforms:label>ID</xforms:label>
> >>                 </xforms:input>
> >>             </xforms:repeat>
>
> >>             <xforms:trigger>
> >>                 <xforms:label>Add an Instance</xforms:label>
> >>                 <xforms:insert
> >>                     context="/xhtml:html/xhtml:head/my:model"
> >>                     nodeset="my:instance"
> >> origin="instance('instanceControls')//my:instance"
> >>                     ev:event="DOMActivate" />
> >>             </xforms:trigger>
>
> >>         </xforms:group>
>
> >>     </body>
> >> </html>
> >> </code>
>
> >> TestForm.xml
> >> <code>
> >> <?xml version="1.0" encoding="UTF-8"?>
> >> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:my="http://www.example.com">
> >>     <head>
> >>         <my:model>
> >>             <my:instance src="somedoc.xml" id="instance1" />
> >>             <my:instance src="anotherdoc.xml" id="instance2" />
> >>         </my:model>
> >>     </head>
> >>     <body>Test</body>
> >> </html>
> >> </code>
>
> >> TestControls
> >> <code>
> >> <?xml version="1.0" encoding="UTF-8"?>
> >> <my:group xmlns:xforms="http://www.w3.org/2002/xforms"
> >> xmlns:my="http://www.example.com">
> >>     <my:model>
> >>         <my:instance src="Enter Document Name" id=""/>
> >>     </my:model>
> >> </my:group>
> >> </code>



_______________________________________________
dev-tech-xforms mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-tech-xforms
Reply | Threaded
Open this post in threaded view
|

RE: Insert Origin namespace problem

Clark, John
Fraser,

> I'd be happy to file a bug for this but i'm not sure exactly where or
> how.  Could you please provide a link?

Certainly.  The starting point is Mozilla's Bugzilla <https://bugzilla.mozilla.org/>, which records and organizes bugs, feature requests, and development discussions for the whole Mozilla project.  It is generally suggested that you try to determine if there already exists a bug report covering a similar issue.  To do that, use the "Search" link from the home page.  I recommend the "Advanced Search" option, choosing "Core" as the "Product" and "XForms" as the "Component" (and then filling in any other fields that may help narrow your search).

If you're unable to locate a report for the same bug, you can go ahead and submit a new report.  As it says on the home page, you'll need an account in order to post a bug.  After you've registered an account, choose the "Report a bug" link from the main page or the "New" link from any subpage.  Bugzilla will ask you, "Which product is affected by the problem you would like to report?"  Choose "Other Products".  Under "Components", choose "Core".  For the "Component" field, choose "XForms".  Follow the instructions to fill in the other fields.

If you find a report for a problem similar to yours, you may want to add a comment or an additional test case to that report, or vote for the bug in order to give it a bit more weight.

Take care,

    John L. Clark

===================================

Cleveland Clinic is ranked one of the top hospitals
in America by U.S. News & World Report (2007).  
Visit us online at http://www.clevelandclinic.org for
a complete listing of our services, staff and
locations.


Confidentiality Note:  This message is intended for use
only by the individual or entity to which it is addressed
and may contain information that is privileged,
confidential, and exempt from disclosure under applicable
law.  If the reader of this message is not the intended
recipient or the employee or agent responsible for
delivering the message to the intended recipient, you are
hereby notified that any dissemination, distribution or
copying of this communication is strictly prohibited.  If
you have received this communication in error,  please
contact the sender immediately and destroy the material in
its entirety, whether electronic or hard copy.  Thank you.


_______________________________________________
dev-tech-xforms mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-tech-xforms
Reply | Threaded
Open this post in threaded view
|

Re: Insert Origin namespace problem

FraserHore-2
In reply to this post by FraserHore-2
Ok I've filed a bug for this and put in a test case.  Thanks for the
instructions!  Let me know if there is anything else i can do to
help.


On Sep 14, 9:14 am, "Clark, John" <[hidden email]> wrote:

> Fraser,
>
> > I'd be happy to file a bug for this but i'm not sure exactly where or
> > how.  Could you please provide a link?
>
> Certainly.  The starting point is Mozilla's Bugzilla <https://bugzilla.mozilla.org/>, which records and organizes bugs, feature requests, and development discussions for the whole Mozilla project.  It is generally suggested that you try to determine if there already exists a bug report covering a similar issue.  To do that, use the "Search" link from the home page.  I recommend the "Advanced Search" option, choosing "Core" as the "Product" and "XForms" as the "Component" (and then filling in any other fields that may help narrow your search).
>
> If you're unable to locate a report for the same bug, you can go ahead and submit a new report.  As it says on the home page, you'll need an account in order to post a bug.  After you've registered an account, choose the "Report a bug" link from the main page or the "New" link from any subpage.  Bugzilla will ask you, "Which product is affected by the problem you would like to report?"  Choose "Other Products".  Under "Components", choose "Core".  For the "Component" field, choose "XForms".  Follow the instructions to fill in the other fields.
>
> If you find a report for a problem similar to yours, you may want to add a comment or an additional test case to that report, or vote for the bug in order to give it a bit more weight.
>
> Take care,
>
>     John L. Clark
>
> ===================================
>
> Cleveland Clinic is ranked one of the top hospitals
> in America by U.S. News & World Report (2007).
> Visit us online athttp://www.clevelandclinic.orgfor
> a complete listing of our services, staff and
> locations.
>
> Confidentiality Note:  This message is intended for use
> only by the individual or entity to which it is addressed
> and may contain information that is privileged,
> confidential, and exempt from disclosure under applicable
> law.  If the reader of this message is not the intended
> recipient or the employee or agent responsible for
> delivering the message to the intended recipient, you are
> hereby notified that any dissemination, distribution or
> copying of this communication is strictly prohibited.  If
> you have received this communication in error,  please
> contact the sender immediately and destroy the material in
> its entirety, whether electronic or hard copy.  Thank you.


_______________________________________________
dev-tech-xforms mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-tech-xforms