xi:include problem

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

xi:include problem

julian.fawcett
Hi all,

Can anyone explain why this processor in an xpl file:

    <p:processor name="oxf:identity">
        <p:input name="data">
            <xforms:group ref="form">
                <xi:include href="referral-workflow.xml"/>
                <xhtml:div id="xForm">
                    <xi:include href="referral-pagenav.xml"/>
                    <xi:include href="referral-footer.xml"/>
                </xhtml:div>
            </xforms:group>
        </p:input>
        <p:output name="data" ref="data"/>
    </p:processor>

generates this exception:

"line 14, column 62 : Fatal Error: Elements from namespace 'http://www.w3.org/2003/XInclude', other than 'fallback', are not allowed to be children of 'include' elements. However, 'include' was found."

Line 14 is the one with the second <xi:include>

If I take out the <xhtml:div> as below, I get no exception:

    <p:processor name="oxf:identity">
        <p:input name="data">
            <xforms:group ref="form">
                <xi:include href="referral-workflow.xml"/>
                <xi:include href="referral-pagenav.xml"/>
                <xi:include href="referral-footer.xml"/>
            </xforms:group>
        </p:input>
        <p:output name="data" ref="data"/>
    </p:processor>


Julian Fawcett
Senior Programmer
Esprit Ltd
Derby



--
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: xi:include problem

Alexander Žaťko
Do you have the xhtml namespace declared in the root element of the
page? Or any ancestor of the <xhtml:div> element?


On Oct 27, 2005, at 11:38 AM, [hidden email] wrote:

> Hi all,
>
> Can anyone explain why this processor in an xpl file:
>
>     <p:processor name="oxf:identity">
>         <p:input name="data">
>             <xforms:group ref="form">
>                 <xi:include href="referral-workflow.xml"/>
>                 <xhtml:div id="xForm">
>                     <xi:include href="referral-pagenav.xml"/>
>                     <xi:include href="referral-footer.xml"/>
>                 </xhtml:div>
>             </xforms:group>
>         </p:input>
>         <p:output name="data" ref="data"/>
>     </p:processor>
>
> generates this exception:
>
> "line 14, column 62 : Fatal Error: Elements from namespace
> 'http://www.w3.org/2003/XInclude', other than 'fallback', are not
> allowed to be children of 'include' elements. However, 'include' was
> found."
>
> Line 14 is the one with the second <xi:include>
>
> If I take out the <xhtml:div> as below, I get no exception:
>
>     <p:processor name="oxf:identity">
>         <p:input name="data">
>             <xforms:group ref="form">
>                 <xi:include href="referral-workflow.xml"/>
>                 <xi:include href="referral-pagenav.xml"/>
>                 <xi:include href="referral-footer.xml"/>
>             </xforms:group>
>         </p:input>
>         <p:output name="data" ref="data"/>
>     </p:processor>
>
> Julian Fawcett
> Senior Programmer
> Esprit Ltd
> Derby
>
>
> --
> 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



--
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: xi:include problem

Erik Bruchez
Administrator
In reply to this post by julian.fawcett
There are now two different ways in OPS to process XInclude:

o Using the XML parser's XInclude processor. By default, all resources
referred to by OPS use that XInclude processing. This can only apply
XInclude processing at parsing time.

o Using the XInclude processor. This can be used explicitly in XPL, but
the PFC uses that as well instead of the XML parser's XInclude processor.

I tried a similar scheme to what you are doing below, and things seem to
work fine. The error you see below seems to imply that XInclude
processing was being done by the XML parser, when with a recent build it
should go through the XInclude processor. Are you using a recent build?

-Erik

[hidden email] wrote:

> Hi all,
>
> Can anyone explain why this processor in an xpl file:
>
>     <p:processor name="oxf:identity">
>         <p:input name="data">
>             <xforms:group ref="form">
>                 <xi:include href="referral-workflow.xml"/>
>                 <xhtml:div id="xForm">
>                     <xi:include href="referral-pagenav.xml"/>
>                     <xi:include href="referral-footer.xml"/>
>                 </xhtml:div>
>             </xforms:group>
>         </p:input>
>         <p:output name="data" ref="data"/>
>     </p:processor>
>
> generates this exception:
>
> "line 14, column 62 : Fatal Error: Elements from namespace 'http://www.w3.org/2003/XInclude', other than 'fallback', are not allowed to be children of 'include' elements. However, 'include' was found."
>
> Line 14 is the one with the second <xi:include>
>
> If I take out the <xhtml:div> as below, I get no exception:
>
>     <p:processor name="oxf:identity">
>         <p:input name="data">
>             <xforms:group ref="form">
>                 <xi:include href="referral-workflow.xml"/>
>                 <xi:include href="referral-pagenav.xml"/>
>                 <xi:include href="referral-footer.xml"/>
>             </xforms:group>
>         </p:input>
>         <p:output name="data" ref="data"/>
>     </p:processor>
>
>
> Julian Fawcett
> Senior Programmer
> Esprit Ltd
> Derby
>
>
>
> ------------------------------------------------------------------------
>
>
> --
> 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



--
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: xi:include problem

julian.fawcett
In reply to this post by julian.fawcett
I am using 2.8.0. Not sure how recent that is.

-Joolz



-----Original Message-----
From: Erik Bruchez [mailto:[hidden email]] On Behalf Of Erik Bruchez
Sent: 31 October 2005 13:10
To: [hidden email]
Subject: Re: [ops-users] xi:include problem

There are now two different ways in OPS to process XInclude:

o Using the XML parser's XInclude processor. By default, all resources
referred to by OPS use that XInclude processing. This can only apply
XInclude processing at parsing time.

o Using the XInclude processor. This can be used explicitly in XPL, but
the PFC uses that as well instead of the XML parser's XInclude
processor.

I tried a similar scheme to what you are doing below, and things seem to

work fine. The error you see below seems to imply that XInclude
processing was being done by the XML parser, when with a recent build it

should go through the XInclude processor. Are you using a recent build?

-Erik

[hidden email] wrote:

> Hi all,
>
> Can anyone explain why this processor in an xpl file:
>
>     <p:processor name="oxf:identity">
>         <p:input name="data">
>             <xforms:group ref="form">
>                 <xi:include href="referral-workflow.xml"/>
>                 <xhtml:div id="xForm">
>                     <xi:include href="referral-pagenav.xml"/>
>                     <xi:include href="referral-footer.xml"/>
>                 </xhtml:div>
>             </xforms:group>
>         </p:input>
>         <p:output name="data" ref="data"/>
>     </p:processor>
>
> generates this exception:
>
> "line 14, column 62 : Fatal Error: Elements from namespace
'http://www.w3.org/2003/XInclude', other than 'fallback', are not
allowed to be children of 'include' elements. However, 'include' was
found."

>
> Line 14 is the one with the second <xi:include>
>
> If I take out the <xhtml:div> as below, I get no exception:
>
>     <p:processor name="oxf:identity">
>         <p:input name="data">
>             <xforms:group ref="form">
>                 <xi:include href="referral-workflow.xml"/>
>                 <xi:include href="referral-pagenav.xml"/>
>                 <xi:include href="referral-footer.xml"/>
>             </xforms:group>
>         </p:input>
>         <p:output name="data" ref="data"/>
>     </p:processor>
>
>
> Julian Fawcett
> Senior Programmer
> Esprit Ltd
> Derby
>
>
>
>
------------------------------------------------------------------------
>
>
> --
> 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






--
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: xi:include problem

julian.fawcett
In reply to this post by julian.fawcett
Yes I do have the xhtml namespace declared in the page's root element.
Joolz

> -----Original Message-----
> From: Alexander Zatko [mailto:[hidden email]]
> Sent: 27 October 2005 17:04
> To: [hidden email]
> Subject: Re: [ops-users] xi:include problem
>
> Do you have the xhtml namespace declared in the root element of the
> page? Or any ancestor of the <xhtml:div> element?
>
>
> On Oct 27, 2005, at 11:38 AM, [hidden email] wrote:
>
> > Hi all,
> >
> > Can anyone explain why this processor in an xpl file:
> >
> >     <p:processor name="oxf:identity">
> >         <p:input name="data">
> >             <xforms:group ref="form">
> >                 <xi:include href="referral-workflow.xml"/>
> >                 <xhtml:div id="xForm">
> >                     <xi:include href="referral-pagenav.xml"/>
> >                     <xi:include href="referral-footer.xml"/>
> >                 </xhtml:div>
> >             </xforms:group>
> >         </p:input>
> >         <p:output name="data" ref="data"/>
> >     </p:processor>
> >
> > generates this exception:
> >
> > "line 14, column 62 : Fatal Error: Elements from namespace
> > 'http://www.w3.org/2003/XInclude', other than 'fallback', are not
> > allowed to be children of 'include' elements. However, 'include' was
> > found."
> >
> > Line 14 is the one with the second <xi:include>
> >
> > If I take out the <xhtml:div> as below, I get no exception:
> >
> >     <p:processor name="oxf:identity">
> >         <p:input name="data">
> >             <xforms:group ref="form">
> >                 <xi:include href="referral-workflow.xml"/>
> >                 <xi:include href="referral-pagenav.xml"/>
> >                 <xi:include href="referral-footer.xml"/>
> >             </xforms:group>
> >         </p:input>
> >         <p:output name="data" ref="data"/>
> >     </p:processor>
> >
> > Julian Fawcett
> > Senior Programmer
> > Esprit Ltd
> > Derby
> >
> >
> > --
> > 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
>





--
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: xi:include problem

Erik Bruchez
Administrator
In reply to this post by julian.fawcett
That's pretty old, back from March 2005. I assumed that you were using
some more recent 3.0 build. Is it an option for you to upgrade?

-Erik

Julian Fawcett wrote:

> I am using 2.8.0. Not sure how recent that is.
>
> -Joolz
>
>
>
> -----Original Message-----
> From: Erik Bruchez [mailto:[hidden email]] On Behalf Of Erik Bruchez
> Sent: 31 October 2005 13:10
> To: [hidden email]
> Subject: Re: [ops-users] xi:include problem
>
> There are now two different ways in OPS to process XInclude:
>
> o Using the XML parser's XInclude processor. By default, all resources
> referred to by OPS use that XInclude processing. This can only apply
> XInclude processing at parsing time.
>
> o Using the XInclude processor. This can be used explicitly in XPL, but
> the PFC uses that as well instead of the XML parser's XInclude
> processor.
>
> I tried a similar scheme to what you are doing below, and things seem to
>
> work fine. The error you see below seems to imply that XInclude
> processing was being done by the XML parser, when with a recent build it
>
> should go through the XInclude processor. Are you using a recent build?
>
> -Erik
>
> [hidden email] wrote:
>
>>Hi all,
>>
>>Can anyone explain why this processor in an xpl file:
>>
>>    <p:processor name="oxf:identity">
>>        <p:input name="data">
>>            <xforms:group ref="form">
>>                <xi:include href="referral-workflow.xml"/>
>>                <xhtml:div id="xForm">
>>                    <xi:include href="referral-pagenav.xml"/>
>>                    <xi:include href="referral-footer.xml"/>
>>                </xhtml:div>
>>            </xforms:group>
>>        </p:input>
>>        <p:output name="data" ref="data"/>
>>    </p:processor>
>>
>>generates this exception:
>>
>>"line 14, column 62 : Fatal Error: Elements from namespace
>
> 'http://www.w3.org/2003/XInclude', other than 'fallback', are not
> allowed to be children of 'include' elements. However, 'include' was
> found."
>
>>Line 14 is the one with the second <xi:include>
>>
>>If I take out the <xhtml:div> as below, I get no exception:
>>
>>    <p:processor name="oxf:identity">
>>        <p:input name="data">
>>            <xforms:group ref="form">
>>                <xi:include href="referral-workflow.xml"/>
>>                <xi:include href="referral-pagenav.xml"/>
>>                <xi:include href="referral-footer.xml"/>
>>            </xforms:group>
>>        </p:input>
>>        <p:output name="data" ref="data"/>
>>    </p:processor>
>>
>>
>>Julian Fawcett
>>Senior Programmer
>>Esprit Ltd
>>Derby
>>
>>
>>
>>
>
> ------------------------------------------------------------------------
>
>>
>>--
>>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
>
>
>
>
>
>
> ------------------------------------------------------------------------
>
>
> --
> 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



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