Re: WML source with WML serializer

2003-03-28 Thread Sylvain Wallez
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: WML source with WML serializer

2003-03-27 Thread Joerg Heinicke
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
[EMAIL PROTECTED]
www.virbus.de
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]