XHTML & SSI

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Bond13579

    XHTML & SSI

    Hi! I'm not an expert in XSL and XHTML so I need a little help!

    I have an XSL file that ends up using the ENTITY (varname) SYSTEM
    (file.xhtml) and then calls this variable which in turn outputs the
    content in this .xhtml.

    The problem is that in the XHTML file I want to do include. I tried
    doing a Server Side Include (SSI), but XHTML seems to ignore it. So
    how can I do an include on a file from inside an XHTML file?

    If you can put a little code snippet for me, that would be great.
    Thanks!
  • David Dorward

    #2
    Re: XHTML & SSI

    Bond13579 wrote:
    [color=blue]
    > The problem is that in the XHTML file I want to do include. I tried
    > doing a Server Side Include (SSI), but XHTML seems to ignore it. So
    > how can I do an include on a file from inside an XHTML file?[/color]

    The same way as absolutely any other file.

    You just have to have your server configured to recognise that said file is
    one that should be parsed for SSI statements.

    --
    David Dorward <http://blog.dorward.me .uk/> <http://dorward.me.uk/>
    Home is where the ~/.bashrc is

    Comment

    • Claire Tucker

      #3
      Re: XHTML &amp; SSI

      On 16 Jul 2004 05:47:20 -0700, nicholasparnell @hotmail.com (Bond13579)
      wrote:
      [color=blue]
      >Hi! I'm not an expert in XSL and XHTML so I need a little help!
      >
      >I have an XSL file that ends up using the ENTITY (varname) SYSTEM
      >(file.xhtml) and then calls this variable which in turn outputs the
      >content in this .xhtml.
      >
      >The problem is that in the XHTML file I want to do include. I tried
      >doing a Server Side Include (SSI), but XHTML seems to ignore it. So
      >how can I do an include on a file from inside an XHTML file?
      >[/color]

      I'm not entirely sure I've followed you correctly, so let me first
      describe what I think you're trying to do.

      You have an XSLT document to map some XML document to XHTML. As part
      of your output, you include XHTML content from a separate document
      using an XML entity reference. Your resulting XHTML document includes
      some server-side includes directives which you'd like the server to
      act on.

      I assume, then, that whatever is doing your XSLT transformation is
      running on your server and serving the resulting XHTML to the client.
      You need a way to sneak in the SSI processor between the XSLT
      processor and the content being sent off to the client.

      How you do this is a server-side issue and thus depends on what server
      software you are running. You will probably get a more in-depth answer
      if you post your question in one of the newsgroups under:
      comp.infosystem s.www.servers.*

      Just pick the one of the OS on which your web server is running.

      As an alternative, you might like to try using an XML entity reference
      from your HTML document, too. Your XSLT processor, assuming it "does"
      XML properly, should handle that just as well as it did in the XSLT
      document. If you want more help with *that* you'll have to find an XML
      group, but I don't know any off the top of my head.

      Take care,
      -Claire

      Comment

      Working...