[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] XML Tag to Output Math type format
Hi, Thanks for your reply. But my output is HTML format. I am using XSLT 2.0. My xml ------ <para>Porcentaje de contribucin marginal = <fraction><numerator><plain>$80</plain></numerator><denom><plain>$200</p lain></denom></fraction> = 0.40%</para> <para>Tasa costos indirectos = <fraction><numerator><plain>Costos indirectos anuales presupuestados</plain></numerator><denom><plain>Cantidad anual presupuestada</plain></denom></fraction></para> I want output ------------- $80 Porcentaje marginal = ---- = 0.40% $200 Costos presupuestados Tasa costos indirectos = --------------------------- Cantidad anual presupuestada But Now my output ----------------- Porcentaje marginal = $80 ---- 200 = 0.40, 0.40% Tasa costos indirectos = Costos indirectos anuales presupuestados ------- Cantidad anual presupuestada My XSL ------- <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> Thanks and Regards Byomokesh
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|