This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: java extension in xsl help..please
- From: michael dot h dot kay at ntlworld dot com
- To: xsl-list at lists dot mulberrytech dot com
- Date: Wed, 31 Jul 2002 5:09:26 +0000
- Subject: Re: [xsl] java extension in xsl help..please
- Reply-to: xsl-list at lists dot mulberrytech dot com
Use exclude-result-prefixes="FileReader" on the xsl:stylesheet element.
Michael Kay
>
> From: "Zoe Peng" <zoe@allfools.net>
> Date: Wed, 31 Jul 2002 00:28:46 -0400
> To: xsl-list@lists.mulberrytech.com
> Subject: [xsl] java extension in xsl help..please
>
> Hi,
> I am trying to do the java extension in stylesheet to transform xml
> document to wml document. When I use saxon6.4.1/jdk1.1.4 to transform
> xml document, the transform engine performs ok. But, it is fail to open
> wml file in Nokia or Up(WAP)simulator due to the illegal attribute
> name 'xmlns:FileReader' in tag 'wml'. WML DTD didn't allow this
> attribute. What should I do to solve this problem?? Thanks.
> --Zoe
>
> --
> The stylesheet
>
> <xsl:stylesheet xmlns:xsl='http://www.w3.org/1999/XSL/Transform'
> version='1.1'
> xmlns:FileReader="java:java.io.FileReader">
> <xsl:script language="java" implements-prefix="FileReader"
> src="java:java.io.FileReader" />
>
> <xsl:output doctype-
> system='http://www.wapforum.org/DTD/wml_1.1.xml'/>
>
> <!-- start from here -->
> <xsl:template match="/">
> <wml>
> <template>
> <do type="prev" label="Back">
> <prev />
> </do>
> </template>....
> </wml>
> </template>
> </stylesheet>
>
> --the wml file
> <?xml version="1.0" encoding="utf-8"?>
> <!DOCTYPE wml
> SYSTEM "http://www.wapforum.org/DTD/wml_1.1.xml">
> <wml xmlns:FileReader="java:java.io.FileReader">
> <card>...
> </card>
> </wml>
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
>
>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list