cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anna Afonchenko" <a...@ubaccess.com>
Subject Re: Inserting XML Strings
Date Tue, 26 Nov 2002 08:29:29 GMT
Hi Ludovic.
You were right. The file wasn't valid XML file.
Can you please tell me where I can find the list of all util:tags?
I can't find the complete list anywhere.

Thanks for your help.
Anna


----- Original Message ----- 
From: "Ludovic de Beaurepaire" <ludovic.debeaurepaire@axonie.com>
To: <cocoon-users@xml.apache.org>
Sent: Monday, November 25, 2002 3:33 PM
Subject: Re: Inserting XML Strings


Hi Anna,

Sorry if it does not help you.

> Since xsp generates xml, there is no
> problem of passing HTML further in the pipeline. In xsp I just read the
> content of the HTML file.

Are you sure ? Someone confirms it ?

> If I just put the string that is
> returned by u.getFileContents() function into <xsp:expr> tag (without
> <util:include-expr>) , it works, but outputs entities instead of <,>.

your String is considered as text (not XML) by the event pipeline

> Also, if I'm declaring a simple variable inside <xsp:logic>, for example
> String foo = "&lt;br/&gt;";
> then outside the <xsp:logic> I can write something like
> <p> This is some file
>    <util:include-expr><util:expr><xsp:expr>
>     foo
>    </xsp:expr></util:expr> </util:include-expr>
>    content
> </p>
>
> and I get the resulting page correctly.

foo is a well formed XML String and it works.

> But if I write in the same manner:
>   <xsp:logic>
>    String get = u.getFileContents(URL of the file);
> <p>
>    <util:include-expr><util:expr><xsp:expr>
>     get
>    </xsp:expr></util:expr> </util:include-expr>
> </p>
>   </xsp:logic>
>
>
> I get an error:org.apache.cocoon.ProcessingException: Exception in
> ServerPagesGenerator.generate(): java.lang.RuntimeException: Could not
> include page Open quote is expected for attribute "size|".

i think that it is because your HTML ressource is not a well formed XML
String. Can you try to open it in a XML editor to see if it is OK. If not,
you have to use something like the XHTML format for your files. Perhaps
there is a <util:tag> allowing to have some valid XML from HTML but i don't
know it.


Ludovic


---------------------------------------------------------------------
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:     <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail:   <cocoon-users-help@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:     <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>


Mime
View raw message