Subject: [xsl] XML Tag to Output Math type format From: "Byomokesh" <bkesh@xxxxxxxxxxxxxxx> Date: Tue, 27 Feb 2007 12:40:00 +0530 |
Hi Alexey, Thanks for good solution. I was one months leave, that's why I did not reply. According to you stylesheet I am facing another problem. My xml ------ <para>Porcentaje de contribucin marginal = <fraction><numerator><plain>$80</plain></numerator><denom><plain>$200</p lain></denom></fraction> = 0.40, o 40%</para> <para>Tasa costos indirectos = <fraction><numerator><plain>Costos indirectos anuales presupuestados</plain></numerator><denom><plain>Cantidad anual presupuestada de la base de asignacin del costo</plain></denom></fraction></para> I want output ------------- $80 Porcentaje marginal = ---- = 0.40, 0.40% $200 Costos indirectos anuales presupuestados Tasa costos indirectos = --------------------------------------------------- Cantidad anual presupuestada de la base deasignacin But Now my output ----------------- Porcentaje marginal = $80 ---- 200 = 0.40, 0.40% Tasa costos indirectos = Costos indirectos anuales presupuestados ------- Cantidad anual presupuestada How can I do it? Thanks Byomokesh Re: [xsl] Re: XML Tag to Output Math type format Subject: Re: [xsl] Re: XML Tag to Output Math type format From: Alexey Nickolaenkov <nikolaenkov@xxxxxxxxxxxx> Date: Fri, 5 Jan 2007 12:11:23 +0300 >>> Byomokesh, if you want html output , try this one: >>> <xsl:template match="fraction"> >>> <style type="text/css"> >>> .fraction { margin-left: 100px; width: 3em;} >>> .fraction div {padding: 5px; width: 100%; text-align: center;} >>> .numerator { border-bottom: 1px dashed #333;} >>> </style> >>> <div class="fraction"> >>> <div class="numerator"> >>> <xsl:apply-templates select="numerator"/> >>> </div> >>> <div> >>> <xsl:apply-templates select="denom"/> >>> </div> >>> </div> >>> </xsl:template> >>> <xsl:template match="numerator|denom"> >>> <xsl:apply-templates select="node()"/> >>> </xsl:template> >>> <xsl:template match="plain"> >>> <xsl:value-of select="."/> >>> </xsl:template> B> Hi, B> I have no need any transformation. This is XML input and I want output B> as divider (shown my previous message) through XSL in Internet Explorer. B> I hope you understand B> Thanks B> Byomokesh >>>Can you provide us with xml output you need? B> Thursday, January 4, 2007, 1:19:58 PM, you wrote: >> Hi All >> I am doing XML to HTML through XSL.I have a big problem in related B> math. >> This is not a math type tag. But Output is Math Type Equation. >> My XML >> B> <fraction><numerator><plain>$80</plain></numerator><denom><plain>$200</p lain>>></denom></fraction> >> I want Output....... >> $80 >> ----- >> $200 >> I have downloaded Tech Explorer. But How convert this through XSL. >> Advance thanks for any help........ >> Thanks and Regards >> Byomokesh -- Alexey Thanks and Regards Byomokesh Zen Data Services Pvt Ltd Balammal Building - 1st & 2nd Floor No:33, Burkit Road T.Nagar, Chennai - 600 017 Phone:- 2431 4613 / 17
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Outside of crop box text, Steve Ylvisaker | Thread | [xsl] XML Tag to Output Math type f, Byomokesh |
[xsl] Outside of crop box text, Steve Ylvisaker | Date | Re: [xsl] Processing Nested Lists, Florent Georges |
Month |