You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Adrian Geissel <ag...@zenark.com> on 2001/07/11 17:36:35 UTC

[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>




Re: [C1] Generating a HTML frameset using XML/XSLT

Posted by Paul Sprague <sp...@yahoo.com>.
<?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">
        <xsl:attribute name="noresize"/>
      </frame>
      <frameset  cols="140,*">
        <frame name="side" src="{@frame-sidebar}" marginwidth="0" marginheight="0" scrolling="no" frameborder="0">
          <xsl:attribute name="noresize"/>
        </frame>
        <frame name="main" src="{@frame-main}" marginwidth="0" marginheight="0" scrolling="auto" frameborder="0"/>
      </frameset>
    </frameset>
  </html>
</xsl:template>
 
</xsl:stylesheet>
  ----- Original Message ----- 
  From: Adrian Geissel 
  To: cocoon-users@xml.apache.org 
  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>




Re: [C1] Generating a HTML frameset using XML/XSLT

Posted by Adrian Geissel <ag...@zenark.com>.
Thanks - it was the SAX parser error message that was throwing me - I had
copied the HTML and made that fatal assumption that it was valid (XML)

Cheers
Adrian

----- Original Message -----
From: Benoît Chauvet <be...@chauvet.com>
To: <co...@xml.apache.org>
Sent: Wednesday, July 11, 2001 6:00 PM
Subject: Re: [C1] Generating a HTML frameset using XML/XSLT


> I think the error message is clear enough...
> The SAX parser waits for an "=" character after the attribute "FRAME"...
>
> Maybe it doesn't allow the '-' character you use...
>
> Try <mystuff:data frametop="top.html" framesidebar="sidebar.html"
framemain="main.html"/> instead...
>
> --
> Benoît Chauvet
>
>
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>
> To unsubscribe, e-mail: <co...@xml.apache.org>
> For additional commands, e-mail: <co...@xml.apache.org>
>
>



---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


Re: [C1] Generating a HTML frameset using XML/XSLT

Posted by Benoît Chauvet <be...@chauvet.com>.
I think the error message is clear enough...
The SAX parser waits for an "=" character after the attribute "FRAME"...

Maybe it doesn't allow the '-' character you use...

Try <mystuff:data frametop="top.html" framesidebar="sidebar.html" framemain="main.html"/> instead...

--
Benoît Chauvet


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


Re: [C1] Generating a HTML frameset using XML/XSLT

Posted by Paul Sprague <sp...@yahoo.com>.
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 ----- 
  From: Adrian Geissel 
  To: cocoon-users@xml.apache.org 
  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>