xsl-list
[Top] [All Lists]

And operator usage in XSL

2004-07-27 07:34:30
Hi,

 I am following criteria in my XSL:Fo, for classifying
the page layout... 


<xsl:when test="((substring-before($WidthTmp,'pt')
&lt;= 845.0) and (substring-before($HeightTmp,'pt')
&gt; 598.0)) and substring-before($WidthTmp,'pt') &lt;
substring-before($HeightTmp,'pt') ">
                <xsl:call-template
name="Page_Layout_SetupA4Portrait_FitToFrame" />
</xsl:when> 
                        
<xsl:when test="(substring-before($WidthTmp,'pt')
&gt;= 598.0) and (substring-before($HeightTmp,'pt')
&lt;= 845.0) and (substring-before($HeightTmp,'pt')
&lt; substring-before($WidthTmp,'pt'))">
        <xsl:call-template
name="Page_Layout_SetupA4Landscape_FitToFrame"/>
</xsl:when> 


Here I am using "and" operator.. Is it correct?
my inputs are width="838.8pt" height="607.68pt"

While running this code to generate a pdf, I getting 
the following error msg..
Exceptionfile:///C:/Attachment.fo:15:2125 No
meaningful layout in
block after many attempts.  Infinite loop is assumed. 
Processing halted.

Can you identify where is the problem?
thanks in advance.
Regards,
Arul


        
                
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!
http://promotions.yahoo.com/new_mail