You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by zze-MORY Nicolas FTRD/DMI/REN <n....@rd.francetelecom.com> on 2003/03/27 16:43:03 UTC

WML source with WML serializer

when i have WML files in input of pipeline and i want to serialize it with WML serializer i have many comment like that : 

<!--================ Deck-level declarations ================--><!--================ Tasks ================--><!--================ postfield ================--><!--================ variables ================--><!--================ Card Fields ================--><!--================ Images ================--><!--================ Anchor ================--><!--================ Tables ================--><!--================ Text layout and line breaks ================--><!-- quotation mark --><!-- ampersand --><!-- apostrophe --><!-- less than --><!-- greater than --><!-- non-breaking space --><!-- soft hyphen (discretionary hyphen) --><!--

Copyright Wireless Application Protocol Forum Ltd., 1998,1999.

                      All rights reserved.  

-->>

Why ? is it possible to disable this comments ?

Thanks

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org


Re: WML source with WML serializer

Posted by Sylvain Wallez <sy...@anyware-tech.com>.
Joerg Heinicke wrote:

> Because they are already in the original input WML file?


... or because the WML DTD is expanded _inside_ the document by the XML 
parser ? Note that this also means that your server connects to 
wapforum.org (I guess it's the location of the WML DTD) to get it.

To circumvent this, you should consider using the entity resolver on 
your Cocoon installation to both avoid fetching the DTD from a remote 
server and provide a stripped-down WML DTD (at least without comments).

More on resolvers at 
http://xml.apache.org/cocoon/userdocs/concepts/catalog.html

Sylvain

>
> Disabling is possible using a XSLT:
>
> <xsl:template match="node()">
>   <xsl:copy>
>     <xsl:copy-of select="@*"/>
>     <xsl:apply-templates select="node()"/>
>   </xsl:copy>
> </xsl:template>
>
> <xsl:template match="comment()"/>
>
> Regards,
>
> Joerg
>
> zze-MORY Nicolas FTRD/DMI/REN wrote:
>
>> when i have WML files in input of pipeline and i want to serialize it
>> with WML serializer i have many comment like that :
>>
>> <!--================ Deck-level declarations
>> ================--><!--================ Tasks
>> ================--><!--================ postfield
>> ================--><!--================ variables
>> ================--><!--================ Card Fields
>> ================--><!--================ Images
>> ================--><!--================ Anchor
>> ================--><!--================ Tables
>> ================--><!--================ Text layout and line breaks
>> ================--><!-- quotation mark --><!-- ampersand --><!--
>> apostrophe --><!-- less than --><!-- greater than --><!-- non-breaking
>> space --><!-- soft hyphen (discretionary hyphen) --><!--
>>
>> Copyright Wireless Application Protocol Forum Ltd., 1998,1999.
>>
>> All rights reserved.
>>
>> -->>
>>
>> Why ? is it possible to disable this comments ?
>>
>> Thanks
>


-- 
Sylvain Wallez                                  Anyware Technologies
http://www.apache.org/~sylvain           http://www.anyware-tech.com
{ XML, Java, Cocoon, OpenSource }*{ Training, Consulting, Projects }



---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org


Re: WML source with WML serializer

Posted by Joerg Heinicke <jo...@gmx.de>.
Because they are already in the original input WML file?

Disabling is possible using a XSLT:

<xsl:template match="node()">
   <xsl:copy>
     <xsl:copy-of select="@*"/>
     <xsl:apply-templates select="node()"/>
   </xsl:copy>
</xsl:template>

<xsl:template match="comment()"/>

Regards,

Joerg

zze-MORY Nicolas FTRD/DMI/REN wrote:
> when i have WML files in input of pipeline and i want to serialize it
> with WML serializer i have many comment like that :
> 
> <!--================ Deck-level declarations
> ================--><!--================ Tasks
> ================--><!--================ postfield
> ================--><!--================ variables
> ================--><!--================ Card Fields
> ================--><!--================ Images
> ================--><!--================ Anchor
> ================--><!--================ Tables
> ================--><!--================ Text layout and line breaks
> ================--><!-- quotation mark --><!-- ampersand --><!--
> apostrophe --><!-- less than --><!-- greater than --><!-- non-breaking
> space --><!-- soft hyphen (discretionary hyphen) --><!--
> 
> Copyright Wireless Application Protocol Forum Ltd., 1998,1999.
> 
> All rights reserved.
> 
> -->>
> 
> Why ? is it possible to disable this comments ?
> 
> Thanks
-- 

System Development
VIRBUS AG
Fon  +49(0)341-979-7419
Fax  +49(0)341-979-7409
joerg.heinicke@virbus.de
www.virbus.de


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org