Alternatively, if it is applicable, you can use the LET function: 
"smf:if" to do if conditionals in order to avoid complex JSP tags. 
Another way is using this pattern:

OPTIONAL{
    FILTER( ?master = true ) .
    # these triples will be matched only if ?master = true
}
OPTIONAL{
    FILTER( ?master = false ) .
    # these triples will be matched only if ?master = false
}

Gokhan


Scott Henninger wrote:
> James;  The output of clsRow.master is a Jena Literal, so you will
> need to add the ^^<xsd type> in the comparison.  For example:
>   <c:if test="${clsRow.master == 'true^^http://www.w3.org/2001/
> XMLSchema#boolean'}">true</c:if>
>
> -- Scott
>
> On Nov 17, 10:26 am, jlapalme <[EMAIL PROTECTED]> wrote:
>   
>> Hi,
>>
>> I have a JSP template with the following code.
>> <b><sparql:out node="${clsRow.master}" /></b>
>> <c:if test="${clsRow.master == 'true'}">true</c:if>
>>
>> Here the master variable commes from a dataproperty of type bool.
>> The sparql:out works but the if doesn't
>>
>> the output should be true true and I get true.
>>
>> Cheers,
>>
>> James
>>     
> >
>   


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TopBraid Composer Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/topbraid-composer-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to