You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Andrew Wat <cs...@cs.ust.hk> on 2000/09/20 09:22:32 UTC
Re: [Cocoon Users] Re: Xalan and Cocoon gives different result for some XSL
Hello,
I was trying to use a default XSL (like the IE5 one) which will pretty
print the XML to HTML on the server side for client like Netscape
Communicator 4.7 that does not take XML natively.
I hit the problem when I want to use Cocoon for this.
I am now thinking of for all XML with filename .xmls, the apache server
will use another servlet etc. to pretty print it.
If there is already a similar sol'n, that would be appreciated also.
Thanks
Andrew
On Thu, Sep 14, 2000 at 11:56:59PM +0100, Robin Green wrote:
> Andrew Wat <cs...@cs.ust.hk> wrote:
> >I tried Xalan and Cocoon on the same XML and XSL. For one particular XSL,
> >Xalan gives the right output but Cocoon failed. Apparently, Cocoon failed
> >when the stylesheet has this
> >
> > <xsl:text disable-output-escaping="yes">&</xsl:text>
> >
> >which should escape a tag character.
>
> disable-output-escaping is not supported in Cocoon. We have no plans to
> support it because it encourages ugly and error-prone code.
>
> What do you need to do exactly? E.g. for creating attributes dynamically,
> you can just use <xsl:attribute> or whatever instead.
>
>
>
> _________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
>
> Share information about yourself, create your own public profile at
> http://profiles.msn.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: cocoon-users-help@xml.apache.org
>
> _______________________________________________
> cocoon-users mailing list
> cocoon-users@lists.real-time.com
> https://mailman.real-time.com/mailman/listinfo/cocoon-users
Re: [Cocoon Users] Re: Xalan and Cocoon gives different result
fo r some XSL
Posted by Stephen Zisk <sz...@mediabridge.net>.
Be careful of security implications, though. That is, make sure you do not
make this capability work such that if there is a file mumble.xml, you can
see its source by pointing to mumble.xmls. This is a convenient scheme for
certain kinds of debugging, but if you forget to turn it off, you are
exposing your XML source to prying eyes. M$ did this in early versions of ASP.
> > I am now thinking of for all XML with filename .xmls, the apache
>server
> > will use another servlet etc. to pretty print it.
> >
> > If there is already a similar sol'n, that would be appreciated also.
>
>Within the examples dir there is a file called view_source.xml i believe
>that can do this for you... I think this can be easily transformed to a
>servlet which does that always for you... when the extension of a file
>is .xmls (like phps for php)...
>
>Peter
----------
Stephen Zisk MediaBridge Technologies
email: szisk@mediabridge.net 100 Nagog Park
tel: 978-795-7040 Acton, MA 01720 USA
fax: 978-795-7100 http://www.mediabridge.net
Re: [Cocoon Users] Re: Xalan and Cocoon gives different result for some
XSL
Posted by Peter Verhage <pe...@ibuildings.nl>.
> I am now thinking of for all XML with filename .xmls, the apache server
> will use another servlet etc. to pretty print it.
>
> If there is already a similar sol'n, that would be appreciated also.
Within the examples dir there is a file called view_source.xml i believe
that can do this for you... I think this can be easily transformed to a
servlet which does that always for you... when the extension of a file
is .xmls (like phps for php)...
Peter
--
Peter Verhage <pe...@ibuildings.nl>
ibuildings.nl BV - information technology
http://www.ibuildings.nl - 0118 41 50 54