Re: can i assgin value to a global variable inside template
Eldho George wrote: I have problem with xsl:variable.I have a variable 'bordervalue' inside xsl:stylesheet. I am not assign any value to this variable.But inside a template i want to assign some value to this variable. FAQ. See http://www.dpawson.co.uk/xsl/sect2/N8090.html How can i solve this problem? This depends on your original problem. Ask on the XSL list http://www.mulberrytech.com/xsl/xsl-list/ with a reasonably complete description on what you actually want to achieve. You'll get bonus points for using a mail client which doesn't mangle white space, punctuation, spelling, grammar and/or semantics of your post. J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to write equations for FOP ?
Thanks all, I will try it. Vasek John Burgess wrote: Vasek below is a message I sent a couple of hours ago which was refused because of the jar. This time I've just attached the source file - it will need to go in a com\riskdecisions\utils folder. John Vasek I attach the jar which you need to put on your class path or otherwise = make available to your xslt engine. Then what follows is some simplified extracts from my xslt. !-- first we need to declare the imagesize class -- xsl:stylesheet version=3D"1.0" xmlns:xsl=3D"http://www.w3.org/1999/XSL/Transform" xmlns:fo=3D"http://www.w3.org/1999/XSL/Format" = xmlns:imgsize=3D"http://xml.apache.org/xslt/Java/com.riskdecisions.utils.= imagesize.imageSize" !-- this variable is used to keep the desired dpi setting for images = in one place -- xsl:variable name=3D"dpi" select=3D"150" / !-- we're looking for image source=3D"filename" / -- there are = actually lots of other attributes but I've removed the code for them = from what follows -- xsl:template match=3D"image" xsl:variable name=3D"ifile" xsl:textsrc/images//xsl:text xsl:value-of = select=3D"@source"/xsl:text.jpg/xsl:text /xsl:variable fo:block space-before=3D"10pt" space-after=3D"10pt" = text-align=3D"center" fo:external-graphic scaling-method=3D"integer-pixels" = src=""> xsl:attribute name=3D"width" xsl:variable name=3D"imgt" select=3D'imgsize:new($ifile)'/ = !-- instantiate imgsize -- xsl:variable name=3D"img_width" select=3D'imgsize:getWidth( = $imgt )'/ !-- call getwidth -- xsl:value-of select=3D'$img_width div $dpi'/in !--convert = the pixels to inches-- /xsl:attribute /fo:external-graphic /xsl:template - Original Message - From: Vaclav PEROUTKA To: [EMAIL PROTECTED] Sent: Monday, September 13, 2004 3:24 PM Subject: Re: How to write equations for FOP ? John, it would be nice to have it. Then I could use width and height in percent to recompute the scale don't I ? Anyway I am not sure if I am able to integrate it into FOP because I started with XML and XSLT week ago what my colleagues did not finish... Thanks, Vasek John Burgess wrote: Vasek By default fop assumes bitmaps are 72dpi so it will spread a 144x144 pixel bitmap across 2 inches in width and height. However, if you tell it the size you want ie width="1cm" height="1cm" then it will produce the bitmap at that size. If your bitmaps are all of different sizes then I have written a java class for use as an xslt extension that reads the bitmap and reports back the width and height in pixels. I can submit the source code and the jar if there's interest - I've only tested it with jpegs but it should work with any bitmap type supported by the javax.imageio package. I believe there is a plug in that will do GIFs though it's not part of the standard distribution because of the lzw patent problem. John - Original Message - From: "Vaclav PEROUTKA" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, September 13, 2004 2:17 PM Subject: Re: How to write equations for FOP ? Hi Pascal, thanks for an answer but I am not sure if it solves my problem. It still generates GIF images with resolution of 72dpi. And for this resolution I see pixels - formulas are very rough. For SVG it looks it is only the bitmap wrapper, isn't it ? Vasek Pascal Sancho wrote: I have found elsewhere that J.Pietschmann then Jeremias Maerki wrote respectively following info about MATHML: There is a FOP MathML extension using JEuclid in the CVS repository. You can check it out (from the maintenance branch), build FOP and create a servicec entry for the MathML element mapping (there should be a sample), it should work then. The MathML extension is in CVS HEAD under examples/mathml, not in the maintenance branch. And it will probably take a bit to adjust it for FOP 0.20.5. http://cvs.apache.org/viewcvs.cgi/xml-fop/examples/mathml/ Pascal -Message d'origine- De : Pascal Sancho Envoy : lundi 13 septembre 2004 14:47 : [EMAIL PROTECTED] Objet : RE: How to write equations for FOP ? Hi, I think that a good way is to generate svg code embedded in a fo:instream-foreign-object. You can visit http://xml.apache.org/fop/graphics.html#svg-pdf-graphics. Pascal -Message d'origine- De : Vaclav PEROUTKA [mailto:[EMAIL PROTECTED]] Envoy : lundi 13 septembre 2004 14:24 : [EMAIL PROTECTED] Objet : How to write equations for FOP ? Hello list, I would like to know how can
Please help in XSLT
Hi Everybody, Please help. I have a XML file in that I have parent tags and two child tag. Example : a b /b c i /i j /j /c i /i j /j c i /i j /j /c /a I need XSLT solutions to: 1) How I can implement, every repeat of c I have to combine the content of b. 2) How I can display the content of i and j in a single row with : colon as delimiter. Thanks in advance Bye, Bhaskar DISCLAIMER:This message contains privileged and confidential information and is intended only for the individual named.If you are not the intended recipient you should not disseminate,distribute,store,print, copy or deliver this message.Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system.E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted,corrupted,lost,destroyed,arrive late or incomplete or contain viruses.The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version.
RE: Please help in XSLT
I hope the following code will fulfill your needs xsl:for-each select =a xsl:value-of select=b xsl:for-each select=c xsl:value-of select=I/ : xsl:value-of select=j/ /xsl:for-each /xsl:for-each Regards Jerald S -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 14, 2004 2:30 PM To: [EMAIL PROTECTED] Subject: Please help in XSLT Hi Everybody, Please help. I have a XML file in that I have parent tags and two child tag. Example : a b /b c i /i j /j /c i /i j /j c i /i j /j /c /a I need XSLT solutions to: 1) How I can implement, every repeat of c I have to combine the content of b. 2) How I can display the content of i and j in a single row with : colon as delimiter. Thanks in advance Bye, Bhaskar DISCLAIMER: This message contains privileged and confidential information and is intended only for the individual named.If you are not the intended recipient you should not disseminate,distribute,store,print, copy or deliver this message.Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system.E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted,corrupted,lost,destroyed,arrive late or incomplete or contain viruses.The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. Confidentiality Notice The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender at Wipro or [EMAIL PROTECTED] immediately and destroy all copies of this message and any attachments.
RE: Please help in XSLT
You didn't give us a clear idea of what the output should look like. For example, what XML structure is implied by the content of i and j in a single row? Do you want an XML element or simply an unstructured text output? The following is a solution to what I guessed your desired output to be. Please be specific on the output format if you need more help. ?xml version=1.0 encoding=UTF-8 ? xsl:stylesheet version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xsl:output method=xml indent=yes encoding=UTF-8 / xsl:template match=/ xsl:apply-templates / /xsl:template xsl:template match=a xsl:apply-templates / /xsl:template xsl:template match=c c xsl:value-of select=. xsl:value-of select=preceding-sibling::b / xsl:apply-templates / /c /xsl:template xsl:template match=i xsl:value-of select=.:xsl:value-of select=following-sibling::j / /xsl:template xsl:template match=b / xsl:template match=j / /xsl:stylesheet -- Charles Knell [EMAIL PROTECTED] - email -Original Message- From: [EMAIL PROTECTED] Sent: Tue, 14 Sep 2004 14:29:43 +0530 To: [EMAIL PROTECTED] Subject: Please help in XSLT Hi Everybody, Please help. I have a XML file in that I have parent tags and two child tag. Example : a b /b c i /i j /j /c i /i j /j c i /i j /j /c /a I need XSLT solutions to: 1) How I can implement, every repeat of c I have to combine the content of b. 2) How I can display the content of i and j in a single row with ':' colon as delimiter. Thanks in advance Bye, Bhaskar DISCLAIMER: This message contains privileged and confidential information and is intended only for the individual named.If you are not the intended recipient you should not disseminate,distribute,store,print, copy or deliver this message.Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system.E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted,corrupted,lost,destroyed,arrive late or incomplete or contain viruses.The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. Hi Everybody, Please help. I have a XML file in that I have parent tags and two child tag. Example : a b /b c i /i j /j /c i /i j /j c i /i j /j /c /a I need XSLT solutions to: 1) How I can implement, every repeat of c I have to combine the content of b. 2) How I can display the content of i and j in a single row with : colon as delimiter. Thanks in advance Bye, Bhaskar DISCLAIMER:This message contains privileged and confidential information and is intended only for the individual named.If you are not the intended recipient you should not disseminate,distribute,store,print, copy or deliver this message.Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system.E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted,corrupted,lost,destroyed,arrive late or incomplete or contain viruses.The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Please help in XSLT
Hi Charles, Thanks for your reply. Now I need some clarification so I am sending the format. XML content: Curve CurveLevelInfo RecoveryRate0.100/RecoveryRate Liquidity0/Liquidity DefaultedDate2004-07-22+04:00/DefaultedDate LastUpdate2004-07-22T00:00:00+04:00/LastUpdate LastUpdateUserwhinbr/LastUpdateUser TraderFUKUDA/Trader StatusACTIVE/Status SectorCONSUMER FINANCE/Sector CountryJapan/Country RegionTOKYO/Region CurveTypeSingle Name/CurveType BookTOKYO/Book SourceOfficial/Source /CurveLevelInfo SourcedPoint methodology=3 Tenor3Y/Tenor BidRate0/BidRate MidRate101./MidRate OfferRate0/OfferRate /SourcedPoint SourcedPoint methodology=3 Tenor2Y/Tenor BidRate0/BidRate MidRate89./MidRate OfferRate0/OfferRate /SourcedPoint SourcedPoint methodology=3 Tenor6M/Tenor BidRate0/BidRate MidRate65./MidRate OfferRate0/OfferRate /SourcedPoint SourcedPoint methodology=3 Tenor30Y/Tenor BidRate0/BidRate MidRate245./MidRate OfferRate0/OfferRate /SourcedPoint SourcedPoint methodology=3 Tenor4Y/Tenor BidRate0/BidRate MidRate113./MidRate OfferRate0/OfferRate /SourcedPoint /curve Expected output is : 0.100:0:2004-07-22+04:00:2004-07-22T00:00:00+04:00:whinbr:FUKUDA:ACTIVE: CONSUMER FINANCE:Japan:TOKYO:Single Name:TOKYO:Official:3Y::0:101.:0 0.100:0:2004-07-22+04:00:2004-07-22T00:00:00+04:00:whinbr:FUKUDA:ACTIVE: CONSUMER FINANCE:Japan:TOKYO:Single Name:TOKYO:Official:2Y:0:89.:0 0.100:0:2004-07-22+04:00:2004-07-22T00:00:00+04:00:whinbr:FUKUDA:ACTIVE: CONSUMER FINANCE:Japan:TOKYO:Single Name:TOKYO:Official:6M:0:65.:0 0.100:0:2004-07-22+04:00:2004-07-22T00:00:00+04:00:whinbr:FUKUDA:ACTIVE: CONSUMER FINANCE:Japan:TOKYO:Single Name:TOKYO:Official:30Y:0:245.:0 0.100:0:2004-07-22+04:00:2004-07-22T00:00:00+04:00:whinbr:FUKUDA:ACTIVE: CONSUMER FINANCE:Japan:TOKYO:Single Name:TOKYO:Official:4Y:0:113.:0 Here every repeat of tag SourcePoint and have append the content of tag CurveLevelInfo. With Regards, Bhaskar -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 14, 2004 5:36 PM To: [EMAIL PROTECTED] Subject: RE: Please help in XSLT You didn't give us a clear idea of what the output should look like. For example, what XML structure is implied by the content of i and j in a single row? Do you want an XML element or simply an unstructured text output? The following is a solution to what I guessed your desired output to be. Please be specific on the output format if you need more help. ?xml version=1.0 encoding=UTF-8 ? xsl:stylesheet version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xsl:output method=xml indent=yes encoding=UTF-8 / xsl:template match=/ xsl:apply-templates / /xsl:template xsl:template match=a xsl:apply-templates / /xsl:template xsl:template match=c c xsl:value-of select=. xsl:value-of select=preceding-sibling::b / xsl:apply-templates / /c /xsl:template xsl:template match=i xsl:value-of select=.:xsl:value-of select=following-sibling::j / /xsl:template xsl:template match=b / xsl:template match=j / /xsl:stylesheet -- Charles Knell [EMAIL PROTECTED] - email -Original Message- From: [EMAIL PROTECTED] Sent: Tue, 14 Sep 2004 14:29:43 +0530 To: [EMAIL PROTECTED] Subject: Please help in XSLT Hi Everybody, Please help. I have a XML file in that I have parent tags and two child tag. Example : a b /b c i /i j /j
Answer- XSLT
Bhaskar, I solved the Problem and I tested with XSLT Transformer its working fine, take this ?xml version=1.0 encoding=UTF-8? xsl:stylesheet version=1.0 xmlns:xsl=http://www.w3.org./1999/XSL/Transform xsl:output method=xml version=1.0 encoding=UTF-8 indent=yes/ xsl:template match=Curve xsl:value-of select=CurveLevelInfo/RecoveryRate: xsl:value-of select=CurveLevelInfo/Liquidity: xsl:value-of select=CurveLevelInfo/DefaultedDate: xsl:value-of select=CurveLevelInfo/LastUpdate: xsl:value-of select=CurveLevelInfo/Trader: xsl:value-of select=CurveLevelInfo/Status: xsl:value-of select=CurveLevelInfo/Sector: xsl:value-of select=CurveLevelInfo/Country: xsl:value-of select=CurveLevelInfo/Region: xsl:value-of select=CurveLevelInfo/CurveType: xsl:value-of select=CurveLevelInfo/Book: xsl:value-of select=CurveLevelInfo/Source:: xsl:for-each select=SourcedPoint xsl:value-of select=Tenor: xsl:value-of select= BidDate:: xsl:value-of select=MidDate: xsl:value-of select= OfferDate /xsl:for-each /xsl:template /xsl:stylesheet regards Jerald S -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 14, 2004 3:10 PM To: Jerald Selvaraj (WT01 - FINANCE - SECURITIES) Subject: RE: Please help in XSLT Hi Jerald, I am sending the XML format and expected output format. XML content: Curve CurveLevelInfo RecoveryRate0.100/RecoveryRate Liquidity0/Liquidity DefaultedDate2004-07-22+04:00/DefaultedDate LastUpdate2004-07-22T00:00:00+04:00/LastUpdate LastUpdateUserwhinbr/LastUpdateUser TraderFUKUDA/Trader StatusACTIVE/Status SectorCONSUMER FINANCE/Sector CountryJapan/Country RegionTOKYO/Region CurveTypeSingle Name/CurveType BookTOKYO/Book SourceOfficial/Source /CurveLevelInfo SourcedPoint methodology=3 Tenor3Y/Tenor BidRate0/BidRate MidRate101./MidRate OfferRate0/OfferRate /SourcedPoint SourcedPoint methodology=3 Tenor2Y/Tenor BidRate0/BidRate MidRate89./MidRate OfferRate0/OfferRate /SourcedPoint SourcedPoint methodology=3 Tenor6M/Tenor BidRate0/BidRate MidRate65./MidRate OfferRate0/OfferRate /SourcedPoint SourcedPoint methodology=3 Tenor30Y/Tenor BidRate0/BidRate MidRate245./MidRate OfferRate0/OfferRate /SourcedPoint SourcedPoint methodology=3 Tenor4Y/Tenor BidRate0/BidRate MidRate113./MidRate OfferRate0/OfferRate /SourcedPoint /curve Expected output is : 0.100:0:2004-07-22+04:00:2004-07-22T00:00:00+04:00:whinbr:FUKUDA:ACTIVE:CONSUMER FINANCE:Japan:TOKYO:Single Name:TOKYO:Official:3Y::0:101.:0 0.100:0:2004-07-22+04:00:2004-07-22T00:00:00+04:00:whinbr:FUKUDA:ACTIVE:CONSUMER FINANCE:Japan:TOKYO:Single Name:TOKYO:Official:2Y:0:89.:0 0.100:0:2004-07-22+04:00:2004-07-22T00:00:00+04:00:whinbr:FUKUDA:ACTIVE:CONSUMER FINANCE:Japan:TOKYO:Single Name:TOKYO:Official:6M:0:65.:0 0.100:0:2004-07-22+04:00:2004-07-22T00:00:00+04:00:whinbr:FUKUDA:ACTIVE:CONSUMER FINANCE:Japan:TOKYO:Single Name:TOKYO:Official:30Y:0:245.:0 0.100:0:2004-07-22+04:00:2004-07-22T00:00:00+04:00:whinbr:FUKUDA:ACTIVE:CONSUMER FINANCE:Japan:TOKYO:Single Name:TOKYO:Official:4Y:0:113.:0 Here every repeat of tag SourcePoint and have append the content of tag CurveLevelInfo. What you have sent is not working. Please help me. Thanks in advance. Regards, Bhaskar From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 14, 2004 2:52 PM To: K S Bhaskar -ICEXT Subject: Please help in XSLT Bhaskar, I hope the following code will fulfill your needs xsl:for-each select =a xsl:value-of select=b xsl:for-each select=c xsl:value-of select=I/ : xsl:value-of select=j/ /xsl:for-each /xsl:for-each Regards Jerald S -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 14, 2004 2:30 PM To: [EMAIL PROTECTED] Subject: Please help in XSLT Hi Everybody, Please help. I have a XML file in that I have parent tags and two child tag. Example : a b /b c i /i j /j /c i /i j /j c i /i j /j /c /a I need XSLT solutions to: 1) How I can implement, every repeat of c I have to combine the content of b. 2) How I can display the content of i and j in a single row with : colon as delimiter. Thanks in advance Bye, Bhaskar DISCLAIMER: This message contains privileged and confidential information and is intended only for the individual named.If you are not the intended recipient you should not disseminate,distribute,store,print, copy or deliver this message.Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system.E-mail
RE: Answer- XSLT
Hi Jerald, Thanks for help. I tried with what you have sent but still I am not getting What I required. Output that what I am getting is : JPY ACOM IPV 2004-08-17+04:00 LDN ICT 0 COB 0.100: 0: 2004-07-22+04:00: 2004-07-22T00:00:00+04:00: whinbr: FUKUDA: ACTIVE: CONSUMER FINANCE: Japan: TOKYO: Single Name: TOKYO: Official: 3Y: 0: 101.: 02Y: 0: 89.: 06M: 0: 65.: 030Y: 0: 245.: 04Y: 0: 113.: 015Y: 0: 215.: 07Y: 0: 155.: 09Y: 0: 185.: 06Y: 0: 140.: 05Y: 0: 125.: 012M: 0: 77.: 08Y: 0: 170.: 010Y: 0: 200.: 020Y: 0: 230.: 0 But what I required is : 0.100:0:2004-07-22+04:00:2004-07-22T00:00:00+04:00:whinbr:FUKUDA:ACTIVE:CONSUMER FINANCE:Japan:TOKYO:Single Name:TOKYO:Official:3Y::0:101.:0 0.100:0:2004-07-22+04:00:2004-07-22T00:00:00+04:00:whinbr:FUKUDA:ACTIVE:CONSUMER FINANCE:Japan:TOKYO:Single Name:TOKYO:Official:2Y:0:89.:0 0.100:0:2004-07-22+04:00:2004-07-22T00:00:00+04:00:whinbr:FUKUDA:ACTIVE:CONSUMER FINANCE:Japan:TOKYO:Single Name:TOKYO:Official:6M:0:65.:0 0.100:0:2004-07-22+04:00:2004-07-22T00:00:00+04:00:whinbr:FUKUDA:ACTIVE:CONSUMER FINANCE:Japan:TOKYO:Single Name:TOKYO:Official:30Y:0:245.:0 0.100:0:2004-07-22+04:00:2004-07-22T00:00:00+04:00:whinbr:FUKUDA:ACTIVE:CONSUMER FINANCE:Japan:TOKYO:Single Name:TOKYO:Official:4Y:0:113.:0 You can observe one in the expected out file , for every SourcedPoint we should repeat the CurveLevelInfo Please Help me. With Regards, Bhaskar From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 14, 2004 5:48 PM To: K S Bhaskar -ICEXT; [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Answer- XSLT Bhaskar, I solved the Problem and I tested with XSLT Transformer its working fine, take this ?xml version=1.0 encoding=UTF-8? xsl:stylesheet version=1.0 xmlns:xsl=http://www.w3.org./1999/XSL/Transform xsl:output method=xml version=1.0 encoding=UTF-8 indent=yes/ xsl:template match=Curve xsl:value-of select=CurveLevelInfo/RecoveryRate: xsl:value-of select=CurveLevelInfo/Liquidity: xsl:value-of select=CurveLevelInfo/DefaultedDate: xsl:value-of select=CurveLevelInfo/LastUpdate: xsl:value-of select=CurveLevelInfo/Trader: xsl:value-of select=CurveLevelInfo/Status: xsl:value-of select=CurveLevelInfo/Sector: xsl:value-of select=CurveLevelInfo/Country: xsl:value-of select=CurveLevelInfo/Region: xsl:value-of select=CurveLevelInfo/CurveType: xsl:value-of select=CurveLevelInfo/Book: xsl:value-of select=CurveLevelInfo/Source:: xsl:for-each select=SourcedPoint xsl:value-of select=Tenor: xsl:value-of select= BidDate:: xsl:value-of select=MidDate: xsl:value-of select= OfferDate /xsl:for-each /xsl:template /xsl:stylesheet regards Jerald S -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 14, 2004 3:10 PM To: Jerald Selvaraj (WT01 - FINANCE - SECURITIES) Subject: RE: Please help in XSLT Hi Jerald, I am sending the XML format and expected output format. XML content: Curve CurveLevelInfo RecoveryRate0.100/RecoveryRate Liquidity0/Liquidity DefaultedDate2004-07-22+04:00/DefaultedDate LastUpdate2004-07-22T00:00:00+04:00/LastUpdate LastUpdateUserwhinbr/LastUpdateUser TraderFUKUDA/Trader StatusACTIVE/Status SectorCONSUMER FINANCE/Sector CountryJapan/Country RegionTOKYO/Region CurveTypeSingle Name/CurveType BookTOKYO/Book SourceOfficial/Source /CurveLevelInfo SourcedPoint methodology=3 Tenor3Y/Tenor BidRate0/BidRate MidRate101./MidRate OfferRate0/OfferRate /SourcedPoint SourcedPoint methodology=3 Tenor2Y/Tenor BidRate0/BidRate MidRate89./MidRate OfferRate0/OfferRate /SourcedPoint SourcedPoint methodology=3 Tenor6M/Tenor BidRate0/BidRate MidRate65./MidRate OfferRate0/OfferRate /SourcedPoint SourcedPoint methodology=3 Tenor30Y/Tenor BidRate0/BidRate MidRate245./MidRate OfferRate0/OfferRate /SourcedPoint SourcedPoint methodology=3 Tenor4Y/Tenor BidRate0/BidRate MidRate113./MidRate OfferRate0/OfferRate /SourcedPoint /curve Expected output is : 0.100:0:2004-07-22+04:00:2004-07-22T00:00:00+04:00:whinbr:FUKUDA:ACTIVE:CONSUMER FINANCE:Japan:TOKYO:Single Name:TOKYO:Official:3Y::0:101.:0 0.100:0:2004-07-22+04:00:2004-07-22T00:00:00+04:00:whinbr:FUKUDA:ACTIVE:CONSUMER FINANCE:Japan:TOKYO:Single Name:TOKYO:Official:2Y:0:89.:0 0.100:0:2004-07-22+04:00:2004-07-22T00:00:00+04:00:whinbr:FUKUDA:ACTIVE:CONSUMER FINANCE:Japan:TOKYO:Single
RE: XSLT
Hi Jerald, Just now I tried with the XSL file you have sent. It is working fine. Thank you very much. Bye, Bhaskar From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 14, 2004 6:32 PM To: K S Bhaskar -ICEXT Subject: XSLT Bhaskar, I have done another xslt becuase I did not have tim to try with the one you send. The one which I had written is working exaclty. I have attached a copy of it please go thru it. This Was the Output I got 0.100:0:2004-07-22+04:00:2004-07-22T00:00:00+04:00:whinbr:FUKUDA:ACTIVE:CONSUMER FINANCE:Japan:TOKYO:Single Name:TOKYO:Official:3Y:0:101.:0: 0.100:0:2004-07-22+04:00:2004-07-22T00:00:00+04:00:whinbr:FUKUDA:ACTIVE:CONSUMER FINANCE:Japan:TOKYO:Single Name:TOKYO:Official:2Y:0:89.:0: 0.100:0:2004-07-22+04:00:2004-07-22T00:00:00+04:00:whinbr:FUKUDA:ACTIVE:CONSUMER FINANCE:Japan:TOKYO:Single Name:TOKYO:Official:6M:0:65.:0: 0.100:0:2004-07-22+04:00:2004-07-22T00:00:00+04:00:whinbr:FUKUDA:ACTIVE:CONSUMER FINANCE:Japan:TOKYO:Single Name:TOKYO:Official:30Y:0:245.:0: 0.100:0:2004-07-22+04:00:2004-07-22T00:00:00+04:00:whinbr:FUKUDA:ACTIVE:CONSUMER FINANCE:Japan:TOKYO:Single Name:TOKYO:Official:4Y:0:113.:0: rgds, Jerald S === xsl:for-each select=CurveLevelInfo xsl:value-of select=RecoveryRate: xsl:value-of select= Liquidity: xsl:value-of select= DefaultedDate: xsl:value-of select= LastUpdate:xsl:value-of select= Trader: xsl:value-of select= Status: xsl:value-of select=Sector: xsl:value-of select= Country: xsl:value-of select=Region: xsl:value-of select=Curve:xsl:value-of select=Book: xsl:value-of select= Source:/for-each:xsl:for-each select=SourcePoint xsl:value-of select=Tenor: xsl:value-of select= BidDate:: xsl:value-of select=MidDate: xsl:value-of select= OfferDate/for-each -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 14, 2004 3:10 PM To: Jerald Selvaraj (WT01 - FINANCE - SECURITIES) Subject: RE: Please help in XSLT Hi Jerald, I am sending the XML format and expected output format. XML content: Curve CurveLevelInfo RecoveryRate0.100/RecoveryRate Liquidity0/Liquidity DefaultedDate2004-07-22+04:00/DefaultedDate LastUpdate2004-07-22T00:00:00+04:00/LastUpdate LastUpdateUserwhinbr/LastUpdateUser TraderFUKUDA/Trader StatusACTIVE/Status SectorCONSUMER FINANCE/Sector CountryJapan/Country RegionTOKYO/Region CurveTypeSingle Name/CurveType BookTOKYO/Book SourceOfficial/Source /CurveLevelInfo SourcedPoint methodology=3 Tenor3Y/Tenor BidRate0/BidRate MidRate101./MidRate OfferRate0/OfferRate /SourcedPoint SourcedPoint methodology=3 Tenor2Y/Tenor BidRate0/BidRate MidRate89./MidRate OfferRate0/OfferRate /SourcedPoint SourcedPoint methodology=3 Tenor6M/Tenor BidRate0/BidRate MidRate65./MidRate OfferRate0/OfferRate /SourcedPoint SourcedPoint methodology=3 Tenor30Y/Tenor BidRate0/BidRate MidRate245./MidRate OfferRate0/OfferRate /SourcedPoint SourcedPoint methodology=3 Tenor4Y/Tenor BidRate0/BidRate MidRate113./MidRate OfferRate0/OfferRate /SourcedPoint /curve Expected output is : 0.100:0:2004-07-22+04:00:2004-07-22T00:00:00+04:00:whinbr:FUKUDA:ACTIVE:CONSUMER FINANCE:Japan:TOKYO:Single Name:TOKYO:Official:3Y::0:101.:0 0.100:0:2004-07-22+04:00:2004-07-22T00:00:00+04:00:whinbr:FUKUDA:ACTIVE:CONSUMER FINANCE:Japan:TOKYO:Single Name:TOKYO:Official:2Y:0:89.:0 0.100:0:2004-07-22+04:00:2004-07-22T00:00:00+04:00:whinbr:FUKUDA:ACTIVE:CONSUMER FINANCE:Japan:TOKYO:Single Name:TOKYO:Official:6M:0:65.:0 0.100:0:2004-07-22+04:00:2004-07-22T00:00:00+04:00:whinbr:FUKUDA:ACTIVE:CONSUMER FINANCE:Japan:TOKYO:Single Name:TOKYO:Official:30Y:0:245.:0 0.100:0:2004-07-22+04:00:2004-07-22T00:00:00+04:00:whinbr:FUKUDA:ACTIVE:CONSUMER FINANCE:Japan:TOKYO:Single Name:TOKYO:Official:4Y:0:113.:0 Here every repeat of tag SourcePoint and have append the content of tag CurveLevelInfo. What you have sent is not working. Please help me. Thanks in advance. Regards, Bhaskar From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 14, 2004 2:52 PM To: K S Bhaskar -ICEXT Subject: Please help in XSLT Bhaskar, I hope the following code will fulfill your needs xsl:for-each select =a xsl:value-of select=b xsl:for-each select=c xsl:value-of select=I/ : xsl:value-of select=j/ /xsl:for-each /xsl:for-each Regards Jerald S -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 14, 2004 2:30 PM To: [EMAIL
Re: outofmemory problems
Its all tables. Basically the pdf is a report with the table as a grid. The one problem could be that I set a border for each table cell so that I can have grid lines. If any nows of a better way I would like to here. I looked for an equivalent to the html cellspacing but didn't find one for xsl:fo. Would it be better to add extra rows and columns to make the grid lines work ? On Tue, 14 Sep 2004 01:24:12 +0200, J.Pietschmann [EMAIL PROTECTED] wrote: Try to get rid of tables, or get the unreleased patch for the table memory leak from CVS. A 21MiB FO seems to be rather large for a 700 page result, think hard about simplifying the layout. Relying on inheritable properties and getting rid of unnecessary property settings may be a first step, although the effect is often insignificant. Look also for redundant nested blocks and redundant fo:inline and fo:wrapper elements. J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: outofmemory problems
I was checking the pdf I was finally able to generated and the one page sequence is 80 pages. All tables with table-omit-header-at-break=false will this make a difference ? On Tue, 14 Sep 2004 01:24:12 +0200, J.Pietschmann [EMAIL PROTECTED] wrote: Try to get rid of tables, or get the unreleased patch for the table memory leak from CVS. A 21MiB FO seems to be rather large for a 700 page result, think hard about simplifying the layout. Relying on inheritable properties and getting rid of unnecessary property settings may be a first step, although the effect is often insignificant. Look also for redundant nested blocks and redundant fo:inline and fo:wrapper elements. J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]