Missing some debug

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

Missing some debug

Alex Boisvert-3
Hi,

I'm trying to debug a pipeline with an XSL transform defined inside a for-each, such as:

<p:processor name="oxf:xslt">
    <p:input name="data" href="#instance" debug="instance"/>
    <p:input name="foo" href="#foo" debug="foo"/>
    <p:input name="current" href="current()" debug="current"/>
    <p:input name="bar" href="#bar" debug="bar"/>
    <p:input name="config">
        <xsl:stylesheet version="2.0">
            <!-- skipped -->
        </xsl:stylesheet>
    </p:input>
    <p:output name="data" id="myOutput"/>
</p:processor>


But I've noticed only some of the inputs are displayed in the log...  For instance, I see "foo" but not "bar".

Any idea why this would be happening?

cheers,
alex



--
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: Missing some debug

Daniel E. Renfer
I can't really tell from your example, but it could be because input bar is never read. Orbeon Forms, despite the top-down impression of XPL works backwards. It starts at the outputs, discovers what processor it needs to create that input, and tries to run that processor. That processor determines what processors are needed to crate the relevant output. So on and so forth.

This doesn't apply for @debug attributes. They will log the instance when data passes through them, but they won't trigger the dependency if that input is not needed.

If I'm wrong, and you are indeed consuming input "bar"... then I don't know. We'd probably need to see more of your code.

--
Daniel E. Renfer
http://kronkltd.net/

On 6/20/07, Alex Boisvert <[hidden email]> wrote:
Hi,

I'm trying to debug a pipeline with an XSL transform defined inside a for-each, such as:

<p:processor name="oxf:xslt">
    <p:input name="data" href="#instance" debug="instance"/>
    <p:input name="foo" href="#foo" debug="foo"/>
    <p:input name="current" href="current()" debug="current"/>
    <p:input name="bar" href="#bar" debug="bar"/>
    <p:input name="config">
        <xsl:stylesheet version="2.0">
            <!-- skipped -->
        </xsl:stylesheet>
    </p:input>
    <p:output name="data" id="myOutput"/>
</p:processor>


But I've noticed only some of the inputs are displayed in the log...  For instance, I see "foo" but not "bar".

Any idea why this would be happening?

cheers,
alex



--
You receive this message as a subscriber of the <img style="border: medium none ; cursor: pointer;" title="send email to //ops-users@objectweb.org/ via gmail" src="data:image/bmp;base64,Qk1GAgAAAAAAADYAAAAoAAAAEAAAAAsAAAABABgAAAAAABACAADEDgAAxA4AAAAAAAAAAAAAODjaODjap6f5p6f5p6f5p6f5p6f5p6f5p6f5p6f5p6f5p6f5p6f5p6f5ODjaODjaODjaODja4uL%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F4uL%2FODjaODjaODjaODjap6f54uL%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F4uL%2Fp6f5ODjaODjaODjaODja4uL%2Fp6f54uL%2F%2F%2F%2F%2F%2F%2F%2F%2FgYHygYHy%2F%2F%2F%2F%2F%2F%2F%2F4uL%2Fp6f54uL%2FODjaODjaODjaODja%2F%2F%2F%2F4uL%2Fp6f5trb%2FgYHyWlrpWlrpgYHytrb%2Fp6f54uL%2F%2F%2F%2F%2FODjaODjaODjaODja%2F%2F%2F%2F%2F%2F%2F%2Ftrb%2FgYHyWlrpODjaODjaWlrpgYHytrb%2F%2F%2F%2F%2F%2F%2F%2F%2FODjaODjaODjaODja%2F%2F%2F%2F%2F%2F%2F%2FgYHyWlrpODjatrb%2Ftrb%2FODjaWlrpgYHy%2F%2F%2F%2F%2F%2F%2F%2FODjaODjaODjaODja%2F%2F%2F%2FgYHyWlrpODjatrb%2F%2F%2F%2F%2F%2F%2F%2F%2Ftrb%2FODjaWlrpgYHy%2F%2F%2F%2FODjaODjaODjaODjagYHyWlrpODjatrb%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2Ftrb%2FODjaWlrpgYHyODjaODjaODjaODjaODjaODjatrb%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2Ftrb%2FODjaODjaODjaODjaODjaODjaODjagYHyp6f5p6f5p6f5p6f5p6f5p6f5p6f5p6f5gYHyODjaODjaODja"> [hidden email] mailing list.
To unsubscribe: mailto:<img style="border: medium none ; cursor: pointer;" title="send email to //ops-users-unsubscribe@objectweb.org/ via gmail" src="data:image/bmp;base64,Qk1GAgAAAAAAADYAAAAoAAAAEAAAAAsAAAABABgAAAAAABACAADEDgAAxA4AAAAAAAAAAAAAODjaODjap6f5p6f5p6f5p6f5p6f5p6f5p6f5p6f5p6f5p6f5p6f5p6f5ODjaODjaODjaODja4uL%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F4uL%2FODjaODjaODjaODjap6f54uL%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F4uL%2Fp6f5ODjaODjaODjaODja4uL%2Fp6f54uL%2F%2F%2F%2F%2F%2F%2F%2F%2FgYHygYHy%2F%2F%2F%2F%2F%2F%2F%2F4uL%2Fp6f54uL%2FODjaODjaODjaODja%2F%2F%2F%2F4uL%2Fp6f5trb%2FgYHyWlrpWlrpgYHytrb%2Fp6f54uL%2F%2F%2F%2F%2FODjaODjaODjaODja%2F%2F%2F%2F%2F%2F%2F%2Ftrb%2FgYHyWlrpODjaODjaWlrpgYHytrb%2F%2F%2F%2F%2F%2F%2F%2F%2FODjaODjaODjaODja%2F%2F%2F%2F%2F%2F%2F%2FgYHyWlrpODjatrb%2Ftrb%2FODjaWlrpgYHy%2F%2F%2F%2F%2F%2F%2F%2FODjaODjaODjaODja%2F%2F%2F%2FgYHyWlrpODjatrb%2F%2F%2F%2F%2F%2F%2F%2F%2Ftrb%2FODjaWlrpgYHy%2F%2F%2F%2FODjaODjaODjaODjagYHyWlrpODjatrb%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2Ftrb%2FODjaWlrpgYHyODjaODjaODjaODjaODjaODjatrb%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2Ftrb%2FODjaODjaODjaODjaODjaODjaODjagYHyp6f5p6f5p6f5p6f5p6f5p6f5p6f5p6f5gYHyODjaODjaODja"> [hidden email]
For general help: mailto:<img style="border: medium none ; cursor: pointer;" title="send email to //sympa@objectweb.org/ via gmail" src="data:image/bmp;base64,Qk1GAgAAAAAAADYAAAAoAAAAEAAAAAsAAAABABgAAAAAABACAADEDgAAxA4AAAAAAAAAAAAAODjaODjap6f5p6f5p6f5p6f5p6f5p6f5p6f5p6f5p6f5p6f5p6f5p6f5ODjaODjaODjaODja4uL%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F4uL%2FODjaODjaODjaODjap6f54uL%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F4uL%2Fp6f5ODjaODjaODjaODja4uL%2Fp6f54uL%2F%2F%2F%2F%2F%2F%2F%2F%2FgYHygYHy%2F%2F%2F%2F%2F%2F%2F%2F4uL%2Fp6f54uL%2FODjaODjaODjaODja%2F%2F%2F%2F4uL%2Fp6f5trb%2FgYHyWlrpWlrpgYHytrb%2Fp6f54uL%2F%2F%2F%2F%2FODjaODjaODjaODja%2F%2F%2F%2F%2F%2F%2F%2Ftrb%2FgYHyWlrpODjaODjaWlrpgYHytrb%2F%2F%2F%2F%2F%2F%2F%2F%2FODjaODjaODjaODja%2F%2F%2F%2F%2F%2F%2F%2FgYHyWlrpODjatrb%2Ftrb%2FODjaWlrpgYHy%2F%2F%2F%2F%2F%2F%2F%2FODjaODjaODjaODja%2F%2F%2F%2FgYHyWlrpODjatrb%2F%2F%2F%2F%2F%2F%2F%2F%2Ftrb%2FODjaWlrpgYHy%2F%2F%2F%2FODjaODjaODjaODjagYHyWlrpODjatrb%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2Ftrb%2FODjaWlrpgYHyODjaODjaODjaODjaODjaODjatrb%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2Ftrb%2FODjaODjaODjaODjaODjaODjaODjagYHyp6f5p6f5p6f5p6f5p6f5p6f5p6f5p6f5gYHyODjaODjaODja"> [hidden email]?subject=help
ObjectWeb mailing lists service home page: <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.objectweb.org/wws" target="_blank"> http://www.objectweb.org/wws




--
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: Missing some debug

Alex Boisvert-3
Daniel,

Thanks for you answer .  My use-case is a bit convoluted to post on the mailing list... so I'll follow with a quick question instead.   Do you know if using the input value in the XSLT processor such as:

<xsl:value-of select="doc('input:bar')"/>

Is enough to trigger the dependency on <p:input name="bar" href="#bar" debug="bar"/> ?

cheers,
alex


On 6/20/07, Daniel E. Renfer <[hidden email]> wrote:
I can't really tell from your example, but it could be because input bar is never read. Orbeon Forms, despite the top-down impression of XPL works backwards. It starts at the outputs, discovers what processor it needs to create that input, and tries to run that processor. That processor determines what processors are needed to crate the relevant output. So on and so forth.

This doesn't apply for @debug attributes. They will log the instance when data passes through them, but they won't trigger the dependency if that input is not needed.

If I'm wrong, and you are indeed consuming input "bar"... then I don't know. We'd probably need to see more of your code.

--
Daniel E. Renfer
<a href="http://kronkltd.net/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://kronkltd.net/

On 6/20/07, Alex Boisvert <[hidden email]> wrote:
Hi,

I'm trying to debug a pipeline with an XSL transform defined inside a for-each, such as:

<p:processor name="oxf:xslt">
    <p:input name="data" href="#instance" debug="instance"/>
    <p:input name="foo" href="#foo" debug="foo"/>
    <p:input name="current" href="current()" debug="current"/>
    <p:input name="bar" href="#bar" debug="bar"/>
    <p:input name="config">
        <xsl:stylesheet version="2.0">
            <!-- skipped -->
        </xsl:stylesheet>
    </p:input>
    <p:output name="data" id="myOutput"/>
</p:processor>


But I've noticed only some of the inputs are displayed in the log...  For instance, I see "foo" but not "bar".

Any idea why this would be happening?

cheers,
alex



--
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: <a href="http://www.objectweb.org/wws" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)"> http://www.objectweb.org/wws




--
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: <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.objectweb.org/wws" target="_blank">http://www.objectweb.org/wws




--
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: Missing some debug

Steve Lenhart
Alex,
 
I don't think the input alone will not be enough to trigger it to be read ..... when I come across this problem I just tend to put an empty if statement in my xslt .... something like this works ...
 
<xsl:variable name="bar" select="doc('input:bar')"/>
 
<xsl:if test="count($bar) > 0">
</xsl:if>
 
HTH
Steve
 
 
 
 
 
STEVE LENHART
WEB DEVELOPER
TELEFLEX CORPORATE IT
155 SOUTH LIMERICK ROAD
LIMERICK, PA 19468
TEL> 610-948-1744
MOB> 484-919-5578
 


   From: Alex Boisvert [mailto:[hidden email]]
Sent: Thursday, June 21, 2007 12:58 AM
To: [hidden email]
Subject: Re: [ops-users] Missing some debug

Daniel,

Thanks for you answer .  My use-case is a bit convoluted to post on the mailing list... so I'll follow with a quick question instead.   Do you know if using the input value in the XSLT processor such as:

<xsl:value-of select="doc('input:bar')"/>

Is enough to trigger the dependency on <p:input name="bar" href="#bar" debug="bar"/> ?

cheers,
alex


On 6/20/07, Daniel E. Renfer <[hidden email]> wrote:

I can't really tell from your example, but it could be because input bar is never read. Orbeon Forms, despite the top-down impression of XPL works backwards. It starts at the outputs, discovers what processor it needs to create that input, and tries to run that processor. That processor determines what processors are needed to crate the relevant output. So on and so forth.

This doesn't apply for @debug attributes. They will log the instance when data passes through them, but they won't trigger the dependency if that input is not needed.

If I'm wrong, and you are indeed consuming input "bar"... then I don't know. We'd probably need to see more of your code.

--
Daniel E. Renfer
<A onclick="return top.js.OpenExtLink(window,event,this)" href="http://kronkltd.net/" target=_blank>http://kronkltd.net/

On 6/20/07, Alex Boisvert <[hidden email]> wrote:
Hi,

I'm trying to debug a pipeline with an XSL transform defined inside a for-each, such as:

<p:processor name="oxf:xslt">
    <p:input name="data" href="#instance" debug="instance"/>
    <p:input name="foo" href="#foo" debug="foo"/>
    <p:input name="current" href="current()" debug="current"/>
    <p:input name="bar" href="#bar" debug="bar"/>
    <p:input name="config">
        <xsl:stylesheet version="2.0">
            <!-- skipped -->
        </xsl:stylesheet>
    </p:input>
    <p:output name="data" id="myOutput"/>
</p:processor>


But I've noticed only some of the inputs are displayed in the log...  For instance, I see "foo" but not "bar".

Any idea why this would be happening?

cheers,
alex



--
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: <A onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.objectweb.org/wws" target=_blank>http://www.objectweb.org/wws




--
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: <A onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.objectweb.org/wws" target=_blank>http://www.objectweb.org/wws




--
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: Missing some debug

Alex Boisvert-3
Thanks, that worked!

On 6/21/07, Steve Lenhart <[hidden email]> wrote:
Alex,
 
I don't think the input alone will not be enough to trigger it to be read ..... when I come across this problem I just tend to put an empty if statement in my xslt .... something like this works ...
 
<xsl:variable name="bar" select="doc('input:bar')"/>
 
<xsl:if test="count($bar) > 0">
</xsl:if>
 
HTH
Steve
 
 
 
 
 
STEVE LENHART
WEB DEVELOPER
TELEFLEX CORPORATE IT
155 SOUTH LIMERICK ROAD
LIMERICK, PA 19468
TEL> 610-948-1744
MOB> 484-919-5578
 


   From: Alex Boisvert [mailto:[hidden email]]
Sent: Thursday, June 21, 2007 12:58 AM
To: [hidden email]
Subject: Re: [ops-users] Missing some debug

Daniel,

Thanks for you answer .  My use-case is a bit convoluted to post on the mailing list... so I'll follow with a quick question instead.   Do you know if using the input value in the XSLT processor such as:

<xsl:value-of select="doc('input:bar')"/>

Is enough to trigger the dependency on <p:input name="bar" href="#bar" debug="bar"/> ?

cheers,
alex


On 6/20/07, Daniel E. Renfer <[hidden email]> wrote:

I can't really tell from your example, but it could be because input bar is never read. Orbeon Forms, despite the top-down impression of XPL works backwards. It starts at the outputs, discovers what processor it needs to create that input, and tries to run that processor. That processor determines what processors are needed to crate the relevant output. So on and so forth.

This doesn't apply for @debug attributes. They will log the instance when data passes through them, but they won't trigger the dependency if that input is not needed.

If I'm wrong, and you are indeed consuming input "bar"... then I don't know. We'd probably need to see more of your code.

--
Daniel E. Renfer
<a href="http://kronkltd.net/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://kronkltd.net/

On 6/20/07, Alex Boisvert <[hidden email]> wrote:
Hi,

I'm trying to debug a pipeline with an XSL transform defined inside a for-each, such as:

<p:processor name="oxf:xslt">
    <p:input name="data" href="#instance" debug="instance"/>
    <p:input name="foo" href="#foo" debug="foo"/>
    <p:input name="current" href="current()" debug="current"/>
    <p:input name="bar" href="#bar" debug="bar"/>
    <p:input name="config">
        <xsl:stylesheet version="2.0">
            <!-- skipped -->
        </xsl:stylesheet>
    </p:input>
    <p:output name="data" id="myOutput"/>
</p:processor>


But I've noticed only some of the inputs are displayed in the log...  For instance, I see "foo" but not "bar".

Any idea why this would be happening?

cheers,
alex



--
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: <a href="http://www.objectweb.org/wws" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.objectweb.org/wws




--
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: <a href="http://www.objectweb.org/wws" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.objectweb.org/wws




--
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: <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.objectweb.org/wws" target="_blank">http://www.objectweb.org/wws




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