<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Dear Balz<br>
    <br>
    Does it work when you set the mime type of resource B to
    application/xml and when you use the XML serializer?<br>
    Do you have to access resource B also directly or is it only used
    via xinclude?<br>
    <br>
    Cheers<br>
    <br>
    Michael<br>
    <br>
    Am 04.06.13 15:42, schrieb basZero:
    <blockquote
cite="mid:CAOXzDSGz9hmKPKLYYf7MyrWoqpJEXFFb53_mA0JMN+Nx6MGfYg@mail.gmail.com"
      type="cite">
      <div dir="ltr">dear all,
        <div><br>
        </div>
        <div style="">I wanted to implement the following, but I
          struggled.</div>
        <div style=""><br>
        </div>
        <div style=""><b>What I have:</b></div>
        <div style="">- There are two resources (A+B) producing a valid
          HTML page with mime type "text/html".</div>
        <div style="">So when looking at the source of those HTML pages,
          I see this at the top:</div>
        <div style=""><br>
        </div>
        <div style=""><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01
          Transitional//EN" "<a moz-do-not-send="true"
            href="http://www.w3.org/TR/html4/loose.dtd">http://www.w3.org/TR/html4/loose.dtd</a>"><br>
        </div>
        <div style=""><br>
        </div>
        <div style="">- Resource B is able to deliver the whole page
          without menu and sidebar. This is achieved by passing in a URL
          parameter.</div>
        <div style=""><br>
        </div>
        <div style=""><b>What i want:</b></div>
        <div style=""><br>
        </div>
        <div style="">- I would like to call the resource B with
          contentonly=true and include the resulting HTML code into the
          page of resource A.</div>
        <div style=""><br>
        </div>
        <div style="">How can you do that?</div>
        <div style="">
          <br>
        </div>
        <div style="">When I use the following in a XSL of resource A...</div>
        <div style=""><br>
        </div>
        <div style=""><b><xi:include
            href="yanelresource:/blabla/blabla"/></b><br>
        </div>
        <div style=""><br>
        </div>
        <div style="">
          ... it gives me this error:</div>
        <div style="">Transformation error: <a moz-do-not-send="true"
            href="http://www.w3.org/TR/html4/loose.dtd:Line=31;Column=3">http://www.w3.org/TR/html4/loose.dtd:Line=31;Column=3</a>:
          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 '>'. ).<br>
        </div>
        <div style=""><br>
        </div>
        <div style="">If you know something about how to include the
          HTML output of another resource in the called resource's XSL,
          let me know.</div>
        <div style=""><br>
        </div>
        <div style="">Cheers</div>
        <div style="">
          Bas</div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
    </blockquote>
    <br>
  </body>
</html>