Sorry Adam

I forgot to attach xsl file. In this mail i have attached the file.

Thanx with rgds
Santhosh hegde A
----- Original Message -----
From: santhosh hegde <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, December 20, 2001 7:00 PM
Subject: Re: hdml


> Hi Adams,
>
> Thanx for you reply,
>
> I am using TextFormatter. What it will do is whatever the text inside the
> main element it will send as it is.
>
> for example
>
> <hdml>
> my name is santhosh<<hegde>>
> </hdml>
>
> So what happens here is textformatter send it as it is.  But Hdml browser
> needs it in its reference  like
>
> <hdml>
> my name is santhosh &lt;&lt; hegde &gt;&gt;
> </hdml>
>
> otherwise browser throws exception.
>
> I am using UP.Browser.
>
> I wil attached my xslt page.  Plaese go through that and tell me where i
> have done wrong if any.
>
> Thanx with rgds
> Santhosh hegde A
> ----- Original Message -----
> From: Adam Ambadas <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, December 20, 2001 6:47 PM
> Subject: Re: hdml
>
>
> > Hi Santhosh,
> >
> > that should not be a problem since you are putting everything in CDATA
> > section.
> >
> > I am also doing same thing. But I dont get any problem.
> >
> > btw, which emulator are you using?
> >
> > If you could share the xsl file, it would be easy to tell if anything is
> > missing. Also, I need to patch my xsl ;-)  yours would be of great help!
> >
> > cheers,
> >
> > Adam
> >
> >
> > On Thursday 20 December 2001 08:07 pm, you wrote:
> > > I am wtiting xslt for hdml. I am writing all the hdml tags inside
CDATA.
> > >
> > > I am using TextFormatter.  But the problem here is whenever angle
> brackets
> > > i.e "<"  ">"  comes in the text node part  textformatter sends it as
it
> is
> > > which hdml browser cant support . Its giving error.  Hdml browser
wants
> it
> > > like "&lt".
> > >
> > > do you have any mechanisn so that i can overcome that problem??
> > >
> > > waiting for suggestions.
> > >
> > > Thanx with rgds
> > > Santhosh hegde A
> >
> > ----------------------------------------
> > Content-Type: text/html; charset="iso-8859-1"; name="Attachment: 1"
> > Content-Transfer-Encoding: quoted-printable
> > Content-Description:
> > ----------------------------------------
> >
> > ---------------------------------------------------------------------
> > Please check that your question has not already been answered in the
> > FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
> >
> > To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> > For additional commands, e-mail: <[EMAIL PROTECTED]>
>
>
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
<?xml version="1.0" encoding="Shift_JIS"?>
<!--
 ************************************************************************************************************
 * Project Code		: EJN/2266
 * Module Name		: Web/hdml 
 * File Name		: to-hdml-viewmail.xsl	 
 * Description		: This xsl provides the style to the xml data to form 
 			  hdml contents(to view the main) to the wap enabled cellular phones.      
 * Author		: Santhosh hegde A
 * Copyright (c) 2000 EximSoft Technologies pvt. ltd.
 * Created on		: 9/12/01
 * Current Version	: 00.00.00
 * Last Modified on	: 10/12/01
 *   Ver           Date            Author        Change Description
   00.00.00        10/12/01         Santhosh      Initial Draft
  
 ********************************************************************************************************
 -->


<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; version="1.0">


<xsl:template match="/">
	<xsl:processing-instruction name="cocoon-format">
		type="text/x-hdml"
	</xsl:processing-instruction>
	
	<hdml>
		<xsl:text><![CDATA[<hdml version="3.0" ttl="0" public="true">]]></xsl:text>
		<xsl:text><![CDATA[<display name="card1">]]></xsl:text>
		<xsl:text><![CDATA[<action type="accept" task="go" dest="#entry2">]]></xsl:text> 
			<xsl:apply-templates/>
		<xsl:text><![CDATA[</display>]]></xsl:text>		
		<xsl:text><![CDATA[</hdml>]]></xsl:text>
	</hdml>
</xsl:template>
  

<xsl:template match="Mail">
	<xsl:apply-templates />		
</xsl:template>


<xsl:template match="Header">
	<xsl:text><![CDATA[<a task="go" dest="/jsps/user/compose.xml;jsessionid=]]></xsl:text>
		<xsl:value-of select="normalize-space(/page/body/sessionid/@id)"/>
	<xsl:text><![CDATA[?q=reply]]></xsl:text>
	<xsl:text><![CDATA[">返答</a>]]></xsl:text>	
	<xsl:text><![CDATA[]]></xsl:text>	
	<xsl:text><![CDATA[<a task="go" dest="/jsps/user/compose.xml;jsessionid=]]></xsl:text>
		<xsl:value-of select="normalize-space(/page/body/sessionid/@id)"/>
	<xsl:text><![CDATA[?q=forward]]></xsl:text>
	<xsl:text><![CDATA[">前に</a>]]></xsl:text>
	<xsl:text><![CDATA[<br>送信者: ]]></xsl:text> 
		<xsl:value-of select="From"/> 
	<xsl:text><![CDATA[<br>宛先: ]]></xsl:text>
		<xsl:apply-templates select="To" />
	<xsl:text><![CDATA[<br>CC : ]]></xsl:text> 
		<xsl:value-of select="Cc"/> 
	<xsl:text><![CDATA[<br>日時: ]]></xsl:text>
		<xsl:value-of select="Date"/> 
	<xsl:text><![CDATA[<br>件名: ]]></xsl:text>
		<xsl:value-of select="Subject"/> 
	<xsl:text><![CDATA[<br>]]></xsl:text>
		<xsl:apply-templates />
</xsl:template>	


<xsl:template match="a"  >
	<xsl:text><![CDATA[<a task="go" dest="]]></xsl:text>
		<xsl:value-of select="@href"/>
	<xsl:text><![CDATA[">]]></xsl:text>
		<xsl:apply-templates/>
	<xsl:text><![CDATA[</a>]]></xsl:text>
</xsl:template>


<xsl:template match="Body">
	<xsl:value-of select="."/>
	<xsl:text><![CDATA[<br>]]></xsl:text>
</xsl:template>


<xsl:template match="sessionid">
	<!--  // ignore   -->
</xsl:template>


<xsl:template match="title" />


<xsl:template match="mailid">
	<!--  // ignore   -->
</xsl:template>


<xsl:template match="To">
	<xsl:value-of select="."/>&#160;&#160;
</xsl:template>


<xsl:template match="Cc">
	<xsl:value-of select="."/>&#160;&#160;
</xsl:template>


<xsl:template match="sp">&#160;</xsl:template>


<xsl:template match="ErrorResponse">
	<xsl:value-of select="Message" />
</xsl:template>


</xsl:stylesheet>


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>

Reply via email to