You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by Gary L Peskin <ga...@firstech.com> on 2001/06/15 10:02:56 UTC

Re: wml output

Sergey --

You should be getting a <!DOCTYPE> in your result page.  However, it
will look like this:

  <!DOCTYPE wml PUBLIC "PUBLIC" "wml">

because that is what you have specified.  To get what you're looking
for, try:

  <xsl:output doctype-public="-//WAPFORUM//DTD WML1.1//EN"
              doctype-system="http://www.wapforum.org/DTD/wml_1.1.xml">

If you're truly not get any DOCTYPE at all:
1.  What version of Xalan are you on.
2.  How are you initiating your transform and receiving your output: 
command line or some other method.  If some other method and you still
can't figure out what's wrong, send along your code and we'll have a
look.

Gary

> "Sergey S. Kljopov" wrote:
> 
> Hi!
> 
> I need to produce a wml page. But wml page must have a tag
> <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"
> "http://www.wapforum.org/DTD/wml_1.1.xml">
> I produce this page by applying special xsl on my xml. xsl looks like
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <xsl:stylesheet version="1.0"
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
> <xsl:output doctype-system="wml" doctype-public="PUBLIC"/>
> <xsl:template match="MAIN">
> <wml xml:lang="en-us">
>  <xsl:call-template name="prev"/>
>  <xsl:call-template name="card_main"/>
>  <xsl:call-template name="card_add_conf"/>
>  <xsl:call-template name="card_add_user"/>
> </wml>
> </xsl:template>
> 
> and so on... But there is no tag <!DOCTYPE> in result page. How I can
> make xalan to produce this tag? Or I must change my xsl? If yes, in
> what way?
> 
> WBR, Sergey S. Kljopov
>

Re: wml output

Posted by "Sergey S. Kljopov" <kl...@wetellyou.com>.
O, I have found the mistake. All is ok.

----- Original Message ----- 
From: Gary L Peskin <ga...@firstech.com>
To: <xa...@xml.apache.org>
Sent: Friday, June 15, 2001 2:02 PM
Subject: Re: wml output


> Sergey --
> 
> You should be getting a <!DOCTYPE> in your result page.  However, it
> will look like this:
> 
>   <!DOCTYPE wml PUBLIC "PUBLIC" "wml">
> 
> because that is what you have specified.  To get what you're looking
> for, try:
> 
>   <xsl:output doctype-public="-//WAPFORUM//DTD WML1.1//EN"
>               doctype-system="http://www.wapforum.org/DTD/wml_1.1.xml">
> 
> If you're truly not get any DOCTYPE at all:
> 1.  What version of Xalan are you on.
> 2.  How are you initiating your transform and receiving your output: 
> command line or some other method.  If some other method and you still
> can't figure out what's wrong, send along your code and we'll have a
> look.
> 
> Gary
> 
> > "Sergey S. Kljopov" wrote:
> > 
> > Hi!
> > 
> > I need to produce a wml page. But wml page must have a tag
> > <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"
> > "http://www.wapforum.org/DTD/wml_1.1.xml">
> > I produce this page by applying special xsl on my xml. xsl looks like
> > 
> > <?xml version="1.0" encoding="UTF-8"?>
> > <xsl:stylesheet version="1.0"
> > xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
> > <xsl:output doctype-system="wml" doctype-public="PUBLIC"/>
> > <xsl:template match="MAIN">
> > <wml xml:lang="en-us">
> >  <xsl:call-template name="prev"/>
> >  <xsl:call-template name="card_main"/>
> >  <xsl:call-template name="card_add_conf"/>
> >  <xsl:call-template name="card_add_user"/>
> > </wml>
> > </xsl:template>
> > 
> > and so on... But there is no tag <!DOCTYPE> in result page. How I can
> > make xalan to produce this tag? Or I must change my xsl? If yes, in
> > what way?
> > 
> > WBR, Sergey S. Kljopov
> >