cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adriano Smith <orosm...@sify.com>
Subject wml output from text input.
Date Fri, 06 Aug 2004 13:19:09 GMT
is there any way to generate an xml file using xsp?

This is the problem:

This is my pipeline:

<map:match pattern="*oly">
<map:generate type="html" src="http://sify.com/sify_oly.html"/>
<!--
<map:transform type="xslt" src="olymp.xsl"/>-->

<map:serialize type="wml" mime-type="text/vnd.wap.wml"/>
   </map:match>


i recieve the input from the url 
http://abc.com//xyz.html

This is just plain text with no tags.
eg " hello world"

Now i want "hello world" to be in wml format, so i used an xsl transformer. 

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:template match="/">
<wml>
<card id="general" title="gen_oly">
<p>
<!-- what can i have here?     
  <xsl:value-of select=" "/>
-->
 </p>

</card>
</wml>
</xsl:template>
</xsl:stylesheet>

Since there are no tags in the text i recieve, im not able to use any value in
<xsl:value-of select=" "/> 

How can i extract the text and insert into the xsl? is there any way to do this?














Mime
View raw message