You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Adriano Smith <or...@sify.com> on 2004/08/06 15:19:09 UTC
wml output from text input.
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?