This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes XML and Related Technologies and the fly likes want to generate wml from xsl file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "want to generate wml from xsl file" Watch "want to generate wml from xsl file" New topic
Author

want to generate wml from xsl file

Simon Johnn
Greenhorn

Joined: Mar 23, 2003
Posts: 15
i want to generate wml file from a xsl file:-
greeting.xml:-
---------------
<?xml version="1.0"?>
<greetings>
<greeting>Hello World</greeting>
</greetings>

greeting.xsl:-
---------------
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl utput method="wml"/>
<xsl:template match="/">
<wml>
<card id="greeting" title="Hello World">
<p>
<xsl:apply-templates select="greetings/greeting">
<p>
</card>
</wml>
</xsl:template>
<xsl:template match="greeting">
<xsl:value-of select="."/>
</xsl:template>
</xsl:stylesheet>
***************************
I used the greeting.xml and greeting.xsl to generate greeting.wml file by using two XSLT processors:-
1-Xalan
2-Clark's XT
but unable to generate the wml file from both of them,none of the XLLT processors generate the wml file.
Can anyone help me in generating the wml file using XSLT processor.Plz let me know from which processor i can do this and what will be the procedure.
Thanks in advance
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: want to generate wml from xsl file