[Yanel-dev] xinclude

Michael Wechner michael.wechner at wyona.com
Tue Jun 4 16:42:59 CEST 2013


Dear Balz

Does it work when you set the mime type of resource B to application/xml 
and when you use the XML serializer?
Do you have to access resource B also directly or is it only used via 
xinclude?

Cheers

Michael

Am 04.06.13 15:42, schrieb basZero:
> dear all,
>
> I wanted to implement the following, but I struggled.
>
> *What I have:*
> - There are two resources (A+B) producing a valid HTML page with mime 
> type "text/html".
> So when looking at the source of those HTML pages, I see this at the top:
>
> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" 
> "http://www.w3.org/TR/html4/loose.dtd">
>
> - Resource B is able to deliver the whole page without menu and 
> sidebar. This is achieved by passing in a URL parameter.
>
> *What i want:*
>
> - I would like to call the resource B with contentonly=true and 
> include the resulting HTML code into the page of resource A.
>
> How can you do that?
>
> When I use the following in a XSL of resource A...
>
> *<xi:include href="yanelresource:/blabla/blabla"/>*
>
> ... it gives me this error:
> Transformation error: 
> http://www.w3.org/TR/html4/loose.dtd:Line=31;Column=3: 
> exception:org.xml.sax.SAXParseException: The declaration for the 
> entity "HTML.Version" must end with '>'. root-cause:null line: -- 
> Typical usage: line: ^ error: org.xml.sax.SAXParseException: The 
> declaration for the entity "HTML.Version" must end with '>'. ).
>
> If you know something about how to include the HTML output of another 
> resource in the called resource's XSL, let me know.
>
> Cheers
> Bas
>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wyona.org/pipermail/yanel-development/attachments/20130604/eeb80985/attachment.html>


More information about the Yanel-development mailing list