Page Controller model problems

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

Page Controller model problems

Ryan Puddephatt

Hi all,

            I’m having trouble with the model attribute when defining a page. I’m trying to run an XPL to load instance directly into the page. My page flow is showing

 

        <page id="aRCCViewPage" path-info="/authRuleConsistancyCheck/view"

            model="/pages/authRuleConsistancyCheck/load.xpl"

           view="/pages/authRuleConsistancyCheck/view.xsl"/>

 

 

I have removed the view attribute and it runs the XPL, but adding the view doesn’t. The XPL is as so

 

<p:config xmlns:p="http://www.orbeon.com/oxf/pipeline"

    xmlns:oxf="http://www.orbeon.com/oxf/processors"

    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"

    xmlns:xi="http://www.w3.org/2001/XInclude">

   

    <p:param name="instance" type="input" debug="INSTANCE"/>

    <p:param name="data" type="output" debug="OUTPUT"/>

   

    <!-- get the tamino settings -->

    <p:processor name="oxf:pipeline">

        <p:input name="data" href="#instance"/>

        <p:input name="config" href="oxf:/common-xpl/get-tamino-info.xpl"/>

        <p:input name="collection" href="oxf:/config/tamino-pea.xml"/>

        <p:output name="data" id="tamino-settings"/>

    </p:processor>

 

    <p:processor name="oxf:identity">

        <p:input name="data" href="#tamino-settings"/>

        <p:output name="data" ref="data"/>

    </p:processor>

</p:config>

 

And view.xsl

 

<xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml"

    xmlns:xforms="http://www.w3.org/2002/xforms"

    xmlns:xsl="http://www.w3.org/1999/XS:/Transform" xsl:version="2.0">

   

    <xhtml:head>

        <xhtml:title>Authorisation Rule Consistancy Check</xhtml:title>

        <xhtml:link rel="stylesheet" type="text/css" href="/stylesheets/grid.css"/>

        <!-- START MODEL -->

        <xforms:model>

            <xforms:instance id="instance">

                <instance/>

            </xforms:instance>

        </xforms:model>

    </xhtml:head>

    <xhtml:body>

        <xsl:copy-of select="/*"/>

    </xhtml:body>

</xhtml:html>

 

I’ve stripped this, but can’t seem to find where to problem lies

 

Any ideas?

 

Ryan Puddephatt

Web Developer

TFX Group

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: Page Controller model problems

Alessandro  Vernet
Administrator
Hi Ryan,

Your namespace for XSL in the view is incorrect. Change it from
http://www.w3.org/1999/XS:/Transform to
http://www.w3.org/1999/XSL/Transform.

The page flow is looking at the root element of the view to determine
its type (it doesn't use the file extension). So in this case it does
not recognize this as an XSL file, so it just sends the XHTML as-is
and since the model is not used, your model pipeline is not running.

Alex

On 11/19/05, Ryan Puddephatt <[hidden email]> wrote:

>
>
>
> Hi all,
>
>             I'm having trouble with the model attribute when defining a
> page. I'm trying to run an XPL to load instance directly into the page. My
> page flow is showing
>
>
>
>         <page id="aRCCViewPage"
> path-info="/authRuleConsistancyCheck/view"
>
>
> model="/pages/authRuleConsistancyCheck/load.xpl"
>
>
> view="/pages/authRuleConsistancyCheck/view.xsl"/>
>
>
>
>
>
> I have removed the view attribute and it runs the XPL, but adding the view
> doesn't. The XPL is as so
>
>
>
> <p:config xmlns:p="http://www.orbeon.com/oxf/pipeline"
>
>     xmlns:oxf="http://www.orbeon.com/oxf/processors"
>
>     xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
>
>     xmlns:xi="http://www.w3.org/2001/XInclude">
>
>
>
>     <p:param name="instance" type="input" debug="INSTANCE"/>
>
>     <p:param name="data" type="output" debug="OUTPUT"/>
>
>
>
>     <!-- get the tamino settings -->
>
>     <p:processor name="oxf:pipeline">
>
>         <p:input name="data" href="#instance"/>
>
>         <p:input name="config" href="oxf:/common-xpl/get-tamino-info.xpl"/>
>
>         <p:input name="collection" href="oxf:/config/tamino-pea.xml"/>
>
>         <p:output name="data" id="tamino-settings"/>
>
>     </p:processor>
>
>
>
>     <p:processor name="oxf:identity">
>
>         <p:input name="data" href="#tamino-settings"/>
>
>         <p:output name="data" ref="data"/>
>
>     </p:processor>
>
> </p:config>
>
>
>
> And view.xsl
>
>
>
> <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml"
>
>     xmlns:xforms="http://www.w3.org/2002/xforms"
>
>     xmlns:xsl="http://www.w3.org/1999/XS:/Transform"
> xsl:version="2.0">
>
>
>
>     <xhtml:head>
>
>         <xhtml:title>Authorisation Rule Consistancy Check</xhtml:title>
>
>         <xhtml:link rel="stylesheet" type="text/css"
> href="/stylesheets/grid.css"/>
>
>         <!-- START MODEL -->
>
>         <xforms:model>
>
>             <xforms:instance id="instance">
>
>                 <instance/>
>
>             </xforms:instance>
>
>         </xforms:model>
>
>     </xhtml:head>
>
>     <xhtml:body>
>
>         <xsl:copy-of select="/*"/>
>
>     </xhtml:body>
>
> </xhtml:html>
>
>
>
> I've stripped this, but can't seem to find where to problem lies
>
>
>
> Any ideas?
>
>
>
> Ryan Puddephatt
>
> Web Developer
>
> TFX Group
>
> 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: Page Controller model problems

Ryan Puddephatt
Thanks Alex, all working now, that had me completely stumped!

Ryan Puddephatt
Web Developer
TFX Group
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: 22 November 2005 22:46
To: [hidden email]
Subject: Re: [ops-users] Page Controller model problems

Hi Ryan,

Your namespace for XSL in the view is incorrect. Change it from
http://www.w3.org/1999/XS:/Transform to
http://www.w3.org/1999/XSL/Transform.

The page flow is looking at the root element of the view to determine
its type (it doesn't use the file extension). So in this case it does
not recognize this as an XSL file, so it just sends the XHTML as-is
and since the model is not used, your model pipeline is not running.

Alex

On 11/19/05, Ryan Puddephatt <[hidden email]> wrote:

>
>
>
> Hi all,
>
>             I'm having trouble with the model attribute when defining a
> page. I'm trying to run an XPL to load instance directly into the page. My
> page flow is showing
>
>
>
>         <page id="aRCCViewPage"
> path-info="/authRuleConsistancyCheck/view"
>
>
> model="/pages/authRuleConsistancyCheck/load.xpl"
>
>
> view="/pages/authRuleConsistancyCheck/view.xsl"/>
>
>
>
>
>
> I have removed the view attribute and it runs the XPL, but adding the view
> doesn't. The XPL is as so
>
>
>
> <p:config xmlns:p="http://www.orbeon.com/oxf/pipeline"
>
>     xmlns:oxf="http://www.orbeon.com/oxf/processors"
>
>     xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
>
>     xmlns:xi="http://www.w3.org/2001/XInclude">
>
>
>
>     <p:param name="instance" type="input" debug="INSTANCE"/>
>
>     <p:param name="data" type="output" debug="OUTPUT"/>
>
>
>
>     <!-- get the tamino settings -->
>
>     <p:processor name="oxf:pipeline">
>
>         <p:input name="data" href="#instance"/>
>
>         <p:input name="config"
href="oxf:/common-xpl/get-tamino-info.xpl"/>

>
>         <p:input name="collection" href="oxf:/config/tamino-pea.xml"/>
>
>         <p:output name="data" id="tamino-settings"/>
>
>     </p:processor>
>
>
>
>     <p:processor name="oxf:identity">
>
>         <p:input name="data" href="#tamino-settings"/>
>
>         <p:output name="data" ref="data"/>
>
>     </p:processor>
>
> </p:config>
>
>
>
> And view.xsl
>
>
>
> <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml"
>
>     xmlns:xforms="http://www.w3.org/2002/xforms"
>
>     xmlns:xsl="http://www.w3.org/1999/XS:/Transform"
> xsl:version="2.0">
>
>
>
>     <xhtml:head>
>
>         <xhtml:title>Authorisation Rule Consistancy Check</xhtml:title>
>
>         <xhtml:link rel="stylesheet" type="text/css"
> href="/stylesheets/grid.css"/>
>
>         <!-- START MODEL -->
>
>         <xforms:model>
>
>             <xforms:instance id="instance">
>
>                 <instance/>
>
>             </xforms:instance>
>
>         </xforms:model>
>
>     </xhtml:head>
>
>     <xhtml:body>
>
>         <xsl:copy-of select="/*"/>
>
>     </xhtml:body>
>
> </xhtml:html>
>
>
>
> I've stripped this, but can't seem to find where to problem lies
>
>
>
> Any ideas?
>
>
>
> Ryan Puddephatt
>
> Web Developer
>
> TFX Group
>
> 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