Path error in PFC

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

Path error in PFC

Ethan Gruber
I want to serialize some XML fed from one pipeline into another in PFC, but I'm having a problem:

My PFC contains the following:

    <!-- public xml view (internal elements supressed) -->
    <page path-info="/eaditor/xml/(.*)" matcher="oxf:perl5-matcher" model="exist-url.xml" view="xpl/xml-public.xpl"/>
   
    <!-- public html view -->
    <page path-info="/eaditor/show/(.*)" matcher="oxf:perl5-matcher" model="oxf:/eaditor/xml/${1}" view="xpl/display-public.xpl"/>

My public HTML view should use the /eaditor/xml/(.*) pipeline as its model, but I'm getting the error:

Cannot load "/eaditor/xml/$$$" with webapp loader (where $$$ is file name)

If I go to http://localhost:8080/orbeon/eaditor/xml/$$$, I can view the XML in my browser.  Accordingly, If I replace 'oxf:/ in the model attribute of the HTML view, with a hard-coded URL, http://localhost:8080/orbeon/, it serializes correctly.

Any ideas?

Thanks,
Ethan


--
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
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Path error in PFC

Ethan Gruber
Nevermind, I tweaked my XPL and used xpl/xml-public.xpl as my model for my show/(.*)

Ethan

On Thu, Nov 17, 2011 at 4:26 PM, Ethan Gruber <[hidden email]> wrote:
I want to serialize some XML fed from one pipeline into another in PFC, but I'm having a problem:

My PFC contains the following:

    <!-- public xml view (internal elements supressed) -->
    <page path-info="/eaditor/xml/(.*)" matcher="oxf:perl5-matcher" model="exist-url.xml" view="xpl/xml-public.xpl"/>
   
    <!-- public html view -->
    <page path-info="/eaditor/show/(.*)" matcher="oxf:perl5-matcher" model="oxf:/eaditor/xml/${1}" view="xpl/display-public.xpl"/>

My public HTML view should use the /eaditor/xml/(.*) pipeline as its model, but I'm getting the error:

Cannot load "/eaditor/xml/$$$" with webapp loader (where $$$ is file name)

If I go to http://localhost:8080/orbeon/eaditor/xml/$$$, I can view the XML in my browser.  Accordingly, If I replace 'oxf:/ in the model attribute of the HTML view, with a hard-coded URL, http://localhost:8080/orbeon/, it serializes correctly.

Any ideas?

Thanks,
Ethan



--
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
OW2 mailing lists service home page: http://www.ow2.org/wws