Hi, I have attached both XML file and Stylesheet to this mail. Please use them to reproduce the problem.
Thanks, Venkat -----Original Message----- From: Rhett Aultman [mailto:[EMAIL PROTECTED]] Sent: Monday, October 14, 2002 8:35 AM To: [EMAIL PROTECTED] Subject: RE: Infinite Loop Indeed. I'm working on the infinite loop issue in FOP (when I get time to), so if I saw the actual FO document (your XML after having a stylesheet applied), I could probably tell you what's going wrong in minutes. -----Original Message----- From: Oleg Tkachenko [mailto:[EMAIL PROTECTED]] Sent: Saturday, October 12, 2002 1:49 PM To: [EMAIL PROTECTED] Subject: Re: Infinite Loop Venkata Rao Nadella wrote: > I am trying to convert following XML file to PDF format using FOP. But > it goes into infinite loop. Can somebody help me in figuring out why > this is happening? What your xsl stylesheet looks like? Without seeing it nobody can help you. -- Oleg Tkachenko eXperanto team Multiconn International, Israel --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
<?xml version="1.0"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format"> <xsl:variable name="NotAvailable1">--</xsl:variable> <xsl:template match="/"> <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"> <fo:layout-master-set> <fo:simple-page-master master-name="A4" page-width="216mm" page-height="279.5mm" margin-top="0.5in" margin-left="0.5in" margin-right="0.5in"> <fo:region-before extent="1.5in"/> <fo:region-after extent="1.0in"/> <fo:region-start extent="1.0in"/> <fo:region-end extent="1.0in"/> <fo:region-body margin-top="1.04in" margin-bottom="1.04in"/> </fo:simple-page-master> </fo:layout-master-set> <fo:page-sequence master-reference="A4" initial-page-number="1" language="en" country="us"> <fo:flow flow-name="xsl-region-body"> <fo:block font-size="10px" font-family="sans-serif"> <fo:table table-layout="fixed"> <fo:table-column column-width="140pt"/> <fo:table-column column-width="5pt"/> <fo:table-column column-width="378pt"/> <fo:table-header> <fo:table-row font-weight="bold" background-color="#e7e8dd" line-height="16pt"> <fo:table-cell number-columns-spanned="3"> <fo:block>Annuity Options</fo:block> </fo:table-cell> </fo:table-row> </fo:table-header> <fo:table-body> <fo:table-row> <fo:table-cell font-weight="bold"> <fo:block>Annuity Minimum Amount ($)</fo:block> </fo:table-cell> <fo:table-cell> <fo:block>  </fo:block> </fo:table-cell> <fo:table-cell> <xsl:call-template name="get-value"> <xsl:with-param name="node" select="DATAEXPRESS/CONTRACT//Annuity_Min_Amt"/> </xsl:call-template> </fo:table-cell> </fo:table-row> </fo:table-body> </fo:table> <fo:table table-layout="fixed"> <fo:table-column column-width="398pt"/> <fo:table-column column-width="10pt"/> <fo:table-column column-width="50pt"/> <fo:table-column column-width="10pt"/> <fo:table-column column-width="55pt"/> <fo:table-header> <fo:table-row> <fo:table-cell font-weight="bold"> <fo:block>Name</fo:block> </fo:table-cell> <fo:table-cell> <fo:block>    </fo:block> </fo:table-cell> <fo:table-cell font-weight="bold"> <fo:block>Interest Rate (%)</fo:block> </fo:table-cell> <fo:table-cell> <fo:block>    </fo:block> </fo:table-cell> <fo:table-cell font-weight="bold"> <fo:block>Assumed Inv Rate ($)</fo:block> </fo:table-cell> </fo:table-row> </fo:table-header> <fo:table-body> <xsl:variable name="NoOfNodes"> <xsl:value-of select="count(DATAEXPRESS/ANNUITY_OPTIONS/AnnuityOption)"/> </xsl:variable> <xsl:choose> <xsl:when test="$NoOfNodes>0"> <xsl:apply-templates select="DATAEXPRESS/ANNUITY_OPTIONS/AnnuityOption"/> </xsl:when> <xsl:otherwise> <xsl:call-template name="get-NotAvailable3"/> </xsl:otherwise> </xsl:choose> <fo:table-row keep-with-previous="always"> <fo:table-cell> <fo:block> </fo:block> </fo:table-cell> </fo:table-row> </fo:table-body> </fo:table> </fo:block> </fo:flow> </fo:page-sequence> </fo:root> </xsl:template> <xsl:template name="get-value"> <xsl:param name="node"/> <xsl:choose> <xsl:when test="$node!=''"> <fo:block><xsl:value-of select="$node"/></fo:block> </xsl:when> <xsl:otherwise> <fo:block><xsl:value-of select="$NotAvailable1"/></fo:block> </xsl:otherwise> </xsl:choose> </xsl:template> <xsl:template name="get-NotAvailable3"> <fo:table-row> <fo:table-cell> <fo:block>--</fo:block> </fo:table-cell> <fo:table-cell> <fo:block>    </fo:block> </fo:table-cell> <fo:table-cell> <fo:block>--</fo:block> </fo:table-cell> <fo:table-cell> <fo:block>    </fo:block> </fo:table-cell> <fo:table-cell> <fo:block>--</fo:block> </fo:table-cell> </fo:table-row> </xsl:template> <xsl:template match="AnnuityOption"> <xsl:variable name="backgroundcolor"> <xsl:choose> <xsl:when test="position() mod 2 = 1">#FFFFFF</xsl:when> <xsl:otherwise>#EFEFEF</xsl:otherwise> </xsl:choose> </xsl:variable> <fo:table-row background-color="{$backgroundcolor}" keep-together="always"> <fo:table-cell> <xsl:choose> <xsl:when test="name()='AnnuityOption'"> <xsl:call-template name="get-value"> <xsl:with-param name="node" select="./Name"/> </xsl:call-template> </xsl:when> </xsl:choose> </fo:table-cell> <fo:table-cell> <fo:block>    </fo:block> </fo:table-cell> <fo:table-cell> <xsl:choose> <xsl:when test="name()='AnnuityOption'"> <xsl:call-template name="get-value"> <xsl:with-param name="node" select="./InterestCharge"/> </xsl:call-template> </xsl:when> </xsl:choose> </fo:table-cell> <fo:table-cell> <fo:block>    </fo:block> </fo:table-cell> <fo:table-cell> <xsl:choose> <xsl:when test="name()='AnnuityOption'"> <xsl:call-template name="get-value"> <xsl:with-param name="node" select="./Assumed_Inv_Rate"/> </xsl:call-template> </xsl:when> </xsl:choose> </fo:table-cell> </fo:table-row> </xsl:template> </xsl:stylesheet>
<?xml version="1.0" encoding="ISO-8859-1"?> <DATAEXPRESS> <ANNUITY_OPTIONS> <AnnuityOption Seq="1"> <Name DocID="442071" StartOffset="158539" FootNote="">Life Annuity</Name> <InterestCharge DocID="442071" StartOffset="166915" FootNote=""><p>Fixed Annuity payments are the same each month. We determine the dollar amount of each Fixed Annuity payment using the fixed portion of your Adjusted Account Value and the applicable Annuity Payment Rates. These will be either (1) the rates in your Contract, which are based on a minimum guaranteed interest rate of 3% per year, compounded annually, or (2) new rates we have published and are using on the Annuity Commencement Date, if they are more favorable. See ''Annuity Payment Rates.''</p></InterestCharge> <Assumed_Inv_Rate DocID="442071" StartOffset="165353" FootNote="">3</Assumed_Inv_Rate> </AnnuityOption> </ANNUITY_OPTIONS> </DATAEXPRESS>
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]