You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by yuryx <yu...@mobicomk.donpac.ru> on 2002/06/19 17:33:00 UTC
include text into XSP page
Hi all!
Can anyone help me with one problem?
I need to include plain text into my XSP page (as result of CGI
application work).
I tried to use xinclude, but got the following error:
Original exception : org.xml.sax.SAXParseException: Content is not
allowed in prolog.
at
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:232)
at
org.apache.xerces.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:213)
Is there any way to achieve the desired result?
Thanx.
Yury.
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
Re: include text into XSP page -solved
Posted by yuryx <yu...@mobicomk.donpac.ru>.
I'm solve this :)
I'm just set attribute parse="text" in xinclude tag
Regards.
Yury.
yuryx wrote:
> Hi all!
> Can anyone help me with one problem?
>
> I need to include plain text into my XSP page (as result of CGI
> application work).
> I tried to use xinclude, but got the following error:
>
> Original exception : org.xml.sax.SAXParseException: Content is not
> allowed in prolog.
> at
> org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:232)
>
> at
> org.apache.xerces.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:213)
>
>
> Is there any way to achieve the desired result?
> Thanx.
> Yury.
>
>
>
>
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
>
> To unsubscribe, e-mail: <co...@xml.apache.org>
> For additional commands, e-mail: <co...@xml.apache.org>
>
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
Re: include text into XSP page -solved
Posted by yuryx <yu...@mobicomk.donpac.ru>.
Hi Vadim!
Thanx for your reply and help :)
Regards.
Yury.
Vadim Gritsenko wrote:
>>From: Vadim Gritsenko [mailto:vadim.gritsenko@verizon.net]
>>
>>
>>
>>>From: yuryx [mailto:yuryx@mobicomk.donpac.ru]
>>>
>>>Hi all!
>>>Can anyone help me with one problem?
>>>
>>>I need to include plain text into my XSP page (as result of CGI
>>>application work).
>>>I tried to use xinclude, but got the following error:
>>>
>>>
>>'x' in xinclude means 'XML'. CInclude also works with XML only.
>>
>>
>Cocoon's
>
>
>>event pipelines (generator->transformer->serializer) itself also can
>>work with XML *only*.
>>
>>
>
>Oops. Have to correct myself: XInclude is the only one who has
>provisions to work with text, it has parse="text" attribute, as
>mentioned in yuryx' email.
>
>Vadim
>
>
>---------------------------------------------------------------------
>Please check that your question has not already been answered in the
>FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
>
>To unsubscribe, e-mail: <co...@xml.apache.org>
>For additional commands, e-mail: <co...@xml.apache.org>
>
>
>
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
RE: include text into XSP page
Posted by Vadim Gritsenko <va...@verizon.net>.
> From: Vadim Gritsenko [mailto:vadim.gritsenko@verizon.net]
>
> > From: yuryx [mailto:yuryx@mobicomk.donpac.ru]
> >
> > Hi all!
> > Can anyone help me with one problem?
> >
> > I need to include plain text into my XSP page (as result of CGI
> > application work).
> > I tried to use xinclude, but got the following error:
>
> 'x' in xinclude means 'XML'. CInclude also works with XML only.
Cocoon's
> event pipelines (generator->transformer->serializer) itself also can
> work with XML *only*.
Oops. Have to correct myself: XInclude is the only one who has
provisions to work with text, it has parse="text" attribute, as
mentioned in yuryx' email.
Vadim
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
RE: include text into XSP page
Posted by Vadim Gritsenko <va...@verizon.net>.
> From: yuryx [mailto:yuryx@mobicomk.donpac.ru]
>
> Hi all!
> Can anyone help me with one problem?
>
> I need to include plain text into my XSP page (as result of CGI
> application work).
> I tried to use xinclude, but got the following error:
'x' in xinclude means 'XML'. CInclude also works with XML only. Cocoon's
event pipelines (generator->transformer->serializer) itself also can
work with XML *only*.
> Original exception : org.xml.sax.SAXParseException: Content is not
> allowed in prolog.
> at
>
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Error
Handle
> rWrapper.java:232)
> at
>
org.apache.xerces.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrappe
r.java
> :213)
>
> Is there any way to achieve the desired result?
Convert plain text to XML:
<text>
................
</text>
Vadim
> Thanx.
> Yury.
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
RE: Logicsheet examples: sel.xsl,
Posted by Per Kreipke <pe...@onclave.com>.
> >- what is the intent of sel.xsl? I can't quite make it out from
> the code. It
> >seems to be related to the 64K boundary but I'm wondering if
> it'd be handy
> >for segmenting pages.
> >
> >
> Absolutely, it's all about segmenting pages.
Uh, there wouldn't be an example would there?
Per
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
Re: Logicsheet examples: sel.xsl,
Posted by Christian Haul <ha...@informatik.tu-darmstadt.de>.
Per Kreipke wrote:
>- what is the intent of sel.xsl? I can't quite make it out from the code. It
>seems to be related to the 64K boundary but I'm wondering if it'd be handy
>for segmenting pages.
>
>
Absolutely, it's all about segmenting pages.
Chris.
--
C h r i s t i a n H a u l
haul@informatik.tu-darmstadt.de
fingerprint: 99B0 1D9D 7919 644A 4837 7D73 FEF9 6856 335A 9E08
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
RE: Logicsheet examples: sel.xsl,
Posted by Per Kreipke <pe...@onclave.com>.
> > - how come Lucene isn't being used on the site? I thought the cocoon
> pages
> > were being served by C2, wouldn't it be easy to add search?
>
> Read: being built by C2.
>
> xml.apache.org is 100% static web site. AFAIU, main reason is limited
> hardware capacity.
Ah, right. All the more reason to do this:
> > - why not create a dummy domain at cocoon.xml.apache.org just so that
> google
> > can search it? Lots of commercial companies use tricks to get listed
> in
> > search engines.
Per
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
RE: Logicsheet examples: sel.xsl,
Posted by Vadim Gritsenko <va...@verizon.net>.
> From: Per Kreipke [mailto:per@onclave.com]
...
> > > I've looked through the code, the mailing list and
> > > online docs (too bad there's no search on xml.apache.org).
> >
> > Google it.
> >
> >
http://www.google.com/search?hl=en&lr=&ie=UTF8&oe=UTF8&q=logicsheet+site
> > %3Axml.apache.org&btnG=Google+Search
>
> Sorry, did that too but I find that not being able to narrow the
search to
> just cocoon hurts, there's lots of stuff (maybe not in this particular
case,
> but generally). Two questions:
>
> - why not create a dummy domain at cocoon.xml.apache.org just so that
google
> can search it? Lots of commercial companies use tricks to get listed
in
> search engines.
>
> - how come Lucene isn't being used on the site? I thought the cocoon
pages
> were being served by C2, wouldn't it be easy to add search?
Read: being built by C2.
xml.apache.org is 100% static web site. AFAIU, main reason is limited
hardware capacity.
Vadim
...
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
RE: Order of logicsheets?
Posted by Per Kreipke <pe...@onclave.com>.
Vadim,
Just noticed in your change log for 2.03 that you made some fixes for
XScript and SOAP. I'll try those.
> I'm having trouble using the SOAP logicsheet in the demo and in
> my own work.
>
>
> The demo doesn't work: "no variable 'soap:call' accessible from
> this scope"
> is the message.
>
>
> Also, I've copied code from the SOAP example but I think the
> order that the
> xscript and soap logicsheets are applied is wrong: the soap stuff seems to
> have been resolved into <xscript> but then the <xscript> isn't
> resolved/executed.
>
> It's as if the xscript logicsheet isn't evaluated.
>
> In here
>
> http://xml.apache.org/cocoon/userdocs/xsp/logicsheet.html
>
> it says that I need to use <?xml-logicsheet...?> to set the order. Sounds
> strange. Also, not sure what name I should give it for the built in logic
> sheets.
>
> Am I wrong to think that?
>
> Per
>
>
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
>
> To unsubscribe, e-mail: <co...@xml.apache.org>
> For additional commands, e-mail: <co...@xml.apache.org>
>
>
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
Order of logicsheets?
Posted by Per Kreipke <pe...@onclave.com>.
I'm having trouble using the SOAP logicsheet in the demo and in my own work.
The demo doesn't work: "no variable 'soap:call' accessible from this scope"
is the message.
Also, I've copied code from the SOAP example but I think the order that the
xscript and soap logicsheets are applied is wrong: the soap stuff seems to
have been resolved into <xscript> but then the <xscript> isn't
resolved/executed.
It's as if the xscript logicsheet isn't evaluated.
In here
http://xml.apache.org/cocoon/userdocs/xsp/logicsheet.html
it says that I need to use <?xml-logicsheet...?> to set the order. Sounds
strange. Also, not sure what name I should give it for the built in logic
sheets.
Am I wrong to think that?
Per
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
RE: Logicsheet examples: sel.xsl,
Posted by Per Kreipke <pe...@onclave.com>.
> > In the live documentation on logicsheets here:
> >
> > http://xml.apache.org/cocoon/userdocs/xsp/index.html
> >
> > only four logicsheets are covered. Is there any documentation I
> haven't
> > found for the rest?
>
> I don't think so. There is a room here for good documentation.
Ah. I've heard that request before but I feel like there's a catch-22
involved :-) I'd be glad to do some documentation and examples if I
understood the other logicsheets.
> > I've looked through the code, the mailing list and
> > online docs (too bad there's no search on xml.apache.org).
>
> Google it.
>
> http://www.google.com/search?hl=en&lr=&ie=UTF8&oe=UTF8&q=logicsheet+site
> %3Axml.apache.org&btnG=Google+Search
Sorry, did that too but I find that not being able to narrow the search to
just cocoon hurts, there's lots of stuff (maybe not in this particular case,
but generally). Two questions:
- why not create a dummy domain at cocoon.xml.apache.org just so that google
can search it? Lots of commercial companies use tricks to get listed in
search engines.
- how come Lucene isn't being used on the site? I thought the cocoon pages
were being served by C2, wouldn't it be easy to add search?
> > Specifically:
> > - what is the intent of sel.xsl? I can't quite make it out from the
> code. It
> > seems to be related to the 64K boundary but I'm wondering if it'd be
> handy
> > for segmenting pages.
> >
> > - are there more details about soap.xsl?
> >
> > - can any of the logicsheets (besides action.xsl) be called from XSP
> > actions?
>
> Usually, yes. If some of them do not work, report it/document it :)
As always, thanks Vadim.
Per
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
RE: Logicsheet examples: sel.xsl,
Posted by Vadim Gritsenko <va...@verizon.net>.
> From: Per Kreipke [mailto:per@onclave.com]
>
> In the live documentation on logicsheets here:
>
> http://xml.apache.org/cocoon/userdocs/xsp/index.html
>
> only four logicsheets are covered. Is there any documentation I
haven't
> found for the rest?
I don't think so. There is a room here for good documentation.
> I've looked through the code, the mailing list and
> online docs (too bad there's no search on xml.apache.org).
Google it.
http://www.google.com/search?hl=en&lr=&ie=UTF8&oe=UTF8&q=logicsheet+site
%3Axml.apache.org&btnG=Google+Search
> Specifically:
> - what is the intent of sel.xsl? I can't quite make it out from the
code. It
> seems to be related to the 64K boundary but I'm wondering if it'd be
handy
> for segmenting pages.
>
> - are there more details about soap.xsl?
>
> - can any of the logicsheets (besides action.xsl) be called from XSP
> actions?
Usually, yes. If some of them do not work, report it/document it :)
Vadim
> Thanks, Per.
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
Logicsheet examples: sel.xsl,
Posted by Per Kreipke <pe...@onclave.com>.
In the live documentation on logicsheets here:
http://xml.apache.org/cocoon/userdocs/xsp/index.html
only four logicsheets are covered. Is there any documentation I haven't
found for the rest? I've looked through the code, the mailing list and
online docs (too bad there's no search on xml.apache.org).
Specifically:
- what is the intent of sel.xsl? I can't quite make it out from the code. It
seems to be related to the 64K boundary but I'm wondering if it'd be handy
for segmenting pages.
- are there more details about soap.xsl?
- can any of the logicsheets (besides action.xsl) be called from XSP
actions?
Thanks, Per.
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>