<!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> </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> </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> </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> </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 I am getting
following as output</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> <s:div StyleClass
="top_banner_right1"> This is heading(August 31-September 3, 2007)
Saroba garden lahore</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </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><Event><BR><Page><BR><DIV
StyleClass="top_banner_right1"><BR><H1 Class="h1_1">This is
heading</H1><BR><B>(August 31-September 3,
2007)</B><BR><BREAK /><BR><B>Saroba garden
lahore</B><BR></DIV><BR></Page><BR></Event><BR></FONT></DIV>
<DIV><FONT face=Arial size=2>page.xslt</FONT></DIV>
<DIV><FONT face=Arial size=2><FONT size=2>
<P><xsl:template
match="Event/Page/DIV"><xsl:text><![CDATA[<s:div
]]></xsl:text><xsl:if
test="@StyleClass"><xsl:text><![CDATA[StyleClass
="]]></xsl:text><xsl:value-of select="@StyleClass"
/><xsl:text><![CDATA[">]]></xsl:text></xsl:if><xsl:text><![CDATA[
]]></xsl:text><xsl:value-of
select="."/><xsl:text><![CDATA[]]></xsl:text></xsl:template></P>
<P><xsl:template
match="Event/Page/DIV/H1"><xsl:text><![CDATA[<h1>]]></xsl:text><xsl:value-of
select="."/><xsl:text><![CDATA[</h1>]]></xsl:text></xsl:template></P>
<P><xsl:template
match="Event/Page/DIV/B"><xsl:text><![CDATA[<B>]]></xsl:text><xsl:value-of
select="."/><xsl:text><![CDATA[</B>]]></xsl:text></xsl:template></P>
<P><xsl:template match="Event/Page/DIV/BREAK"></P>
<P><xsl:text><![CDATA[<br>]]></xsl:text><xsl:value-of
select="."/><xsl:text><!CDATA[</br>]]></xsl:text></xsl:template></P>
<P> </P>
<P>regards</P>
<P>Zeeshan</P>
<P> </P></FONT></DIV></BLOCKQUOTE></FONT></BODY></HTML>