<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.16414" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV dir=ltr align=left><SPAN class=222204411-27042007><FONT face=Arial 
color=#0000ff size=2>Well, you've got exactly the output you asked for, so I 
don't know what makes you think it isn't working. Only your first template rule 
is activated; it doesn't call apply-templates so the other template rules are 
never fired.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=222204411-27042007><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=222204411-27042007><FONT face=Arial 
color=#0000ff size=2>However, this has to be the worst XSLT code I have seen for 
a long time. Don't try to output markup as text using CDATA, do it properly by 
creating a result tree and leaving the serializer to generate the 
markup.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=222204411-27042007><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=222204411-27042007><FONT face=Arial 
color=#0000ff size=2>You're on the wrong forum anyway: try the xsl-list at 
http://www.mulberrytech.com/ . Your post has nothing to do with 
JDOM.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=222204411-27042007><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=222204411-27042007><FONT face=Arial 
color=#0000ff size=2>Michael Kay</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=222204411-27042007><FONT face=Arial 
color=#0000ff size=2><A 
href="http://www.saxonica.com/">http://www.saxonica.com/</A></FONT></SPAN></DIV><BR>
<BLOCKQUOTE dir=ltr 
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
  <DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
  <HR tabIndex=-1>
  <FONT face=Tahoma size=2><B>From:</B> jdom-interest-bounces@jdom.org 
  [mailto:jdom-interest-bounces@jdom.org] <B>On Behalf Of 
  </B>Zeeshan<BR><B>Sent:</B> 27 April 2007 12:01<BR><B>To:</B> 
  jdom-interest@jdom.org<BR><B>Subject:</B> [jdom-interest] need 
  help<BR></FONT><BR></DIV>
  <DIV></DIV>
  <DIV><FONT face=Arial size=2>Hi every one</FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2>I am unable to trans</FONT><FONT face=Arial 
  size=2>form the xml to text using the xslt. in fact &nbsp;I am getting 
  following as output</FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2>&nbsp;&lt;s:div StyleClass 
  ="top_banner_right1"&gt;&nbsp;This is heading(August 31-September 3, 2007) 
  Saroba garden lahore</FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2>the contents of the files are also pasted 
  below</FONT></DIV>
  <DIV><FONT face=Arial size=2>page.xml</FONT></DIV>
  <DIV><FONT face=Arial size=2>&lt;Event&gt;<BR>&lt;Page&gt;<BR>&lt;DIV 
  StyleClass="top_banner_right1"&gt;<BR>&lt;H1 Class="h1_1"&gt;This is 
  heading&lt;/H1&gt;<BR>&lt;B&gt;(August 31-September 3, 
  2007)&lt;/B&gt;<BR>&lt;BREAK /&gt;<BR>&lt;B&gt;Saroba garden 
  lahore&lt;/B&gt;<BR>&lt;/DIV&gt;<BR>&lt;/Page&gt;<BR>&lt;/Event&gt;<BR></FONT></DIV>
  <DIV><FONT face=Arial size=2>page.xslt</FONT></DIV>
  <DIV><FONT face=Arial size=2><FONT size=2>
  <P>&lt;xsl:template 
  match="Event/Page/DIV"&gt;&lt;xsl:text&gt;&lt;![CDATA[&lt;s:div 
  ]]&gt;&lt;/xsl:text&gt;&lt;xsl:if 
  test="@StyleClass"&gt;&lt;xsl:text&gt;&lt;![CDATA[StyleClass 
  ="]]&gt;&lt;/xsl:text&gt;&lt;xsl:value-of select="@StyleClass" 
  /&gt;&lt;xsl:text&gt;&lt;![CDATA["&gt;]]&gt;&lt;/xsl:text&gt;&lt;/xsl:if&gt;&lt;xsl:text&gt;&lt;![CDATA[ 
  ]]&gt;&lt;/xsl:text&gt;&lt;xsl:value-of 
  select="."/&gt;&lt;xsl:text&gt;&lt;![CDATA[]]&gt;&lt;/xsl:text&gt;&lt;/xsl:template&gt;</P>
  <P>&lt;xsl:template 
  match="Event/Page/DIV/H1"&gt;&lt;xsl:text&gt;&lt;![CDATA[&lt;h1&gt;]]&gt;&lt;/xsl:text&gt;&lt;xsl:value-of 
  select="."/&gt;&lt;xsl:text&gt;&lt;![CDATA[&lt;/h1&gt;]]&gt;&lt;/xsl:text&gt;&lt;/xsl:template&gt;</P>
  <P>&lt;xsl:template 
  match="Event/Page/DIV/B"&gt;&lt;xsl:text&gt;&lt;![CDATA[&lt;B&gt;]]&gt;&lt;/xsl:text&gt;&lt;xsl:value-of 
  select="."/&gt;&lt;xsl:text&gt;&lt;![CDATA[&lt;/B&gt;]]&gt;&lt;/xsl:text&gt;&lt;/xsl:template&gt;</P>
  <P>&lt;xsl:template match="Event/Page/DIV/BREAK"&gt;</P>
  <P>&lt;xsl:text&gt;&lt;![CDATA[&lt;br&gt;]]&gt;&lt;/xsl:text&gt;&lt;xsl:value-of 
  select="."/&gt;&lt;xsl:text&gt;&lt;!CDATA[&lt;/br&gt;]]&gt;&lt;/xsl:text&gt;&lt;/xsl:template&gt;</P>
  <P>&nbsp;</P>
  <P>regards</P>
  <P>Zeeshan</P>
  <P>&nbsp;</P></FONT></DIV></BLOCKQUOTE></FONT></BODY></HTML>