cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kazmír, Jaroslav" <>
Subject Logicsheet - condition
Date Thu, 31 Oct 2002 12:09:39 GMT
Hello all users,
I have one easy example, which doesn't work. I look at it for a long time
and I don't know if I made some
Important mistake in codewriting or why id didn't work :-(
I made a own logicsheet xsp-formfun like this:
<?xml version="1.0" encoding="ISO-8859-1"?>
  <xsl:variable name="prefix">xsp-formfun</xsl:variable>
  <xsl:template match="xsp:page">
      <xsl:apply-templates select="@*"/>
  <xsl:template match="xsp-formfun:check">
   <xsl:variable name="tempname">
     <xsl:copy-of select="name"/>
     <xsl:when test="normalize-space($tempname)='true'">
  TEMPNAME:<xsl:copy-of select="$tempname"/>
  <!-- This template simply copies stuff that doesn't match other -->
  <!-- templates and applies templates to any children.           -->
  <xsl:template match="@*|node()" priority="-1">
      <xsl:apply-templates select="@*|node()"/>
In .XSP I have these lines:
                <name><xsp-request:get-parameter name="visited"/></name>
And I know, that variable visibled has a true value, but by the calling
xsp-formfun:check the both variables
Name and also $tempname has also true value (I see it in the output window),
but the contition is never passed
-          only the <xsl:otherwise> part.
Do you know why and which type of mistake I did?
Thanx a lot.
Jaroslav Kazmir
  Jaroslav Kazmir
  Institute of Information Systems & Information Management
  JOANNEUM RESEARCH Forschungsgesellschaft mbH
  Steyrergasse 17, A-8010 Graz, AUSTRIA
  phone:  +43-316-876-1140                 fax: +43-316-876-1191
  web: <> 

View raw message