Re: xsp and producing File Not Found
On Sun, 20 Jun 2004 19:48:54 +0200 Joerg Heinicke [EMAIL PROTECTED] wrote: On 18.06.2004 09:53, John L. Webber wrote: Have you tried response.setStatus(404);? Don't do it that way, do it the Cocoon way. with map:handle-errors ... you can catch error, if it happens.. say map:read won't find a file and 404 is returned.. But I don't seem to find, how to throw 404 error from XSP? Throw your specific MyException, catch them in map:handle-errors and set the status to 404 there. There is no need to throw 404 in XSP itself. Joerg Also you can throw ResourceNotFoundException(my message) in xsp -- Best regards, Yury Mikhienko. IT ERP group head, ZAO Mobikom-Kavkaz tel: (8632) 704188 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Passing parameter from sitemap
On Tue, 20 Jan 2004 11:03:09 +0300 Dmitry Diskin [EMAIL PROTECTED] wrote: Antonio Gallardo wrote: Dmitry Diskin dijo: Hi, I'm looking for a way to pass some constant parameter from sitemap to all my xsl styles. Basically I need to replace multiple occurences (bad design! not mine :)) of (c) 2001-2003 to something like (c) 2001-${currentyear}, where currentyear will be defined in single place (sitemap, sub-sutemap?). One posible solution is using XInclude. We use it to set some particular variables for our applications. Note we use some generic xslt to make rendering. I think this could help you too. Sample: Description: We have some variables names for every application that have his own values: application name, author, copyright notice, etc. The solution using XInclude is very easy, just 3 steps: Here is the basic XML that store this particular data for each application (sorry the tags are in spanish, but I hope you can get the idea from): 1- Write a file with tags that will contain all the particular data for each application: ** appdata.xml ** aplicacion nombreMy app name/nombre tituloThe title of the App/titulo elaboradoWho made the App/elaborado html meta name=author content=An author notice/ meta name=copyright content=The copyright notice/ meta name=date content=Start date/ /html documentacionWho made the documentation/documentacion .. /aplicacion * 2-Then in a xslt we use XInclude: ** render2html.xslt * xsl:stylesheet version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xmlns:xi=http://www.w3.org/2001/XInclude; xsl:template match=document html lang=es-NI head xi:include href=context:///resources/datosapp.xml#xpointer(/aplicacion/html/node())/ * 3-In the sitemap.xmap you will use the xinclude transformer after the stylesheet that render the page. In this case render2html.xslt: map:transform src=stylesheets/render2html.xslt/ map:transform type=xinclude/ * For more info about XInclude: http://cocoon.apache.org/2.1/userdocs/transformers/xinclude-transformer.html I hope this help. Best Regards, Antonio Gallardo Thank you, Antonio! However, this is not exactly what I want since I'll have to add xi:include ... / to each xsl file. I will do it, of course, if no other solutions exist. Ideally, I want to define something in sitemap (or include something just once), and then use it in each xsl file without including additional files. Try to use global variables in sitemap and pass them to your transformer -- Best regards, Yury Mikhienko. IT ERP group head, ZAO Mobikom-Kavkaz tel: (8632) 704188 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Showing plain text files with cocoon
On Thu, 8 Jan 2004 16:47:31 +0100 (MET) Stephanie Zohner [EMAIL PROTECTED] wrote: Hi all, Does anybody know how to show plain text files with cocoon? For example: a href=logfile.logLink to Logfile/a Should open a new browser window with the plain text log file as its content. How can I do this with Cocoon. I tried to use the resource reader, like this: map:match pattern=*.log map:read type=resource src={1}.log mime-type=text/plain/ /map:match try map:match pattern=*.log map:read src={1}.log mime-type=text/plain/ /map:match -- Best regards, Yury Mikhienko. IT ERP group head, ZAO Mobikom-Kavkaz tel: (8632) 704188 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Redirect from JXForms
Hi Vasya for redirect try: cocoon.redirectTo(URI); Hi all! I'm using JXForms. After some processing in flow control i need to send a redirect. I've mapped URI for possible outcomes of flow script like this: map:match pattern=security/login/success map:redirect-to uri=welcome.xml/ /map:match map:match pattern=security/login/failed map:redirect-to uri=loginFailed.xml/ /map:match In flow script i have following line form.finish(security/login/success); But it doesn't redirect to welcome.xml. What is the problem? Thanks for help, Vasya. -- Best regards, Yury Mikhienko. IT ERP group head, ZAO Mobikom-Kavkaz - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: SOAP server
On Mon, 24 Nov 2003 14:44:25 +0100 Bertrand Delacretaz [EMAIL PROTECTED] wrote: Can anyone explain me how to create (may be with cocoon usage) the SOAP server? The axis block samples demonstrate SOAP services implemented using Cocoon. I can't find SOAP server creation samples in axis block samples :( Can you show me exact path? -- Best regards, Yury Mikhienko. IT ERP group head, ZAO Mobikom-Kavkaz - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
SOAP server
Hi cocooners! Can anyone explain me how to create (may be with cocoon usage) the SOAP server? Many thanks for advise! -- Best regards, Yury Mikhienko. IT ERP group head, ZAO Mobikom-Kavkaz - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: LDAP authentification with username and password
Can you use another way? For example (one step): Try get the some attribute (uid, for example) from LDAP (with LDAPTransformer): ldap:initializercom.sun.jndi.ldap.LdapCtxFactory/ldap:initializer ldap:serverurlldap://ldaphost/ldap:serverurl ldap:port389/ldap:port ldap:scopeONELEVEL_SCOPE/ldap:scope ldap:rootdnuid=xsp:exprrequest.getParameter(username)/xsp:expr,ou=people,o=mycompany/ldap:rootdn ldap:passwordxsp:exprrequest.getParameter(password)/xsp:expr/ldap:password ldap:attributetitle/ldap:attribute ldap:attributemobile/ldap:attribute ldap:attributecn/ldap:attribute ldap:attributeuid/ldap:attribute ldap:show-attributetrue/ldap:show-attribute /ldap:execute-query Hi, I make use of the LDAP transformer for authentification in my web application. When I understood the documentation right then Authentification requires 2 steps: 1. get all necessary user data (username password) from all users in LDAP 2. Compare the username/password provided with the login with all data sets retrieved from LDAP, if there is a match, the authenfification was successful. Is that right? Here's my problem then. I can retrieve both, username and password, but how can I compare the passwords. The password retrieved from LDAP is encrypted. So in order to compare them, I need to encrypt the password on Cocoon side with the same algoithm, right. Where do I get the encryption algorithm from? I guess that almost everybody who does authentication with LDAP must have had the problem, so how did you solve it? Please if there are any solution out there, post them, I guess, it could be very helpful for a lot of members (maybe it's worth a wiki contribution?). Thanks Stephanie -- Best regards, Yury Mikhienko. IT ERP group head, ZAO Mobikom-Kavkaz - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Hello ! Can I generate PDFs and XLS through a document object and Cocoon ?
Abuout the Xreporter you can find on http://xreporter.cocoondev.org/index.html Hello ! Does xreporter is samilar to Cocoon ? I can't search any tutorial of it ! Thank you ! What about using the cocoon xreporter? Hi Jonathon If you already have a class which generates a JDOM object, you could refer to it in an XSP (this is probably the easiest way), or write a Transformer that wraps the JDOM object and serializes it as SAX. Or, if you don't already have this Java class, you should consider doing the whole thing using existing Cocoon components, without Java programming, with a pipeline like this: 1) use the SQLTransformer to query the database 2) use an XSLT to convert the SQL results (XML) to another XML representation, appropriate to your data model 3) use another XSLT to convert to your presentation format (XLS) Cheers! Con Dear Joerg , Hello ! I am so pleased to hear it is possible . I want to design my application as : 1. some data are stored in a database 2. a class gets a resultset and create a JDOM document object . 3. the class fit the database data to the document object . 4. how can I match the JDOM document object to the corresponding XSL and generate a XLS ? So , possible ? Thank you ! --- Joerg Heinicke [EMAIL PROTECTED] wrote: Yes, should be possible by writing your own simple generator. Where do you get the JDOM object from? -- Best regards, Yury Mikhienko. IT ERP group head, ZAO Mobicom-Kavkaz - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Hello ! Can I generate PDFs and XLS through a document object and Cocoon ?
What about using the cocoon xreporter? Hi Jonathon If you already have a class which generates a JDOM object, you could refer to it in an XSP (this is probably the easiest way), or write a Transformer that wraps the JDOM object and serializes it as SAX. Or, if you don't already have this Java class, you should consider doing the whole thing using existing Cocoon components, without Java programming, with a pipeline like this: 1) use the SQLTransformer to query the database 2) use an XSLT to convert the SQL results (XML) to another XML representation, appropriate to your data model 3) use another XSLT to convert to your presentation format (XLS) Cheers! Con -Original Message- From: jonathan wong [mailto:[EMAIL PROTECTED] Sent: Friday, 19 September 2003 1:30 p.m. To: [EMAIL PROTECTED] Subject: Re: Hello ! Can I generate PDFs and XLS through a document object and Cocoon ? Dear Joerg , Hello ! I am so pleased to hear it is possible . I want to design my application as : 1. some data are stored in a database 2. a class gets a resultset and create a JDOM document object . 3. the class fit the database data to the document object . 4. how can I match the JDOM document object to the corresponding XSL and generate a XLS ? So , possible ? Thank you ! --- Joerg Heinicke [EMAIL PROTECTED] wrote: Yes, should be possible by writing your own simple generator. Where do you get the JDOM object from? -- Best regards, Yury Mikhienko. IT ERP group head, ZAO Mobicom-Kavkaz - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: xmldb:xindice pseudo protocol in cocoon2.1
Hi Julian! Thanks for your reply. Yury, I use xindice by calling the xml:db java api with the xindice-embed protocol. In essence this eliminated the need to have localhost:8080 in your sitemap pipeline (also possibly one less port open)...you can just put xmldb:xindice:///db/web/news-arch/ and be able to read your resource. You must configure cocoon.xconf to use the xindice-embed protocol: !-- xmldb pseudo protocol -- component-instance class=org.apache.cocoon.components.source.impl.XMLDBSourceFactory name=xmldb !-- Xindice driver -- driver class=org.apache.xindice.client.xmldb.DatabaseImpl type=xindice-embed/ /component-instance Yes, I know about. I would have to add that I have found Xindice to be unreliable when creating collections. Generally, they seem to disappear on server restart. After create the collection you must make the backup copy of SysConfig.tbl and SysSymbols.tbl After stopping server you must place that copies instead the current SysConfig.tbl and SysSymbols.tbl That method is very dirty but it worked :)) -- Best regards, Yury Mikhienko. IT ERP group head, ZAO Mobicom-Kavkaz - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
xmldb:xindice pseudo protocol in cocoon2.1
Hi all! I mount the xindice1.1b1 as Tomcat webapp on localhost host. After I trying access to xindice1.1b1 database and get the Could not read resource error: org.apache.cocoon.ProcessingException: Could not read resource xmldb:xindice://localhost:8080/db/web/news-arch/: org.xmldb.api.base.XMLDBException: org.xmldb.api.base.XMLDBException: full exception chain stacktrace Original Exception: org.xmldb.api.base.XMLDBException: at org.xmldb.api.DatabaseManager.getDatabase(DatabaseManager.java:258) at org.xmldb.api.DatabaseManager.getCollection(DatabaseManager.java:190) at org.apache.cocoon.components.source.impl.XMLDBSource.collectionToSAX(XMLDBSource.java:257) at org.apache.cocoon.components.source.impl.XMLDBSource.toSAX(XMLDBSource.java:196) at org.apache.cocoon.components.source.SourceUtil.parse(SourceUtil.java:193) at org.apache.cocoon.generation.FileGenerator.generate(FileGenerator.java:140) at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.processXMLPipeline(AbstractProcessingPipeline.java:548) at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process(AbstractProcessingPipeline.java:492) at org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(SerializeNode.java:150) The XMLDBSource can not initialize collection, but why? I does not have any problem with cocoon2.1m3. Furthermore, I dont see the access points in tomcat localhost access logs. In cocoon core log I see the following: DEBUG (2003-09-15) 19:15.13:215 [core.manager] (/info/db-news) Thread-19/SourceResolverImpl: Resolving 'xmldb:xindice://localhost:8080/db/web/news-arch/#/news' with base 'file:/usr/local/jakarta/catalina/testapps/cocoon/mobicomk/' in context 'file:/usr/local/jakarta/catalina/bin/' DEBUG (2003-09-15) 19:15.13:216 [core.manager] (/info/db-news) Thread-19/DefaultComponentFactory: ComponentFactory creating new instance of org.apache.cocoon.components.source.impl.XMLDBSourceFactory. DEBUG (2003-09-15) 19:15.13:216 [core.manager] (/info/db-news) Thread-19/DefaultComponentFactory: no logger attribute available, using standard logger DEBUG (2003-09-15) 19:15.13:217 [core.manager] (/info/db-news) Thread-19/XMLDBSourceFactory: Initializing XML:DB connection, using driver org.apache.xindice.client.xmldb.DatabaseImpl DEBUG (2003-09-15) 19:15.13:217 [core.manager] (/info/db-news) Thread-19/SourceResolverImpl: Resolved to systemID : xmldb:xindice://localhost:8080/db/web/news-arch/#/news DEBUG (2003-09-15) 19:15.13:218 [core.manager] (/info/db-news) Thread-19/DefaultComponentFactory: ComponentFactory decommissioning instance of org.apache.cocoon.components.source.impl.XMLDBSourceFactory. DEBUG (2003-09-15) 19:15.13:220 [core.manager] (/info/db-news) Thread-19/ExcaliburComponentSelector: source-factories: ComponentSelector could not find the component for hint [://localhost:8080/db/web/news-arch/] ^ -WHAT THIS? DEBUG (2003-09-15) 19:15.13:222 [core.manager] (/info/db-news) Thread-19/DefaultComponentFactory: ComponentFactory creating new instance of org.apache.cocoon.components.notification.DefaultNotifyingBuilder. DEBUG (2003-09-15) 19:15.13:252 [core.manager] (/info/db-news) Thread-19/DefaultComponentFactory: ComponentFactory decommissioning instance of org.apache.cocoon.components.notification.DefaultNotifyingBuilder. DEBUG (2003-09-15) 19:15.13:256 [core.modules.input] (/info/db-news) Thread-19/AbstractJXPathModule: no local Classes or Packages DEBUG (2003-09-15) 19:15.13:258 [core.manager] (/info/db-news) Thread-19/SourceResolverImpl: Resolving 'context://stylesheets/system/error500code2html.xsl' with base 'file:/usr/local/jakarta/catalina/testapps/cocoon/' in context 'file:/usr/local/jakarta/catalina/bin/' DEBUG (2003-09-15) 19:15.13:258 [core.manager] (/info/db-news) Thread-19/SourceResolverImpl: Resolved to systemID : context://stylesheets/system/error500code2html.xsl DEBUG (2003-09-15) 19:15.13:259 [core.manager] (/info/db-news) Thread-19/ContextSourceFactory: Creating source object for context://stylesheets/system/error500code2html.xsl I'm confused :((, I still not migrate to cocoon2.1 from cocoon2.0.4 Sorry by my horrible english. Thanks for any help! P.S. for example, with command line I get the document from collection successfully [EMAIL PROTECTED] catalina]$ xindice xpath -c /db/web/news-arch/ -q /news[date='03.04.03'] news xmlns:src=http://xml.apache.org/xindice/Query; src:col=/db/web/news-arch src:key=news_00097.xml date xmlns:src=http://xml.apache.org/xindice/Query;03.04.03/date title xmlns:src=http://xml.apache.org/xindice/Query; /title sub-title xmlns:src=http://xml.apache.org/xindice/Query; quot;quot;. /sub-title body xmlns:src=http://xml.apache.org/xindice/Query; -- ( ). ,. /body /news -- Best regards, Yury Mikhienko. IT engineer, ZAO Mobicom-Kavkaz
Serializing document in UTF-16 encoding
Hi all! I use: cocoon2.0.4 + Tomcat 4.1.24 In first two octets document text body (first 2 bytes) I get the %FF%FE bytes when I try get UTF-16 encoded document (html, text, xml). Why? If I try get the document in other encoding I do not get that bytes (so ok). How I can solve this problem? Or I'm wrong? Many thanks for help! -- Best regards, Yury Mikhienko. IT engineer, ZAO Mobicom-Kavkaz - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ChartTransformer, endorsed libs, Tomcat
Many thanks for you answering. I agree, but You both seem to have strange problems with those XML libraries which I don't have in general. 1. JDK 1.3 can't cause any problems in theory because it does not provide any XML library. If you have problems, something else must be the reason. You are right. 2. Be sure, that in TOMCAT_HOME/common/endorsed are *exactly the same* libraries as in COCOON_HOME/WEB-INF/lib. And this does only work if you use the default startup scripts delivered with TOMCAT. If you don't use them you have to add -Djava.endorsed.dirs=/your/path/to/the/endorsed/libs when starting the Java process. This is the option TOMCAT sets in its start scripts to TOMCAT_HOME/common/endorsed. If you switch between Xalan/Xerces versions you must exchange the libraries both in TOMCAT_HOME/common/endorsed and COCOON_HOME/WEB-INF/lib. Why I must do it? I use Tomcat as servlet container for all servlets, not for Cocoon only. And all works fine, if I set in web.xml CocoonParanoidServlet instead of the CocoonServlet, but after this I can not make interaction between the Cocoon (in Paranoid mode) and other servlets in Tomcat. 3. Test if you really use the XML libraries you think, use Xalan's environment check for it: http://xml.apache.org/xalan-j/faq.html#faq-N1005C. Try the stylesheet, it's easier. Of course you must use Xalan for it, not XSLTC. XSLTC does not support Xalan extension function which is used for the environment check. for additional, XSLTC does not support XPath perfectly (in my opinion). 4. The hardest test for XSLT processors I know are the DocBook stylesheets. If a Xalan version works with those stylesheets it's /approved/. ;-) I don't see a difference between both (using Xalan, not XSLTC), both have a bug with the auto index generation. But of course if you use any specific thing that has changed between both versions, it's possible that 2.5.1 has problems that 2.4.1 does not have. But for most use cases it works, so Cocoon uses the most recent ones. If you have a specific problem, then you must switch back to the old version in your installation; we can't force all users to switch back. Furthermore this helps the Xalan team to fix recent bugs. If you think you know of one, post it at bugzilla. Old version of Xalan and Xerces make the works of Cocoon-2.1m3 is very very hard and time of time I get the strange exceptions (OutOfMemory error, for example) 5. More stuff to read: http://wiki.cocoondev.org/Wiki.jsp?page=NoMoreDtmIdError http://wiki.cocoondev.org/Wiki.jsp?page=EndorsedLibsProblem (including an alternative for never having any endorsed libs problem anymore :-) ) 6. The stacktrace is typical for endorsed libs problem - and often seen. I think, Cocoon2.1 is still crude :((( In my opinion the Cocoon2.0.4 at most stable version of Cocoon for this time. Regards, Joerg Olivier Billard wrote: I think it may come from the JDK that was installed (1.3.1), that may cause problems with xalan-xsltc. Classic xalan works well With a JDK 1.4, all works well Yury Mikhienko wrote: May be xalan-2.5.1 is not quite up yet? My pb seemed to come from Apache and its class-loader. Tomcat in standalone mode seem to work... For the exception you mentioned, I met this error today and it worked when I changed back default Transformer to xalan... Yury Mikhienko wrote: In additional: if I remove the xalan-2.4.1.jar xercesImpl-2.1.0.jar xml-apis.jar from Tomcat endorsed directory (like after the pure Tomcat installation) I get the following error: 2003-07-24 16:56:07 StandardWrapperValve[Cocoon]: Servlet.service() for servlet Cocoon threw exception javax.servlet.ServletException: Servlet execution threw an exception at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) ... - Root Cause - java.lang.IllegalAccessError: class org.apache.xml.dtm.ref.sax2dtm.SAX2DTM2$AncestorIterator cannot access its superclass org.apache.xml.dtm.ref.DTMDefaultBaseIterators$InternalAxisIteratorBase at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:502) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123
xmldb:xindice protocol in cocoon2.1m3
Hi all! connection to xindice from path like xmldb:xindice:///db/mycollection, is deprecated on cocoon2.1m3? Or I must configure it? (Currently XMLDBSource can read resource from full path, like 'xmldb:xindice://host:port/db/mycollection' only :(( ) -- Best regards, Yury Mikhienko. IT engineer, ZAO Mobicom-Kavkaz - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: dynamic encoding for html serialiser?
Sometime ago this question was already asked on cocoon-dev list, but setup() method is not implemented in serializers at this time (( You declare the encoding as part of the serializer config in the sitemap. if you need the same serializer to use different encodings in different pipelines, you need to declare the serializer once for each of the encodings with a different name each time. Geoff Tsui, Alban wrote: Hi I am trying to write a xsp page directly generating html and my page will take in a parameter which would tell me what final encoding the page should use. SO I tried to manually generate that meta Content=text/html; charset=ISO-8859-1 http-equiv=Content-Type tag ... but my serializer seems to append meta Content=text/html; charset=UTF-8 http-equiv=Content-Type in my final html output. i have not specified any encoding in my html serializer defintion in my sitemap at all... and I have an entry as follows: map:serializers default=html map:serializer logger=sitemap.serializer.xml mime-type=text/xml name=xml src=org.apache.cocoon.serialization.XMLSerializer/ map:serializer logger=sitemap.serializer.html mime-type=text/html name=html src=org.apache.cocoon.serialization.HTMLSerializer buffer-size1024/buffer-size /map:serializer map:serializer logger=sitemap.serializer.svgxml mime-type=image/svg-xml name=svgxml src=org.apache.cocoon.serialization.XMLSerializer doctype-public-//W3C//DTD SVG 2303 Stylable//EN/doctype-public doctype-systemhttp://www.w3.org/TR/2000/03/WD-SVG-2303//doctype-system /map:serializer map:serializer mime-type=image/jpeg name=svg2jpeg src=org.apache.cocoon.serialization.SVGSerializer parameter name=quality type=float value=0.9/ /map:serializer map:serializer mime-type=image/png name=svg2png src=org.apache.cocoon.serialization.SVGSerializer/ /map:serializers Is there anyway I could effect the final encoding in that meta string generated from the serialiser from within the xsp generator? I am using version 2.0.3 cocoon. AT Join us at Cognos' biggest event of the year/ Enterprise 2003, The Cognos Business Forum/. Taking place in over 25 cities around the world, it's an opportunity for Business and IT leaders to learn about strategies for driving performance. Visit_ http://www.cognos.com/enterprise03_ for more details. This message may contain privileged and/or confidential information. If you have received this e-mail in error or are not the intended recipient, you may not use, copy, disseminate or distribute it; do not open any attachments, delete it immediately from your system and notify the sender promptly by e-mail that you have done so. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Best regards, Yury Mikhienko. IT engineer, ZAO Mobicom-Kavkaz - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: dynamic encoding for html serialiser?
On Thu, 17 Jul 2003 10:25:56 -0400 Geoff Howard [EMAIL PROTECTED] wrote: Yury Mikhienko wrote: On Thu, 17 Jul 2003 09:43:27 -0400 Geoff Howard [EMAIL PROTECTED] wrote: Sometime ago this question was already asked on cocoon-dev list, but setup() method is not implemented in serializers at this time (( ... Hope that clears it up, Geoff Yes, you are right, but implementation of the setup() method make serialize step more flexible. It was decided to purposely deny that flexibility. You should be able achieve anything you need to with matchers and selectors. Ok, you set the rules. ;)) -- Best regards, Yury Mikhienko. IT engineer, ZAO Mobicom-Kavkaz - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Use of LDAP - equivalent command line?
On Wed, 16 Jul 2003 09:36:24 -0700 (PDT) e nio [EMAIL PROTECTED] wrote: Thank you for all the responses. But is the whole doldapqry.xml I used equivalent to below in the command line? ldapsearch -b 'o=stooges' '(cn=*)' This command does provide the result when I typed on the command line and I get at the end #numEntries: 4. Adding the amp; basically logically AND made the query work (amp;(cn=*)) and put the result into the xml. But what is it ANDing to? why does it not work with just (cn=*) as the filter? From the Wiki the filter element is !ELEMENT filter (#PCDATA | execute-query) This doesnt seem to indicate using amp; See on: http://java.sun.com/products/jndi/tutorial/basics/directory/filter.html -- Best regards, Yury Mikhienko. IT engineer, ZAO Mobicom-Kavkaz - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
serializing the br/, img/ elements
Hi all! The one more question: Why HTMLSerializer serialize the br/ element as br? Can I change this? Thanks! -- Best regards, Yury Mikhienko. IT engineer, ZAO Mobicom-Kavkaz - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: serializing the br/, img/ elements
Very difficult include the HTML content as XML from datastore into document without jTidy hence. :( Simple answer: because that's HTML :-) You can use the serializer type=xhtml/. It's an XMLSerializer, but Xalan has a logic to recognize whether it's XHTML or not (I guess by the root element). You should get br / then. Joerg Yury Mikhienko wrote: Hi all! The one more question: Why HTMLSerializer serialize the br/ element as br? Can I change this? Thanks! -- Best regards, Yury Mikhienko. IT engineer, ZAO Mobicom-Kavkaz - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]