xsl-list
[Top] [All Lists]

Re: [xsl] Re: XML Tag to Output Math type format

2007-01-05 02:12:19
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




B> --~------------------------------------------------------------------
B> XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
B> To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
B> or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
B> --~--


-- 
Alexey                            
mailto:alexey(_dot_)nikolaenkov(_at_)actimind(_dot_)com


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>