You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by MORĂVEK Peter <mo...@pobox.sk> on 2001/06/02 14:43:44 UTC
SAXON and namespacing including problem !
Yes ... we also have this problem in our XSP pages - it adds source code to
generated .java pages to include namespace declaration attributes in every
element we produce using XSP.
Our configuration is:
Cocoon 1.8.3, Saxon 6.2.2.
Does anybody other have these problems with SAXON as XSLT transformer ?
Have anyone found the solution for this problem ?
Thanks
Peter
> -----Original Message-----
> From: Steven Punte [mailto:stevep193@excite.com]
> Sent: Monday, May 21, 2001 9:02 PM
> To: cocoon-users@xml.apache.org
> Subject: HELP: Too many namespace attributes with Saxon
>
>
> When using Saxon, each and every node is specified with
> detailed namespace information. For example:
>
> Xalan:
>
> <page>
> ....
> </page>
>
>
> Saxon:
>
> <page
> xmlns:xml http://www.w3.org/XML/1998/namespace
> xmlns:xsp http://www.apache.org/1999/XSP/Core >
> ....
> </page>
>
>
> While this is perhaps "more correct", it quickly
> and needlessly pushes me over the 64K byte JVM
> limitation.
>
> Does anyone know a way of suppressing this behavior?
>
> Thanks:
>
> Steve Punte
>
>
>
>
> FRAGMETN OUTPUT JAVA FILE USING XALAN
>
> xspCurrentNode =
> document.createElement("page");
> xspParentNode.appendChild(xspCurrentNode);
>
>
> SAME FRAGMENT OUTPUT JAVA FILE USING SAXON
>
> xspCurrentNode =
> document.createElement("page");
> xspParentNode.appendChild(xspCurrentNode);
>
> ((Element) xspCurrentNode).setAttribute(
> "xmlns:xml",
> "http://www.w3.org/XML/1998/namespace"
> );
>
> ((Element) xspCurrentNode).setAttribute(
> "xmlns:xsp",
> "http://www.apache.org/1999/XSP/Core"
> );
>
>
>
>
>
> _______________________________________________________
> Send a cool gift with your E-Card
> http://www.bluemountain.com/giftcenter/
>
>
>
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>
> To unsubscribe, e-mail: <co...@xml.apache.org>
> For additional commands, e-mail: <co...@xml.apache.org>
>
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>