Subject: Re: To include WBMP file in XSL for WAP From: Peter Bates <pnb198@xxxxxxxxxxxxxxx> Date: Tue, 15 Aug 2000 14:54:15 +0100 (BST) |
On Tue, 15 Aug 2000, Jaiswal, Vinay (CTS) wrote: You need to use a path relative to the current location rather than relative to the root: Also you don't need a closing tag for img. Instead use: <img src = "../bitmaps/myfile.wbmp" alt = "alternative text" /> Any other problems with WAP then let me know. regards. Peter. > Hi folks, > > I need to include WBMP files in XSL for displaying on WAP enabled > devices. I'm not > able to display on WAP toolkit. It is displaying on browser by just > giving the JPG file > path in the XSL for HTML but it is not working for WAP by giving WBMP > file path in > the XSL for WML. Please let me know how to do. Does it depend upon the > size of the WBMP > file also? I've heard that there is size limit(1.4Kb for Nokia 7110) for > each generated WML card on hand held devices. > > XML file: > > <?xml version="1.0"?> > <?xml-stylesheet href="fhtml.xsl" type="text/xsl"?> > <?xml-stylesheet href="fwml.xsl" type="text/xsl" media="wap"?> > <?cocoon-process type="xslt"?> > > <article1> > > <link href="http://10.236.17.155/about.xml">About</link> > <link href="http://10.236.17.155/pq28_7.xml">What's New</link> > <link href="http://10.236.17.155/Competency.xml">Competency </link> > <link href="http://10.236.17.155/Projects.xml">Projects</link> > <link href="http://10.236.17.155/Consultancy.xml">Consultancy</link> > <link href="http://10.236.17.155/Resources.xml">Resources</link> > <link href="http://10.236.17.155/seminars.xml">seminars</link> > <link href="http://10.236.17.155/Telekom.xml">Telekom</link> > > </article1> > > > XSL file (fwml.xsl): > > <?xml version="1.0" encoding="ISO-8859-1"?> > <xsl:stylesheet version="1.0" > xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> > <xsl:output method="xml" > indent="no" > encoding="ISO-8859-1" > doctype-system="http://www.wapforum.org/DTD/wml_1.1.xml" > doctype-public="-//WAPFORUM//DTD WML 1.1//EN"/> > > <xsl:template match="/"> > <wml> > <card> > > <img src="C:/Program Files/Apache Group/Apache/htdocs/bitmaps/sunlogo.wbmp" > alt="Try again...."> </img> > <!--If I use this, a dialogue box is coming saying 'Malformed URL > Exception:C/Program Files...." but samething is working > for JPG in XSL for HTML --> > > <img src="bitmaps/sunlogo.wbmp" alt="Try again...."> </img> > <!--I tried this also, it is displaying 'Try again....'--> > > <xsl:apply-templates select="article1"/> > > </card> > > </wml> > </xsl:template> > > <xsl:template match="link"> > <A> > <xsl:attribute name="href"> > <xsl:value-of select="@href"/> > </xsl:attribute> > <p><b><h2><I><xsl:value-of select="."/></I></h2></b></p> > </A> > </xsl:template> > </xsl:stylesheet> > > On Nokia Wap Toolkit, it is displaying everything properly except > images. Any help will be appreciated. > > Thanks in advance, > > Vinay Jaiswal > Cognizant Technology Solutions > > > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
To include WBMP file in XSL for WAP, Jaiswal, Vinay (CTS) | Thread | RE: To include WBMP file in XSL for, Jaiswal, Vinay (CTS) |
Re: translate()-function (Xalan), Oliver Becker | Date | RE: submitting rtf contained within, David_Marston |
Month |