cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jörg Heinicke <jheini...@virbus.de>
Subject Re: need help. problems with an <xsl:if> condition
Date Fri, 24 Aug 2001 14:34:46 GMT
Hi Lucian,

this is a general XML/XSL-problem and you should ask such problems to such a 
list.
Furthermore this is one of the classical problems: the text-node of 
KT_FormState contains line breaks because of your XML-file. I suggest to 
rewrite your XML without such line breaks in the text-nodes:

<KT_FormState>Detail</KT_FormState>

Another help would be to test for "contains(/page/.../text(),'Detail')", but 
maybe it's not exact enough.

Hope this helps,

Joerg


Lucian COZMA wrote:
> I have a problem with an xsl:if in a .xsl file.
>  
>           <xsl:if test="/page/querystring/KT_FormState/text()='Detail'">
>            <xsl:value-of select="page/querystring/KT_FormState"/>
>           </xsl:if>
> 
> the condition never evaluates true.
> 
> Help !
> 
> Thanx.
> 
> 
> the xml file looks like this:
> 
> <page>
> 
> <querystring>
>  <value>
>   <xsp:expr>request.getQueryString()</xsp:expr>
>  </value>
>  <KT_FormState>
>   Detail
>  </KT_FormState>
>  <KT_recordId>
>   1
>  </KT_recordId> 
> </querystring>
> </page>


---------------------------------------------------------------------
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: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


Mime
View raw message