cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brent L Johnson" <>
Subject Stylesheets using Logicsheets
Date Thu, 18 Oct 2001 19:04:13 GMT
Can a stylesheet use tags from a custom logicsheet?  I'm still having the
problem with Cocoon generating a NumberFormatException for no apparent
reason.  To get around this, I'm keeping my HTML tags for the header in the
stylesheet (by keeping it there instead of copying it into the logicsheet, I
won't get the exception).

Problem is, the header should look different depending on some Java logic
(i.e. a logicsheet).  Here's a sample of the top portion of my stylesheet...

<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
  <xsl:template match="header">
        <table width="760" border="0" cellpadding="0"
              <img src="/images/head_01.gif" width="263" height="66" />

This generates a namespace error, of course.  I noticed this and added my
custom namespace for my header logicsheet and I no longer got the error.
But, the stylesheet isn't actually making the header:loginButton call to my
logicsheet.  It's simply printing out
<header:loginButton></header:loginButton> in the generated HTML.  In my XML
document I do have that logicsheet specified - heres a quick sample:

<?xml version="1.0"?>
<?cocoon-process type="xsp"?>
<?xml-logicsheet href="aolSchool.xsl"/?>
<?xml-logicsheet href="/common/header-new.xsl"/?>
<?xml-logicsheet href="/common/rightbar.xsl"/?>
<?cocoon-process type="xslt"?>
<?xml-stylesheet href="/common/main2.xsl" type="text/xsl"?>
<xsp:page language="java"
    <title>Test Doc</title>

Is there a way I can accomplish this without having to put the logic in the
XML doc?


- Brent

Please check that your question has not already been answered in the
FAQ before posting. <>

To unsubscribe, e-mail: <>
For additional commands, e-mail: <>

View raw message