Return-Path: Mailing-List: contact cocoon-cvs-help@xml.apache.org; run by ezmlm Delivered-To: mailing list cocoon-cvs@xml.apache.org Received: (qmail 26042 invoked by uid 1041); 12 Jul 2000 22:15:32 -0000 Date: 12 Jul 2000 22:15:32 -0000 Message-ID: <20000712221532.26041.qmail@locus.apache.org> From: giacomo@locus.apache.org To: xml-cocoon-cvs@apache.org Subject: cvs commit: xml-cocoon/xdocs/drafts sitemap-working-draft.xmap giacomo 00/07/12 15:15:31 Modified: conf Tag: xml-cocoon2 cocoon.xconf src/org/apache/cocoon/components/language/markup/sitemap/java Tag: xml-cocoon2 sitemap.xsl src/org/apache/cocoon/matching Tag: xml-cocoon2 BrowserMatcherFactory.java src/org/apache/cocoon/sitemap Tag: xml-cocoon2 XSLTMatcherFactoryLoader.java xdocs/drafts Tag: xml-cocoon2 sitemap-working-draft.xmap Added: src/org/apache/cocoon/generation Tag: xml-cocoon2 StatusGenerator.java src/org/apache/cocoon/selection Tag: xml-cocoon2 BrowserSelectorFactory.java SelectorFactory.java src/org/apache/cocoon/sitemap Tag: xml-cocoon2 XSLTSelectorFactoryLoader.java Removed: src/org/apache/arch/config Tag: xml-cocoon2 SitemapConfigurationBuilder.java Log: Saving day work of generated SitemapProcessor Revision Changes Path No revision No revision 1.1.2.11 +152 -141 xml-cocoon/conf/Attic/cocoon.xconf Index: cocoon.xconf =================================================================== RCS file: /home/cvs/xml-cocoon/conf/Attic/cocoon.xconf,v retrieving revision 1.1.2.10 retrieving revision 1.1.2.11 diff -u -r1.1.2.10 -r1.1.2.11 --- cocoon.xconf 2000/07/11 23:46:32 1.1.2.10 +++ cocoon.xconf 2000/07/12 22:15:05 1.1.2.11 @@ -1,141 +1,152 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + No revision No revision 1.1.2.7 +499 -501 xml-cocoon/src/org/apache/cocoon/components/language/markup/sitemap/java/Attic/sitemap.xsl Index: sitemap.xsl =================================================================== RCS file: /home/cvs/xml-cocoon/src/org/apache/cocoon/components/language/markup/sitemap/java/Attic/sitemap.xsl,v retrieving revision 1.1.2.6 retrieving revision 1.1.2.7 diff -u -r1.1.2.6 -r1.1.2.7 --- sitemap.xsl 2000/07/11 23:46:36 1.1.2.6 +++ sitemap.xsl 2000/07/12 22:15:07 1.1.2.7 @@ -1,503 +1,501 @@ - - - - - - - - map - - - - - - - - - - - package ; - - import java.util.Map; - import java.util.Stack; - import java.util.Vector; - - import org.apache.avalon.Configuration; - import org.apache.avalon.ConfigurationException; - import org.apache.avalon.SitemapConfigurationBuilder; - import org.apache.avalon.utils.Parameters; - import org.apache.cocoon.Request; - import org.apache.cocoon.Response; - import org.apache.cocoon.selection.Selector; - import org.apache.cocoon.transformation.Transformer; - import org.apache.cocoon.generation.Generator; - import org.apache.cocoon.matching.Matcher; - import org.apache.cocoon.serialization.Serializer; - import org.apache.cocoon.sitemap.AbstractSitemapProcessor; - import org.apache.cocoon.sitemap.ResourcePipeline; - - import org.xml.sax.helpers.AttributesImpl; - -/** - * - * @author <a href="mailto:Giacomo.Pati@pwr.ch">Giacomo Pati</a> - * @version CVS $Revision: 1.1.2.6 $ $Date: 2000/07/11 23:46:36 $ - */ -public class extends AbstractSitemapProcessor { - - SitemapConfigurationBuilder confBuilder = new SitemapConfigurationBuilder (); - Parameters emptyParam = new Parameters(); - - - /** The generators */ - - private Generator generator_ = null; - - - /** The transformers */ - - private Transformer transformer_ = null; - - - /** The serializers */ - - private Serializer serializer_ = null; - - - /** The matchers */ - - private Matcher matcher_ = null; - - - /** The selectors */ - - private Selector selector_ = null; - - - /** The sub sitemaps */ - - SitemapProcessor sitemap_ = null; - - - /** The generated matchers */ - - - - true - - - - private Map _matcher_ (Request request) { - ; - } + + + + + + + + map + + + + + + + + + + + package ; + + import java.util.Map; + import java.util.Stack; + import java.util.Vector; + + import org.apache.avalon.Configuration; + import org.apache.avalon.ConfigurationException; + import org.apache.avalon.SAXConfigurationBuilder; + import org.apache.avalon.utils.Parameters; + + import org.apache.cocoon.Request; + import org.apache.cocoon.Response; + import org.apache.cocoon.selection.Selector; + import org.apache.cocoon.transformation.Transformer; + import org.apache.cocoon.generation.Generator; + import org.apache.cocoon.matching.Matcher; + import org.apache.cocoon.serialization.Serializer; + import org.apache.cocoon.sitemap.AbstractSitemapProcessor; + import org.apache.cocoon.sitemap.ResourcePipeline; + + import org.xml.sax.helpers.AttributesImpl; + +/** + * + * @author <a href="mailto:Giacomo.Pati@pwr.ch">Giacomo Pati</a> + * @version CVS $Revision: 1.1.2.7 $ $Date: 2000/07/12 22:15:07 $ + */ +public class extends AbstractSitemapProcessor { + + SAXConfigurationBuilder confBuilder = new SAXConfigurationBuilder (); + Parameters emptyParam = new Parameters(); + + + /** The generators */ + + private Generator generator_ = null; + + + /** The transformers */ + + private Transformer transformer_ = null; + + + /** The serializers */ + + private Serializer serializer_ = null; + + + /** The matchers */ + + private Matcher matcher_ = null; + + + /** The selectors */ + + private Selector selector_ = null; + + + /** The sub sitemaps */ + + SitemapProcessor sitemap_ = null; + + + /** The generated matchers */ + + + + true + + + + private Map _matcher_ (Request request) { + + } + + + + /** The generated selectors */ + + + + true + + + + private boolean _selector_ (Request request) { + + } + + + + /** + * Pass a <code>Configuration</code> instance to this + * <code>Configurable</code> class. + */ + public void setConfiguration(Configuration xconf) { + throws ConfigurationException { + AttributeImpl attr = new AttributeImpl(); + + + /* Configure generators */ + + generator + Generator + + + + /* Configure transformers */ + + transformer + Transformer + + + + /* Configure serializers */ + + serializer + Serializer + + + + /* Configure matchers */ + + matcher + Matcher + + + + /* Configure selectors */ + + selector + Selector + + + + /* Configure mounted sitemaps */ + SitemapManager sm = SitemapManager.getInstance(); + sm.beginRegistration (this); + + sitemap_ = sm.registerSitemap (this, ""); + sitemap_.setConfiguration (null); + + sm.endRegistration (this); + } + + + private boolean resource_ (ResourcePipeline pipeline, + Stack mapStack, Request req, Response res, OutputStream out) + throws SAXException, IOException, ProcessingException { + Map map = null; + Parameters param = null; + + } + + + /** + * Process the given Request producing the output to the + * specified Response and OutputStream. + */ + public boolean process(Request req, Response res, OutputStream out) + throws SAXException, IOException, ProcessingException { + ResourcePipeline pipeline = new ResourcePipeline (); + Stack mapStack = new Stack(); + Map map = null; + Parameters param = null; + + try { + + } catch (Exception e) { + + + throw e; + + + pipeline.setGenerator (generator_error_hanler, e.getMessage(), emptyParam); + + return pipeline.process (request, response, out); + + + } + + } +} + + + + + + + type + + + + + + pattern + true + + + if ((map = matcher_.match ("", request)) != null) { + mapStack.push (map); + + } + + + + + + type + + + + + + + test + true + + + if (selector_.select ("", request)) { + + } + + + + else { + + } + + + + + + + setGenerator + generator + + + + + + + addTransformer + transformer + + + + + + + setSerializer + serializer + + return pipeline.process (request, response, out); + + + + + + + + + + + + return sitemap_.process(request, response, out); + + + + return read (request, response, out, + "", ""); + + + + + + return resource_(pipeline, mapStack, request, response, out); + + + // request.setUri (""); + // this.process(request, response, out); + + + + Missing attribute uri= or resource= to element redirect-to + + + + + + + param.setParameter ("", ""); + + + + + + + + + + + + + + + + confBuilder.startDocument (); + + + + + + + + + confBuilder.endDocument (); + _ = + ()load_component ("", confBuilder.getConfiguration()); + + + + + + + + + + + + + + + + + + + + confBuilder.startPrefixMapping("",""); + + attr.clear(); + + attr.addAttribute ("", "", "", "CDATA", ""); - - - /** The generated selectors */ - - - - true - - - - private boolean _selector_ (Request request) { - - } + confBuilder.startElement("", "", "", attr); + + confBuilder.characters("".toCharArray(), 0, ); - - - /** - * Pass a <code>Configuration</code> instance to this - * <code>Configurable</code> class. - */ - public void setConfiguration(Configuration xconf) { - throws ConfigurationException { - - - /* Configure generators */ - - generator - Generator - - - - /* Configure filters */ - - transformer - Transformer - - - - /* Configure serializers */ - - serializer - Serializer - - - - /* Configure matchers */ - - matcher - Matcher - - - - /* Configure selectors */ - - selector - Selector - - - - /* Configure mounted sitemaps */ - Cocoon cocoon = manager.getComponent ("cocoon"); - cocoon.clearRegistration (this); - - sitemap_ = cocoon.getSitemapInstance (this, ""); - sitemap_.setConfiguration (null); - - } - - - private boolean resource_ (ResourcePipeline pipeline, - Stack mapStack, Request req, Response res, OutputStream out) - throws SAXException, IOException, ProcessingException { - Map map = null; - Parameters param = null; - - } - - - /** - * Process the given Request producing the output to the - * specified Response and OutputStream. - */ - public boolean process(Request req, Response res, OutputStream out) - throws SAXException, IOException, ProcessingException { - ResourcePipeline pipeline = new ResourcePipeline (); - Stack mapStack = new Stack(); - Map map = null; - Parameters param = null; - - try { - - } catch (Exception e) { - - - throw e; - - - pipeline.setGenerator (generator_error_hanler, e.getMessage(), emptyParam); - - return pipeline.process (request, response, out); - - - } - - } -} - - - - - - - type - - - - - - pattern - true - - - if ((map = matcher_.match ("", request)) != null) { - mapStack.push (map); - - } - - - - - - type - - - - - - - test - true - - - if (selector_.select ("", request)) { - - } - - - - else { - - } - - - - - - - setGenerator - generator - - - - - - - addTransformer - transformer - - - - - - - setSerializer - serializer - - return pipeline.process (request, response, out); - - - - return sitemap_.process(request, response, out); - - - - return read (request, response, out, - "", ""); - - - - - - return resource_(pipeline, mapStack, request, response, out); - - - // request.setUri (""); - // this.process(request, response, out); - - - - Missing attribute uri= or resource= to element redirect-to - - - - - - - param.setParameter ("", ""); - - - - - - - - - - - - - - - - __conf - - - - - - - - - _ = - ()load_component ("", ); - - - - - - - - - - - - - - - - - __conf - - - Configuration = confBuilder.newConfiguration (""); - - - - - - - - confBuilder.addAttribute ("", "", ); - - - confBuilder.addAttribute ("", "", ); - - - - - confBuilder.addAttribute ("", "", ); - - - confBuilder.addAttribute ("", "", ); - - - - - - - - - - - - - - - - - - __conf - - confBuilder.addConfiguration (, ); - - - - - - - - - - - - type - - - - - - src - null - - - - param = new Parameters (); - - - - - param - - - emptyParam - - - - - - - pipeline. (_, - null, ); - - - pipeline. (_, - "", ); - - - - - - - - - - false - - - - - - - - - - - - - - - - - - - [Logicsheet processor] -Parameter '' missing in dynamic tag <> - - - - "" - - - - - - - - - - - - - - - - - - - - - - - - - - - + + confBuilder.characters("".toCharArray(), 0, ); + + + + + + + + + + + + + + + + + confBuilder.endElement("", "", ""); + + confBuilder.endPrefixMapping("",""); + + + + + + + + + + + type + + + + + + src + null + + + + param = new Parameters (); + + + + + param + + + emptyParam + + + + + + + pipeline. (_, + null, ); + + + pipeline. (_, + "", ); + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + [Logicsheet processor] +Parameter '' missing in dynamic tag <> + + + + "" + + + + + + + + + + + + + + + + + + + + + + + + + + + No revision No revision 1.1.2.1 +189 -0 xml-cocoon/src/org/apache/cocoon/generation/Attic/StatusGenerator.java No revision No revision 1.1.2.2 +2 -2 xml-cocoon/src/org/apache/cocoon/matching/Attic/BrowserMatcherFactory.java Index: BrowserMatcherFactory.java =================================================================== RCS file: /home/cvs/xml-cocoon/src/org/apache/cocoon/matching/Attic/BrowserMatcherFactory.java,v retrieving revision 1.1.2.1 retrieving revision 1.1.2.2 diff -u -r1.1.2.1 -r1.1.2.2 --- BrowserMatcherFactory.java 2000/07/11 23:46:41 1.1.2.1 +++ BrowserMatcherFactory.java 2000/07/12 22:15:11 1.1.2.2 @@ -12,11 +12,11 @@ * for request URIs * * @author Giacomo Pati - * @version CVS $Revision: 1.1.2.1 $ $Date: 2000/07/11 23:46:41 $ + * @version CVS $Revision: 1.1.2.2 $ $Date: 2000/07/12 22:15:11 $ */ public class BrowserMatcherFactory implements MatcherFactory { public String generate (String test_expression) { - return "return \"BrowserMatcher\""; + return "return null;"; } } No revision No revision 1.1.2.1 +22 -0 xml-cocoon/src/org/apache/cocoon/selection/Attic/BrowserSelectorFactory.java 1.1.2.1 +24 -0 xml-cocoon/src/org/apache/cocoon/selection/Attic/SelectorFactory.java No revision No revision 1.1.2.2 +1 -3 xml-cocoon/src/org/apache/cocoon/sitemap/Attic/XSLTMatcherFactoryLoader.java Index: XSLTMatcherFactoryLoader.java =================================================================== RCS file: /home/cvs/xml-cocoon/src/org/apache/cocoon/sitemap/Attic/XSLTMatcherFactoryLoader.java,v retrieving revision 1.1.2.1 retrieving revision 1.1.2.2 diff -u -r1.1.2.1 -r1.1.2.2 --- XSLTMatcherFactoryLoader.java 2000/07/12 00:11:07 1.1.2.1 +++ XSLTMatcherFactoryLoader.java 2000/07/12 22:15:17 1.1.2.2 @@ -15,12 +15,10 @@ * generated source code. * * @author Giacomo Pati - * @version CVS $Revision: 1.1.2.1 $ $Date: 2000/07/12 00:11:07 $ + * @version CVS $Revision: 1.1.2.2 $ $Date: 2000/07/12 22:15:17 $ */ public class XSLTMatcherFactoryLoader { - public XSLTMatcherFactoryLoader () { - } public String getSource (String matcherFactoryClassname, String pattern) throws ClassNotFoundException, InstantiationException, IllegalAccessException, Exception { No revision No revision 1.1.2.1 +29 -0 xml-cocoon/src/org/apache/cocoon/sitemap/Attic/XSLTSelectorFactoryLoader.java No revision No revision 1.1.2.9 +26 -26 xml-cocoon/xdocs/drafts/Attic/sitemap-working-draft.xmap Index: sitemap-working-draft.xmap =================================================================== RCS file: /home/cvs/xml-cocoon/xdocs/drafts/Attic/sitemap-working-draft.xmap,v retrieving revision 1.1.2.8 retrieving revision 1.1.2.9 diff -u -r1.1.2.8 -r1.1.2.9 --- sitemap-working-draft.xmap 2000/07/11 23:47:03 1.1.2.8 +++ sitemap-working-draft.xmap 2000/07/12 22:15:26 1.1.2.9 @@ -131,9 +131,9 @@ pipeline processing. --> - - - + + + ... @@ -142,12 +142,12 @@ Transformers transform SAX events in SAX events. --> - + - - - + + + - + - 1 + 1 @@ -168,7 +168,7 @@ red black - > + orange @@ -179,44 +179,44 @@ - + -//WAPFORUM//DTD WML 1.1//EN http://www.wapforum.org/DTD/wml_1.1.xml UTF-8 - + 80% - + png - - + + ... - + - + ... - + - + ... - - + + - + ... - + ... - + ...