Click here to Skip to main content
15,891,633 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Hi All,
Following is my xml sample

<Para>In <Emphasis>CIT</Emphasis> v. <Emphasis>H. Holck Larsen</Emphasis> [1986]
160 ITR 67, the Supreme Court observed (page 87) :
<Para>“The High Court made a mistake in observing whether transactions
of sale and purchase of shares were trading transactions or whether
these were in the nature of investment was a question of law. This
is a mixed question of law and fact.”</Para></Para>

I need to print the above as following,
In CIT v. H. Holck Larsen [1986] 160 ITR 67, the Supreme Court observed (page 87) :


“The High Court made a mistake in observing whether transactions of sale and purchase of shares were trading transactions or whether these were in the nature of investment was a question of law. This is a mixed question of law and fact.”


When i try with the following code i am not successful. Please help me with your suggestions ASAP.
HTML
<xsl:when test ="Emphasis">
                          <p style ="text-indent:5mm">
                            <xsl:value-of select ="text()"/>                            
                            <xsl:for-each select ="Emphasis">
                              <xsl:value-of select ="."/>
                            </xsl:for-each>                            
                            <xsl:for-each select ="Para">
                              <p style ="text-indent:8mm">
                              <xsl:value-of select ="."/>
                              </p>
                            </xsl:for-each>
                          </p>
                        </xsl:when>
Posted
Updated 10-Jun-12 19:38pm
v2
Comments
Ganesan Senthilvel 11-Jun-12 1:38am    
XSL format
rahulaaditya 11-Jun-12 1:46am    
You have any idea? when i try with my above code, i get the output as follows

In CITH. Holck Larsen

“The High Court made a mistake in observing whether transactions of sale and purchase of shares were trading transactions or whether these were in the nature of investment was a question of law. This is a mixed question of law and fact.”

which means i am missing the content "[1986] 160 ITR 67, the Supreme Court observed (page 87) :"

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900