Hey,
    I can't seem to tell if my last posted got to the mailing list. So sorry if this is redundant.
   
The problem is that the noresize key word is not in the form of a name="value" pair.
 
<FRAME name="top" src="{@frame-top}" marginwidth="10" marginheight="10" scrolling="no" frameborder="0" noresize/>
should be this, in both places where noresize is used.
 
<frame name="top" src="{@frame-top}" marginwidth="10" marginheight="10" scrolling="no" frameborder="0">
    <xsl:attribute name="noresize"/>
</frame>

----- Original Message -----
Sent: Wednesday, July 11, 2001 11:36 AM
Subject: [C1] Generating a HTML frameset using XML/XSLT

Hi,
 
We are just trying to put a dynamic frameset as the primary entry-point for our application, and using all that we've learnt so far, we created an XSP file with an associated stylesheet (included at the end of this mail). We get an unusual SAX exception when accessing the frameset:
 
org.apache.cocoon.processor.ProcessorException: Could not associate stylesheet to document:  error reading C:\tomcat\webapps\zdam\index2html.xsl: org.xml.sax.SAXParseException: Attribute name "FRAME" must be followed by the '=' character.
 
Has someone come across this before or successfully implemented framesets?
All help is gladly accepted.
Thanks,
Adrian
 
Cocoon 1.8.2
Tomcat 2.3
Windows NT
 
=================================
XSP simply generates the following:
 
<mystuff:data frame-top="top.html" frame-sidebar="sidebar.html" frame-main="main.html"/>
 
=================================
<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  xmlns:xsp="http://www.apache.org/1999/XSP/Core"
  xmlns:mystuff="mystuff.com"
 >
 
 <xsl:template match="mystuff:data">
 
  <html>
    <head>
      <title></title>
    </head>
 
    <frameset rows="100,*">
      <FRAME name="top" src="{@frame-top}" marginwidth="10" marginheight="10" scrolling="no" frameborder="0" noresize/>
      <frameset  cols="140,*">
        <frame name="side" src="{@frame-sidebar}" marginwidth="0" marginheight="0" scrolling="no" frameborder="0" noresize/>
        <frame name="main" src="{@frame-main}" marginwidth="0" marginheight="0" scrolling="auto" frameborder="0"/>
      </frameset>
    </frameset>
  </html>
</xsl:template>
 
</xsl:stylesheet>
 
 

Reply via email to