cziegeler 02/02/20 08:07:26 Modified: src/java/org/apache/cocoon/transformation TraxTransformer.java src/webapp/sunspotdemo/profiles sunletprofile.xml src/webapp/sunspotdemo/resources/auth portal.xml Log: Fixing saving of profile and a workaround for a strange arrayindexoutofbounds exception in Xalan! Revision Changes Path 1.14 +17 -1 xml-cocoon2/src/java/org/apache/cocoon/transformation/TraxTransformer.java Index: TraxTransformer.java =================================================================== RCS file: /home/cvs/xml-cocoon2/src/java/org/apache/cocoon/transformation/TraxTransformer.java,v retrieving revision 1.13 retrieving revision 1.14 diff -u -r1.13 -r1.14 --- TraxTransformer.java 13 Feb 2002 01:24:58 -0000 1.13 +++ TraxTransformer.java 20 Feb 2002 16:07:26 -0000 1.14 @@ -161,7 +161,7 @@ * @author <a href="mailto:[EMAIL PROTECTED]">Giacomo Pati</a> * @author <a href="mailto:[EMAIL PROTECTED]">Ovidiu Predescu</a> * @author <a href="mailto:[EMAIL PROTECTED]">Mark H. Butler</a> - * @version CVS $Id: TraxTransformer.java,v 1.13 2002/02/13 01:24:58 vgritsenko Exp $ + * @version CVS $Id: TraxTransformer.java,v 1.14 2002/02/20 16:07:26 cziegeler Exp $ */ public class TraxTransformer extends AbstractTransformer implements Transformer, Composable, Configurable, Cacheable, Disposable { @@ -576,4 +576,20 @@ this._useSessionInfo = this.useSessionInfo; super.recycle(); } + + /** + * SAX Event handling + * FIXME (CZ) This fixes a problem with either the XSLTProcessor + * or the byte stream compiler and comment events send before + * the startDocument event. + */ + public void comment(char ary[], int start, int length) + throws SAXException { + try { + super.comment(ary, start, length); + } catch (Exception any) { + this.getLogger().error("Error in TraxTransformer.comment.", any); + } + } + } 1.2 +10 -10 xml-cocoon2/src/webapp/sunspotdemo/profiles/sunletprofile.xml Index: sunletprofile.xml =================================================================== RCS file: /home/cvs/xml-cocoon2/src/webapp/sunspotdemo/profiles/sunletprofile.xml,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- sunletprofile.xml 18 Feb 2002 09:10:11 -0000 1.1 +++ sunletprofile.xml 20 Feb 2002 16:07:26 -0000 1.2 @@ -1,10 +1,10 @@ <?xml version="1.0" encoding="ISO-8859-1"?> -<!-- $Id: sunletprofile.xml,v 1.1 2002/02/18 09:10:11 cziegeler Exp $ +<!-- $Id: sunletprofile.xml,v 1.2 2002/02/20 16:07:26 cziegeler Exp $ --> <sunlets-profile> <sunlets> <sunlet id="sundnnews"> - <resource uri="cocoon://sunspotdemosunlet-onlinesundn.xml"/> + <resource uri="cocoon:raw://sunspotdemosunlet-onlinesundn.xml"/> <configuration> <mandatory>false</mandatory> <sizable>true</sizable> @@ -19,7 +19,7 @@ </status> </sunlet> <sunlet id="banknews"> - <resource uri="cocoon://sunspotdemosunlet-online-banking.xml"/> + <resource uri="cocoon:raw://sunspotdemosunlet-online-banking.xml"/> <configuration> <mandatory>false</mandatory> <sizable>true</sizable> @@ -33,8 +33,8 @@ </status> </sunlet> <sunlet id="customnews"> - <resource uri="cocoon://sunspotdemosunlet-customnews"/> - <customization uri="cocoon://sunspotdemosunletconf-customnews"/> + <resource uri="cocoon:raw://sunspotdemosunlet-customnews"/> + <customization uri="cocoon:raw://sunspotdemosunletconf-customnews"/> <configuration> <customizable>true</customizable> <persistent>true</persistent> @@ -49,7 +49,7 @@ </status> </sunlet> <sunlet id="germany"> - <resource uri="cocoon://sunspotdemosunlet-online-germany.xml"/> + <resource uri="cocoon:raw://sunspotdemosunlet-online-germany.xml"/> <configuration> <mandatory>false</mandatory> <sizable>true</sizable> @@ -63,7 +63,7 @@ </status> </sunlet> <sunlet id="feedback"> - <resource uri="cocoon://sunspotdemosunlet-feedback.xml"/> + <resource uri="cocoon:raw://sunspotdemosunlet-feedback.xml"/> <configuration> <mandatory>false</mandatory> <sizable>true</sizable> @@ -76,7 +76,7 @@ </status> </sunlet> <sunlet id="administration"> - <resource uri="cocoon://sunspotdemosunlet-administration.xml"/> + <resource uri="cocoon:raw://sunspotdemosunlet-administration.xml"/> <configuration> <mandatory>false</mandatory> <sizable>true</sizable> @@ -89,7 +89,7 @@ </status> </sunlet> <sunlet id="personalize"> - <resource uri="cocoon://sunspotdemosunlet-personalize.xml"/> + <resource uri="cocoon:raw://sunspotdemosunlet-personalize.xml"/> <configuration> <mandatory>true</mandatory> <sizable>true</sizable> @@ -102,7 +102,7 @@ </status> </sunlet> <sunlet id="personalizeguest"> - <resource uri="cocoon://sunspotdemosunlet-personalizeguest.xml"/> + <resource uri="cocoon:raw://sunspotdemosunlet-personalizeguest.xml"/> <configuration> <mandatory>true</mandatory> <sizable>true</sizable> 1.2 +3 -3 xml-cocoon2/src/webapp/sunspotdemo/resources/auth/portal.xml Index: portal.xml =================================================================== RCS file: /home/cvs/xml-cocoon2/src/webapp/sunspotdemo/resources/auth/portal.xml,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- portal.xml 18 Feb 2002 09:10:12 -0000 1.1 +++ portal.xml 20 Feb 2002 16:07:26 -0000 1.2 @@ -1,14 +1,14 @@ <?xml version="1.0"?> -<!-- $Id: portal.xml,v 1.1 2002/02/18 09:10:12 cziegeler Exp $ +<!-- $Id: portal.xml,v 1.2 2002/02/20 16:07:26 cziegeler Exp $ --> -<page> +<page xmlns:sunshine="http://cocoon.apache.org/sunshine/1.0"> <pageset columns="*" rows="118,*"> <part title="Header" scrolling="no"> <url>sunspotdemo-header</url> </part> <pageset columns="*" rows="*,15"> <part title="Content"> - <url>sunspotdemo-portlets</url> + <url>sunspotdemo-portlets<sunshine:getxml context="request" path="/querystring"/></url> </part> <part name="bottom" scrolling="no"> <url>sunspotdemo-bottom</url>
---------------------------------------------------------------------- In case of troubles, e-mail: [EMAIL PROTECTED] To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]