XForms Instance Debugging

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

XForms Instance Debugging

Ryan Puddephatt

Hi all,

            I’ve been stuck, like most, without having a way to see the contents of an instance or all instances in my page. I have now written an XSL that gives a drop down list of all the instance ids in the page and below this shows the formatted view of the selected instance. Although this only shows one instance at a time, it does allow you to change.

 

This is easy to implement, just place the attached file in /WEB-INF/resources/ops/pfc then place an oxf:xslt-2.0 processor in the xforms-epilogue.xpl file before the widget xslt (or you can replace it if you don’t use it).

 

Hope this is useful for some people, but could I ask if you make any amendments you share them with the community

 

Thanks

 

Ryan Puddephatt

Software Engineer

TFX Group - IT UK

1 Michaelson Square

Livingston

West Lothian

Scotand

EH54 7DP

 

* [hidden email]

( 01506 407 110

7  01506 407 108

 

 



--
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

instance-debugger.xsl (2K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

RE: XForms Instance Debugging

Marc.Benimeli
Thanks Ryan for this contribution.
 
I have tried it with success.
 
Marc


De : Ryan Puddephatt [mailto:[hidden email]]
Envoyé : jeudi 29 juin 2006 01:21
À : [hidden email]
Objet : [ops-users] XForms Instance Debugging

Hi all,

            I’ve been stuck, like most, without having a way to see the contents of an instance or all instances in my page. I have now written an XSL that gives a drop down list of all the instance ids in the page and below this shows the formatted view of the selected instance. Although this only shows one instance at a time, it does allow you to change.

 

This is easy to implement, just place the attached file in /WEB-INF/resources/ops/pfc then place an oxf:xslt-2.0 processor in the xforms-epilogue.xpl file before the widget xslt (or you can replace it if you don’t use it).

 

Hope this is useful for some people, but could I ask if you make any amendments you share them with the community

 

Thanks

 

Ryan Puddephatt

Software Engineer

TFX Group - IT UK

1 Michaelson Square

Livingston

West Lothian

Scotand

EH54 7DP

 

* [hidden email]

( 01506 407 110

7  01506 407 108

 

 



--
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
Reply | Threaded
Open this post in threaded view
|

Re: XForms Instance Debugging

Alessandro  Vernet
Administrator
In reply to this post by Ryan Puddephatt
Ryan,

Very nice. We are planning to create a "contribs" area on the Wiki to
host custom processors, examples, and other contributions. Would you
be OK to contribute this stylesheet and license it under LGPL, so we
can include it in this "contribs" area?

Alex

On 6/28/06, Ryan Puddephatt <[hidden email]> wrote:

>
>
>
>
> Hi all,
>
>             I've been stuck, like most, without having a way to see the
> contents of an instance or all instances in my page. I have now written an
> XSL that gives a drop down list of all the instance ids in the page and
> below this shows the formatted view of the selected instance. Although this
> only shows one instance at a time, it does allow you to change.
>
>
>
> This is easy to implement, just place the attached file in
> /WEB-INF/resources/ops/pfc then place an oxf:xslt-2.0 processor in the
> xforms-epilogue.xpl file before the widget xslt (or you can replace it if
> you don't use it).
>
>
>
> Hope this is useful for some people, but could I ask if you make any
> amendments you share them with the community
>
>
>
> Thanks
>
>
>
> Ryan Puddephatt
>
> Software Engineer
>
> TFX Group - IT UK
>
> 1 Michaelson Square
>
> Livingston
>
> West Lothian
>
> Scotand
>
> EH54 7DP
>
>
>
> * [hidden email]
>
> ( 01506 407 110
>
> 7  01506 407 108
>
>
>
>
>
> --
> 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
>
>
>
>

--
Blog (XML, Web apps, Open Source):
http://www.orbeon.com/blog/



--
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
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

RE: XForms Instance Debugging

Ryan Puddephatt
Alex,

That's not a problem, feel free to put it on here. I'm going to extend it
for multiple models soon, so I'll post that to the community when I have

Thanks

Ryan

Ryan Puddephatt
Software Engineer
TFX Group - IT UK
1 Michaelson Square
Livingston
West Lothian
Scotand
EH54 7DP
 
* [hidden email]
( 01506 407 110
7  01506 407 108
 

>-----Original Message-----
>From: [hidden email] [mailto:[hidden email]] On Behalf Of Alessandro
>Vernet
>Sent: 03 July 2006 23:37
>To: [hidden email]
>Subject: Re: [ops-users] XForms Instance Debugging
>
>Ryan,
>
>Very nice. We are planning to create a "contribs" area on the Wiki to
>host custom processors, examples, and other contributions. Would you
>be OK to contribute this stylesheet and license it under LGPL, so we
>can include it in this "contribs" area?
>
>Alex
>
>On 6/28/06, Ryan Puddephatt <[hidden email]> wrote:
>>
>>
>>
>>
>> Hi all,
>>
>>             I've been stuck, like most, without having a way to see the
>> contents of an instance or all instances in my page. I have now written
>an
>> XSL that gives a drop down list of all the instance ids in the page and
>> below this shows the formatted view of the selected instance. Although
>this
>> only shows one instance at a time, it does allow you to change.
>>
>>
>>
>> This is easy to implement, just place the attached file in
>> /WEB-INF/resources/ops/pfc then place an oxf:xslt-2.0 processor in the
>> xforms-epilogue.xpl file before the widget xslt (or you can replace it if
>> you don't use it).
>>
>>
>>
>> Hope this is useful for some people, but could I ask if you make any
>> amendments you share them with the community
>>
>>
>>
>> Thanks
>>
>>
>>
>> Ryan Puddephatt
>>
>> Software Engineer
>>
>> TFX Group - IT UK
>>
>> 1 Michaelson Square
>>
>> Livingston
>>
>> West Lothian
>>
>> Scotand
>>
>> EH54 7DP
>>
>>
>>
>> * [hidden email]
>>
>> ( 01506 407 110
>>
>> 7  01506 407 108
>>
>>
>>
>>
>>
>> --
>> 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
>>
>>
>>
>>
>
>
>--
>Blog (XML, Web apps, Open Source):
>http://www.orbeon.com/blog/




--
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
Reply | Threaded
Open this post in threaded view
|

Re: XForms Instance Debugging

Jimmy Royer
In reply to this post by Ryan Puddephatt

Thank you! it is nice for debugging!

Jimmy

Ryan Puddephatt wrote:

>
> Hi all,
>
> I’ve been stuck, like most, without having a way to see the contents
> of an instance or all instances in my page. I have now written an XSL
> that gives a drop down list of all the instance ids in the page and
> below this shows the formatted view of the selected instance. Although
> this only shows one instance at a time, it does allow you to change.
>
> This is easy to implement, just place the attached file in
> /WEB-INF/resources/ops/pfc then place an oxf:xslt-2.0 processor in the
> xforms-epilogue.xpl file before the widget xslt (or you can replace it
> if you don’t use it).
>
> Hope this is useful for some people, but could I ask if you make any
> amendments you share them with the community
>
> Thanks
>
> *Ryan Puddephatt*
>
> Software Engineer
>
> TFX Group - IT UK
>
> 1 Michaelson Square
>
> Livingston
>
> West Lothian
>
> Scotand
>
> EH54 7DP
>
> * [hidden email]
>
> ( 01506 407 110
>
> 7 01506 407 108
>



--
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
Reply | Threaded
Open this post in threaded view
|

RE: XForms Instance Debugging

Ryan Puddephatt
In reply to this post by Ryan Puddephatt
Hi all,
    I have made a few changes to the XForms Instance Debugger, for those that use it.
 
This now checks for a id on the models, you must have one else the stylesheet will terminate (this is for multiple models) so you will need to at least put @id="main-model" even if you don't use multiple models
 
As mentioned, it accounts for multiple models, currently there is not a way to specify the model in an xpath, so each model has its own instance display and a list of the instances found in that model. To make this easier to view I have collapsed these using xforms:switch/xforms:case
 
Another new feature is that it allows you to filter the instance view using xpath.
 
Based on an instance of
 
<instance>
    <groups>
        <group/>
        <group/>
    </groups>
</instance>
 
You can filter down to /groups, but /groups/group will cause an error because there are two root nodes, makes sure you don't do that!
 
You can do //element or /groups/group[1] so there are ways around the problems.
 
Hope this helps some
 
Ryan
 

Ryan Puddephatt
Software Engineer
 

Teleflex Group - IT UK
1 Michaelson Square
Livingston
West Lothian
Scotland
EH54 7DP
 
e> [hidden email]
t> +44(0)1506 407 110
f> +44(0)1506 407 108
w> www.teleflex.com

 


From: Ryan Puddephatt [mailto:[hidden email]]
Sent: 29 June 2006 00:21
To: [hidden email]
Subject: [ops-users] XForms Instance Debugging

Hi all,

            I’ve been stuck, like most, without having a way to see the contents of an instance or all instances in my page. I have now written an XSL that gives a drop down list of all the instance ids in the page and below this shows the formatted view of the selected instance. Although this only shows one instance at a time, it does allow you to change.

 

This is easy to implement, just place the attached file in /WEB-INF/resources/ops/pfc then place an oxf:xslt-2.0 processor in the xforms-epilogue.xpl file before the widget xslt (or you can replace it if you don’t use it).

 

Hope this is useful for some people, but could I ask if you make any amendments you share them with the community

 

Thanks

 

Ryan Puddephatt

Software Engineer

TFX Group - IT UK

1 Michaelson Square

Livingston

West Lothian

Scotand

EH54 7DP

 

* [hidden email]

( 01506 407 110

7  01506 407 108

 

 



--
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

instance-debugger.xsl (6K) Download Attachment