Jump to content

Frameset


paetje

Recommended Posts

In my HTML desgin I used a Frameset. Now I made the site with XML and XSL, but I can't figure ou thow to use a Frameset within XSL. :( The alternitive I use is an HTML file witch contains a Frameset. In this frameset I'm calling the XML files. :) Does anyone know if I can use framesets within XSL or is this HTML alternitive a correct way. :)

Link to comment
Share on other sites

You may do something like this:

<?xml version="1.0" encoding="windows-1251"?><xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"><xsl:output method="html" version="1.1" encoding='UTF-8' indent='yes' doctype-public="-//W3C//DTD XHTML 1.1//EN"/><xsl:template match="/"><html xmlns="http://www.w3.org/1999/xhtml">	<xsl:apply-templates /></html></xsl:template><xsl:include href="header.xsl" /><xsl:include href="body.xsl" /></xsl:stylesheet>

The XML file this would be attached to would be the XML files that contain the real content. The included XSLTs (header.xsl and body.xsl in this case) should contain whatever you want to put inside theese parts and the header should include reference to another XML document (using the document() function) that would display their content.This is actually pretty neat to get rid of the frames and still keep the flexibility of it. Infact... hey! You were the one who showed me this method :) .

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...