Return-Path: Delivered-To: apmail-xml-cocoon-cvs-archive@xml.apache.org Received: (qmail 12839 invoked by uid 500); 12 Jun 2001 17:18:06 -0000 Mailing-List: contact cocoon-cvs-help@xml.apache.org; run by ezmlm Precedence: bulk Reply-To: cocoon-dev@xml.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list cocoon-cvs@xml.apache.org Received: (qmail 12587 invoked by uid 500); 12 Jun 2001 17:18:03 -0000 Delivered-To: apmail-xml-cocoon2-cvs@apache.org Date: 12 Jun 2001 17:18:01 -0000 Message-ID: <20010612171801.12505.qmail@apache.org> From: dims@apache.org To: xml-cocoon2-cvs@apache.org Subject: cvs commit: xml-cocoon2/src/org/apache/cocoon/components/language/markup/sitemap/java sitemap.xsl dims 01/06/12 10:18:01 Modified: src/org/apache/cocoon/components/language/markup/sitemap/java sitemap.xsl Log: Sync with 2.0 b1 dev Revision Changes Path 1.16 +98 -10 xml-cocoon2/src/org/apache/cocoon/components/language/markup/sitemap/java/sitemap.xsl Index: sitemap.xsl =================================================================== RCS file: /home/cvs/xml-cocoon2/src/org/apache/cocoon/components/language/markup/sitemap/java/sitemap.xsl,v retrieving revision 1.15 retrieving revision 1.16 diff -u -r1.15 -r1.16 --- sitemap.xsl 2001/06/11 13:37:06 1.15 +++ sitemap.xsl 2001/06/12 17:17:58 1.16 @@ -127,7 +127,7 @@ * * @author <a href="mailto:giacomo@apache.org">Giacomo Pati</a> * @author <a href="mailto:bloritsch@apache.org">Berin Loritsch</a> - * @version CVS $Id: sitemap.xsl,v 1.15 2001/06/11 13:37:06 dims Exp $ + * @version CVS $Id: sitemap.xsl,v 1.16 2001/06/12 17:17:58 dims Exp $ */ public class extends AbstractSitemap { static final String LOCATION = "."; @@ -192,6 +192,7 @@ + // The generated selector for a pattern of "" @@ -461,8 +462,8 @@ - // method for handling "" - if(Match( + // method for handling "" + if(Match( environment, pipeline, eventPipeline, internalRequest,listOfMaps)) return true; @@ -477,9 +478,9 @@ getLogger().warn("Error, try to process the error page", e); try { - return error_process_ (environment, - environment.getObjectModel(), - e, + return error_process_ (environment, + environment.getObjectModel(), + e, internalRequest); } catch (Exception ex) { getLogger().warn("Sitemap Error Process", ex); @@ -533,6 +534,93 @@ + + + + + + type + + + + + + + + pattern + true + + + + + + + matcher_ + _ + + + + + + + + + + + + Sitemap parameters should now be in the sitemap namespace (map:parameter). + + + + + + param = new Parameters (); + + + + + + + param + + + emptyParam + + + + + + + param + + + + + + + + Match(_expr, objectModel, ) + + + ((Matcher)this.matchers.select("")).match(substitute(listOfMaps,""), objectModel, ) + + + + + + + // handling "" + if ((map = ) != null) { + getLogger().debug("Matched "); + listOfMaps.add (map); + + listOfMaps.remove (listOfMaps.size()-1); + } + + + @@ -609,11 +697,11 @@ - // method for handling "" + // method for handling "" private boolean Match( - Environment environment, StreamPipeline pipeline, + Environment environment, StreamPipeline pipeline, EventPipeline eventPipeline, - boolean internalRequest, List listOfMaps) + boolean internalRequest, List listOfMaps) throws ConnectionResetException, ResourceNotFoundException, Exception { Map map; Parameters param; @@ -621,7 +709,7 @@ SitemapRedirector redirector = new SitemapRedirector(environment); String cocoon_view = environment.getView(); String cocoon_action = environment.getAction(); - + if ((map = ) != null) { getLogger().debug("Matched "); listOfMaps.add (map); ---------------------------------------------------------------------- In case of troubles, e-mail: webmaster@xml.apache.org To unsubscribe, e-mail: cocoon-cvs-unsubscribe@xml.apache.org For additional commands, e-mail: cocoon-cvs-help@xml.apache.org