Inserting attributes from one instance to another

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

Inserting attributes from one instance to another

Winona Salesky-3
I've been using the firefox extntion for a while  and you used to be able to insert attributes from one instance to another using the following syntax:
 <xforms:trigger appearance="minimal" ref="self::node()[not(@type)]">
    <xforms:label>Add type</xforms:label>
     <xforms:insert ev:event="DOMActivate" context="instance('metadata')//mods:mods/ mods:titleInfo[index('titleInfo')]"
           origin="instance('template')/mods:titleInfo/@type"/>
</xforms:trigger>


This does not appear to work anymore, is my syntax wrong, or is this no longer supported?

Thanks.

-Winona
Reply | Threaded
Open this post in threaded view
|

Re: Inserting attributes from one instance to another

Charles F Wiecha

Do you have an extra blank in your context xpath or is that just a cut&paste issue? Charlie Wiecha


Inactive hide details for Winona Salesky ---10/23/2009 08:11:13 AM---I've been using the firefox extntion for a while  and you Winona Salesky ---10/23/2009 08:11:13 AM---I've been using the firefox extntion for a while and you used to be able to insert attributes from


From:

Winona Salesky <[hidden email]>

To:

[hidden email]

Date:

10/23/2009 08:11 AM

Subject:

Inserting attributes from one instance to another

Sent by:

[hidden email]




I've been using the firefox extntion for a while  and you used to be able to insert attributes from one instance to another using the following syntax:
 <xforms:trigger appearance="minimal" ref="self::node()[not(@type)]">
    <xforms:label>Add type</xforms:label>
     <xforms:insert ev:event="DOMActivate" context="instance('metadata')//mods:mods/ mods:titleInfo[index('titleInfo')]"
           origin="instance('template')/mods:titleInfo/@type"/>
</xforms:trigger>


This does not appear to work anymore, is my syntax wrong, or is this no longer supported?

Thanks.

-Winona


Reply | Threaded
Open this post in threaded view
|

Re: Inserting attributes from one instance to another

Winona Salesky-3
Sorry, that is just a cut and past issue. This code works in Orbeon, and I believe it used to work with the firefox extension, but I'm not sure when it stopped working.
-Winon

On Fri, Oct 23, 2009 at 8:55 AM, Charles F Wiecha <[hidden email]> wrote:

Do you have an extra blank in your context xpath or is that just a cut&paste issue? Charlie Wiecha


Inactive hide details for Winona Salesky ---10/23/2009 08:11:13 AM---I've been using the firefox extntion for a while  and you Winona Salesky ---10/23/2009 08:11:13 AM---I've been using the firefox extntion for a while and you used to be able to insert attributes from


From:

Winona Salesky <[hidden email]>

To:

[hidden email]

Date:

10/23/2009 08:11 AM

Subject:

Inserting attributes from one instance to another

Sent by:

[hidden email]




I've been using the firefox extntion for a while  and you used to be able to insert attributes from one instance to another using the following syntax:
 <xforms:trigger appearance="minimal" ref="self::node()[not(@type)]">
    <xforms:label>Add type</xforms:label>
     <xforms:insert ev:event="DOMActivate" context="instance('metadata')//mods:mods/ mods:titleInfo[index('titleInfo')]"
           origin="instance('template')/mods:titleInfo/@type"/>
</xforms:trigger>


This does not appear to work anymore, is my syntax wrong, or is this no longer supported?

Thanks.

-Winona



Reply | Threaded
Open this post in threaded view
|

Re: Inserting attributes from one instance to another

Aaron Reed
It seems like a bug in our code.  At least I could recreate your issue
with a testcase that I think is valid (fails in our code, works in
Orbeon).  I opened a bug on it ->
https://bugzilla.mozilla.org/show_bug.cgi?id=524164

--Aaron

Winona Salesky wrote:

> Sorry, that is just a cut and past issue. This code works in Orbeon, and
> I believe it used to work with the firefox extension, but I'm not sure
> when it stopped working.
> -Winon
>
> On Fri, Oct 23, 2009 at 8:55 AM, Charles F Wiecha <[hidden email]
> <mailto:[hidden email]>> wrote:
>
>     Do you have an extra blank in your context xpath or is that just a
>     cut&paste issue? Charlie Wiecha
>
>
>     Inactive hide details for Winona Salesky ---10/23/2009 08:11:13
>     AM---I've been using the firefox extntion for a while and you Winona
>     Salesky ---10/23/2009 08:11:13 AM---I've been using the firefox
>     extntion for a while and you used to be able to insert attributes from
>
>
>     From:
>     Winona Salesky <[hidden email] <mailto:[hidden email]>>
>
>     To:
>     [hidden email] <mailto:[hidden email]>
>
>     Date:
>     10/23/2009 08:11 AM
>
>     Subject:
>     Inserting attributes from one instance to another
>
>     Sent by:
>     [hidden email] <mailto:[hidden email]>
>
>     ------------------------------------------------------------------------
>
>
>
>     I've been using the firefox extntion for a while  and you used to be
>     able to insert attributes from one instance to another using the
>     following syntax:
>      <xforms:trigger appearance="minimal" ref="self::node()[not(@type)]">
>         <xforms:label>Add type</xforms:label>
>          <xforms:insert ev:event="DOMActivate"
>     context="instance('metadata')//mods:mods/
>     mods:titleInfo[index('titleInfo')]"
>                origin="instance('template')/mods:titleInfo/@type"/>
>     </xforms:trigger>
>
>
>     This does not appear to work anymore, is my syntax wrong, or is this
>     no longer supported?
>
>     Thanks.
>
>     -Winona
>
>



Reply | Threaded
Open this post in threaded view
|

Re: Inserting attributes from one instance to another

John Boyer

Hi Winona,

FWIW, in answer to the question "is this supported", your syntax does follow the pattern described in appendix B.4:
http://www.w3.org/TR/xforms11/#data-mutation-patterns-set-attribute

Cheers,
John M. Boyer, Ph.D.
STSM, Interactive Documents and Web 2.0 Applications
Chair, W3C Forms Working Group
Workplace, Portal and Collaboration Software
IBM Victoria Software Lab
E-Mail: [hidden email]  

Blog:
http://www.ibm.com/developerworks/blogs/page/JohnBoyer
Blog RSS feed:
http://www.ibm.com/developerworks/blogs/rss/JohnBoyer?flavor=rssdw




From: Aaron Reed <[hidden email]>
To: [hidden email]
Date: 10/23/2009 11:43 AM
Subject: Re: Inserting attributes from one instance to another





It seems like a bug in our code.  At least I could recreate your issue
with a testcase that I think is valid (fails in our code, works in
Orbeon).  I opened a bug on it ->
https://bugzilla.mozilla.org/show_bug.cgi?id=524164

--Aaron

Winona Salesky wrote:
> Sorry, that is just a cut and past issue. This code works in Orbeon, and
> I believe it used to work with the firefox extension, but I'm not sure
> when it stopped working.
> -Winon
>
> On Fri, Oct 23, 2009 at 8:55 AM, Charles F Wiecha <[hidden email]
> <
mailto:wiecha@...>> wrote:
>
>     Do you have an extra blank in your context xpath or is that just a
>     cut&paste issue? Charlie Wiecha
>
>
>     Inactive hide details for Winona Salesky ---10/23/2009 08:11:13
>     AM---I've been using the firefox extntion for a while and you Winona
>     Salesky ---10/23/2009 08:11:13 AM---I've been using the firefox
>     extntion for a while and you used to be able to insert attributes from
>
>
>     From:                
>     Winona Salesky <[hidden email] <
mailto:wsalesky@...>>
>
>     To:                
>     [hidden email] <
[hidden email]>
>
>     Date:                
>     10/23/2009 08:11 AM
>
>     Subject:                
>     Inserting attributes from one instance to another
>
>     Sent by:                
>     [hidden email] <
[hidden email]>
>
>     ------------------------------------------------------------------------
>
>
>
>     I've been using the firefox extntion for a while  and you used to be
>     able to insert attributes from one instance to another using the
>     following syntax:
>      <xforms:trigger appearance="minimal" ref="self::node()[not(@type)]">
>         <xforms:label>Add type</xforms:label>
>          <xforms:insert ev:event="DOMActivate"
>     context="instance('metadata')//mods:mods/
>     mods:titleInfo[index('titleInfo')]"
>                origin="instance('template')/mods:titleInfo/@type"/>
>     </xforms:trigger>
>
>
>     This does not appear to work anymore, is my syntax wrong, or is this
>     no longer supported?
>
>     Thanks.
>
>     -Winona
>
>





Reply | Threaded
Open this post in threaded view
|

Re: Inserting attributes from one instance to another

Winona Salesky-3
Thanks for the update.
-Winona

On Fri, Oct 23, 2009 at 2:49 PM, John Boyer <[hidden email]> wrote:

Hi Winona,

FWIW, in answer to the question "is this supported", your syntax does follow the pattern described in appendix B.4:
http://www.w3.org/TR/xforms11/#data-mutation-patterns-set-attribute

Cheers,
John M. Boyer, Ph.D.
STSM, Interactive Documents and Web 2.0 Applications
Chair, W3C Forms Working Group
Workplace, Portal and Collaboration Software
IBM Victoria Software Lab
E-Mail: [hidden email]  

Blog:
http://www.ibm.com/developerworks/blogs/page/JohnBoyer
Blog RSS feed:
http://www.ibm.com/developerworks/blogs/rss/JohnBoyer?flavor=rssdw




From: Aaron Reed <[hidden email]>
To: [hidden email]
Date: 10/23/2009 11:43 AM
Subject: Re: Inserting attributes from one instance to another





It seems like a bug in our code.  At least I could recreate your issue
with a testcase that I think is valid (fails in our code, works in
Orbeon).  I opened a bug on it ->
https://bugzilla.mozilla.org/show_bug.cgi?id=524164

--Aaron


Winona Salesky wrote:
> Sorry, that is just a cut and past issue. This code works in Orbeon, and
> I believe it used to work with the firefox extension, but I'm not sure
> when it stopped working.
> -Winon
>
> On Fri, Oct 23, 2009 at 8:55 AM, Charles F Wiecha <[hidden email]
> <
[hidden email]>> wrote:

>
>     Do you have an extra blank in your context xpath or is that just a
>     cut&paste issue? Charlie Wiecha
>
>
>     Inactive hide details for Winona Salesky ---10/23/2009 08:11:13
>     AM---I've been using the firefox extntion for a while and you Winona
>     Salesky ---10/23/2009 08:11:13 AM---I've been using the firefox
>     extntion for a while and you used to be able to insert attributes from
>
>
>     From:                
>     Winona Salesky <[hidden email] <
[hidden email]>>
>
>     To:                
>     [hidden email] <
[hidden email]>

>
>     Date:                
>     10/23/2009 08:11 AM
>
>     Subject:                
>     Inserting attributes from one instance to another
>
>     Sent by:                
>     [hidden email] <
[hidden email]>

>
>     ------------------------------------------------------------------------
>
>
>
>     I've been using the firefox extntion for a while  and you used to be
>     able to insert attributes from one instance to another using the
>     following syntax:
>      <xforms:trigger appearance="minimal" ref="self::node()[not(@type)]">
>         <xforms:label>Add type</xforms:label>
>          <xforms:insert ev:event="DOMActivate"
>     context="instance('metadata')//mods:mods/
>     mods:titleInfo[index('titleInfo')]"
>                origin="instance('template')/mods:titleInfo/@type"/>
>     </xforms:trigger>
>
>
>     This does not appear to work anymore, is my syntax wrong, or is this
>     no longer supported?
>
>     Thanks.
>
>     -Winona
>
>