RE: Corrocean.com - new Cocoon 2 site ready for the live site list
Fra: Alex Kachanov [mailto:[EMAIL PROTECTED]] Looks impressive How many hits you have? How high is the load? How powerful is the machine? They get maybe 400-500 sessions a day, with approx 10-30 pageviews per session. It's not that many visitors, it's a fairly narrow business field, We are running on a dual Xeon 700MHz with 1GB RAM, with many other services, the load from Cocoon is negligible. (There is no subjective time difference between the first time a new XSL sheet is compiled and subsequent loads, which is fun of course) We have currenctly set the Tomcat process running this site to use max 128MB RAM, which is a bit to small, mostly because we also do caching of resized images in this memory space. I'm going to increase it a bit. Rune, Klapp Media (Trondheim, Norway) - 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Servlet Container of choice for cocoon?
I have a medium-sized webapp, with the compiled jar coming in at 155KB (not to mention XML/XSL. Running Apache, Tomcat4, mod_webapp, and Cocoon2rc2 on a Compaq Alpha with 128MB of RAM, we encountered an OutOfMemoryError on first loading our page (It was under development on a Athlon 1.4ghz, 512MB RAM WinXP system). After we restarted apache/tomcat, we could load the page successfully, but it's still running pretty slow. Does anybody know what might be contributing to that? I'm not talking about the quantity of hits, either; with nobody on the server, one click will still take a while. Is this a RAM problem, or have other people had problems? I've had problems ever since I went with Tomcat4/webapp on my XP system, but maybe that's my configuration? Liam Morley
Re: [c2] how to remove CatalogManager.properties warning ?
I'm sorry about that David, I did indeed miss your previous answer. Yes, I was referring to the 5 messages upon cocoon startup. I'll have a look at the new build.xml. Thanks. -Vincent - Original Message - From: David Crossley [EMAIL PROTECTED] To: [EMAIL PROTECTED]; Vincent Massol [EMAIL PROTECTED] Sent: Tuesday, November 20, 2001 5:08 AM Subject: Re: [c2] how to remove CatalogManager.properties warning ? Hi Vincent, it seems that you missed the answer to your previous posting on this same topic ... 2001-11-15 http://marc.theaimsgroup.com/?l=xml-cocoon-usersm=100581167505732w=2 Vincent Massol wrote: I am getting several CatalogManager.properties warnings on the console. However everything runs fine. I'd like to know what I could do to remove these warnings (Possibly, I'd like not to have to define a catalog as the default one suits me fine). I am running cocoon as follows : java classname=org.apache.cocoon.Main fork=true arg value=-c${target.xdoc.dir}// arg value=-d${target.doc.dir}/ arg value=-w${target.xdoc.tmp.dir}/ arg value=-l${target.xdoc.tmp.dir}/cocoon.log/ arg value=-uERROR/ arg value=-f${target.xdoc.dir}/root.uris/ arg value=-f${target.xdoc.dir}/pdfs.uris/ classpath pathelement path=${java.class.path}/ /classpath /java Thanks -Vincent - 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Servlet Container of choice for cocoon?
++I have a medium-sized webapp, with the compiled jar coming in at 155KB ++(not to mention XML/XSL. Running Apache, Tomcat4, mod_webapp, and Cocoon2rc2 ++on a Compaq Alpha with 128MB of RAM, we encountered an OutOfMemoryError on first ++loading our page (It was under development on a Athlon 1.4ghz, 512MB RAM WinXP +system). ++After we restarted apache/tomcat, we could load the page successfully, ++but it's still running pretty slow. Does anybody know what might be contributing ++to that? I'm not talking about the quantity of hits, either; with nobody ++on the server, one click will still take a while. ++Is this a RAM problem, or have other people had problems? I've had problems ++ever since I went with Tomcat4/webapp on my XP ++system, but maybe that's my +configuration? Did you changed the -Xms- -Xmx JVM paramters? On a 128MB RAM machine I recommend following settings: -Xms6000 -Xmx11000 You can set this paramters in you Tomcat (3.2.2) start skript (tomcat.bat) under :startServer ... %_STARTJAVA% %TOMCAT_OPTS% -Dtomcat.home=%TOMCAT_HOME% -Xms6000 -Xmx1 ... Then I recommend to change following parameters in the cocoon.xconf store-janitor class=org.apache.cocoon.components.store.StoreJanitorImpl logger=root.store parameter name=freememory value=8000/ parameter name=heapsize value=1/ parameter name=cleanupthreadinterval value=10/ parameter name=threadpriority value=5/ /store-janitor Maybe this helps. So long Gerhard PS: Could you please send your emails in plain text! - 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[c2] Lost in sub-folders
When I have the following files structure everything works fine: index.xml news.xml products.xml but when I move files to subfolders like: /index.xml /products/index.xml /news/index.xml those files stop working: Looks like I have problems with paths. But why? with best wishes Alexander Kachanov - 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [c2] Lost in sub-folders
Alex, What map:matches do you have in your sitemap to cope with this? Regards Jeremy Alex Kachanov [EMAIL PROTECTED] wrote: When I have the following files structure everything works fine:index.xmlnews.xmlproducts.xmlbut when I move files to subfolders like:/index.xml/products/index.xml/news/index.xmlthose files stop working:Looks like I have problems with paths.But why?with best wishesAlexander Kachanov-Please check that your question has not already been answered in theFAQ before posting. To unsubscribe, e-mail: <[EMAIL PROTECTED]>For additional commands, e-mail: <[EMAIL PROTECTED]>Do You Yahoo!? Get personalised at My Yahoo!.
RE: [c2] Lost in sub-folders
map:match pattern="" map:redirect-to uri="index.xml"/ /map:match map:match pattern="*.xml" map:generate src="{1}.xml"/ map:transform src="stylesheets/2html.xsl"/map:serialize type="html"/ /map:match this is the sitemap.xmap in the root folder of the web-site with best wishesAlexander Kachanov -Original Message-From: Jeremy Aston [mailto:[EMAIL PROTECTED]]Sent: 20 íîÿáðÿ 2001 ã. 21:40To: [EMAIL PROTECTED]Subject: Re: [c2] Lost in sub-folders Alex, What map:matches do you have in your sitemap to cope with this? Regards Jeremy Alex Kachanov [EMAIL PROTECTED] wrote: When I have the following files structure everything works fine:index.xmlnews.xmlproducts.xmlbut when I move files to subfolders like:/index.xml/products/index.xml/news/index.xmlthose files stop working:Looks like I have problems with paths.But why?with best wishesAlexander Kachanov-Please check that your question has not already been answered in theFAQ before posting. To unsubscribe, e-mail: <[EMAIL PROTECTED]>For additional commands, e-mail: <[EMAIL PROTECTED]> Do You Yahoo!?Get personalised at My Yahoo!.
Re: [c2] how to remove CatalogManager.properties warning ?
David, I understood that you put a CatalogManager.properties file in the classpath. However that was not really my question ... :) Here is my situation : - I'm using cocoon2 simply to generate HTML and PDF from XML as part of my project Ant build process and I have to say that I don't know at all how cocoon2 works, including catalogs. - I have noticed that with the ant part that I have described below, the doc is correctly generated but I have _not_ provided any CatalogManager.properties file. I assume cocoon is using either a default one or it is not needed for what I am doing. - My question was : how can I simply prevent cocoon to generate the 5 warnings about Cannot find CatalogManager.properties, ideally, without having to provide a CatalogManager.properties file as it seems to work without one. - As a last resort, I'll take the one in webapp/resources/entities. Thanks -Vincent - Original Message - From: David Crossley [EMAIL PROTECTED] To: [EMAIL PROTECTED]; Vincent Massol [EMAIL PROTECTED] Sent: Tuesday, November 20, 2001 5:08 AM Subject: Re: [c2] how to remove CatalogManager.properties warning ? Hi Vincent, it seems that you missed the answer to your previous posting on this same topic ... 2001-11-15 http://marc.theaimsgroup.com/?l=xml-cocoon-usersm=100581167505732w=2 Vincent Massol wrote: I am getting several CatalogManager.properties warnings on the console. However everything runs fine. I'd like to know what I could do to remove these warnings (Possibly, I'd like not to have to define a catalog as the default one suits me fine). I am running cocoon as follows : java classname=org.apache.cocoon.Main fork=true arg value=-c${target.xdoc.dir}// arg value=-d${target.doc.dir}/ arg value=-w${target.xdoc.tmp.dir}/ arg value=-l${target.xdoc.tmp.dir}/cocoon.log/ arg value=-uERROR/ arg value=-f${target.xdoc.dir}/root.uris/ arg value=-f${target.xdoc.dir}/pdfs.uris/ classpath pathelement path=${java.class.path}/ /classpath /java Thanks -Vincent - 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [c2] Lost in sub-folders
already spent the whole day looking at those examples still stuck with best wishes Alexander Kachanov -Original Message- From: Liam Morley [mailto:[EMAIL PROTECTED]] Sent: 20 ?? 2001 ?. 21:52 To: [EMAIL PROTECTED] Subject: RE: [c2] Lost in sub-folders I think what you want is something like map:generate src={1}/index.html/. It would benefit you greatly to look at how the examples are set up, as well as look into the sitemap documentation on the website. Liam Morley -Original Message- From: Alex Kachanov [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 20, 2001 7:40 AM To: [EMAIL PROTECTED] Subject: RE: [c2] Lost in sub-folders map:match pattern= map:redirect-to uri=index.xml/ /map:match map:match pattern=*.xml map:generate src={1}.xml/ map:transform src=stylesheets/2html.xsl/ map:serialize type=html/ /map:match this is the sitemap.xmap in the root folder of the web-site with best wishes Alexander Kachanov - 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
FO: different count of columns
Hi to all! I 'm working with FO at the moment and can't solve the following problem so far: I generate tables that have different count of columns. The count is being calculated in my XSP. PROBLEM: How can I forward this count of columns to my XSL that makes a FO document? If I have for example 8 columns, how else can I write the following instructions? fo:table fo:table-column column-width=2cm/ fo:table-column column-width=2cm/ fo:table-column column-width=2cm/ fo:table-column column-width=2cm/ fo:table-column column-width=2cm/ fo:table-column column-width=2cm/ fo:table-column column-width=2cm/ fo:table-column column-width=2cm/ fo:table-body fo:table-rowetc. Thanks for advance for your help Regards, Viktor - 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
problems with a logicsheet
Hi! I am new to cocoon and xsp and logicsheets. I want to use a mail logicsheet in order to display mails on a browser. I don't know exactly how to use this logicsheet and how to handle the parameters. I will attach the logicsheet and my xsp-file to show what I mean exactly.Maybe I my xsp-file is completely wrong ?! I would be very happy for an answer to my question!!! mail logicsheet: xsl:template match=mail:execute-query xsl:variable name=protocol xsl:call-template name=get-nested-string xsl:with-param name=content select=mail:protocol/ /xsl:call-template /xsl:variable xsl:variable name=host xsl:call-template name=get-nested-string xsl:with-param name=content select=mail:host/ /xsl:call-template /xsl:variable xsl:variable name=port!-- POP3 is conventionally on port 110 -- xsl:call-template name=get-nested-string xsl:with-param name=content select=mail:port/ /xsl:call-template /xsl:variable xsl:variable name=username xsl:call-template name=get-nested-string xsl:with-param name=content select=mail:username/ /xsl:call-template /xsl:variable xsl:variable name=password xsl:call-template name=get-nested-string xsl:with-param name=content select=mail:password/ /xsl:call-template /xsl:variable xsl:variable name=mbox xsl:call-template name=get-nested-string xsl:with-param name=content select=mail:mbox/ /xsl:call-template /xsl:variable xsp:logic { Properties _mail_properties = new Properties(); Session _mail_session = Session.getDefaultInstance(_mail_properties,null); xsl:choose xsl:when test=$protocol Store _mail_store = _mail_session.getStore(String.valueOf(xsl:copy-of select=$protocol/)); /xsl:when xsl:otherwise Store _mail_store = _mail_session.getStore(); /xsl:otherwise /xsl:choose Integer _mail_port = null; try { _mail_port = new Integer(String.valueOf(xsl:copy-of select=$port/)); } catch (Exception e) {} _mail_store.connect( String.valueOf(xsl:copy-of select=$host/), _mail_port == null ? -1 : _mail_port.intValue(), String.valueOf(xsl:copy-of select=$username/), String.valueOf(xsl:copy-of select=$password/)); Folder _mail_folder = _mail_store.getDefaultFolder(); _mail_folder = _mail_folder.getFolder(String.valueOf(xsl:copy-of select=$mbox/)); _mail_folder.open(Folder.READ_WRITE); xsl:apply-templates select=mail:results/*/ _mail_folder.close(false); _mail_store.close(); } /xsp:logic /xsl:template and this is my xsp-file: logic String POP3=POP3; String localhost=localhost; String portm=110; String test=test; String inbox=inbox; /logic content mail:execute-query mail:protocol xsp:exprPOP3/xsp:expr /mail:protocol mail:host xsp:exprlocalhost/xsp:expr /mail:host mail:port xsp:exprportm/xsp:expr /mail:port mail:username xsp:exprtest/xsp:expr /mail:username mail:password xsp:exprtest/xsp:expr /mail:password mail:mbox xsp:exprinbox/xsp:expr /mail:mbox /mail:execute-query /content - 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [c2] Lost in sub-folders
Hi Alex Try map:match pattern="index.html" map:generate type="file" src="index.xml"/ map:transform type="xslt" src="stylesheets/2html.xsl"/ map:serialize/ /map:match map:match pattern="**/index.html" map:generate type="file" src="{1}/index.xml"/ map:transform type="xslt" src="stylesheets/2html.xsl"/ map:serialize/ /map:match This is a quick thing so I haven't tried optomising it to one match construct but I think you can do it... Regards Jeremy Alex Kachanov [EMAIL PROTECTED] wrote: map:match pattern="" map:redirect-to uri="index.xml"/ /map:match map:match pattern="*.xml" map:generate src="{1}.xml"/ map:transform src="stylesheets/2html.xsl"/map:serialize type="html"/ /map:match this is the sitemap.xmap in the root folder of the web-site with best wishesAlexander Kachanov -Original Message-From: Jeremy Aston [mailto:[EMAIL PROTECTED]]Sent: 20 íîÿáðÿ 2001 ã. 21:40To: [EMAIL PROTECTED]Subject: Re: [c2] Lost in sub-folders Alex, What map:matches do you have in your sitemap to cope with this? Regards Jeremy Alex Kachanov [EMAIL PROTECTED] wrote: When I have the following files structure everything works fine:index.xmlnews.xmlproducts.xmlbut when I move files to subfolders like:/index.xml/products/index.xml/news/index.xmlthose files stop working:Looks like I have problems with paths.But why?with best wishesAlexander Kachanov-Please check that your question has not already been answered in theFAQ before posting. To unsubscribe, e-mail: <[EMAIL PROTECTED]>For additional commands, e-mail: <[EMAIL PROTECTED]> Do You Yahoo!?Get personalised at My Yahoo!.Do You Yahoo!? Get personalised at My Yahoo!.
Transaction
Does C2 Support transactions ? - 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Transaction
Gustavo Fernandes wrote: Does C2 Support transactions ? by default--yes! - 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] . -- Those who would trade liberty for temporary security deserve neither - Benjamin Franklin - 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [c2:ESQL] how to get tag from DB?
hello cocooners, what i have: in DB have soething like this: here goes link a href=blablalink 2 blabla/a what i wont: to get this anhor as tag not as here goes link lt;a href=blablagt;link 2 blablalt;/agt; this what i get when using esql:get-string ... when using esql:get-xml ... i get nothing. please gimi some hint, hubert. Well, get-xml needs it to be XML - but it is not. While get-string of course will quote the string. You should think of a different approach. You are trying to include a HTML fragment. An XML parser does not like HTML. -- Torsten - 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [c2] Lost in sub-folders
Well I'm assuming that this will work, since it explicitly covers all the bases. Start with this and then scale back, removing what you don't need. map:match pattern= map:redirect-to uri=index.xml/ /map:match map:match pattern=*.xml map:generate src={1}.xml/ map:transform src=stylesheets/2html.xsl/ map:serialize type=html/ /map:match map:match pattern=*/ map:redirect-to uri={1}/index.xml/ /map:match map:match pattern=*/*.xml map:generate src={1}/{2}.xml/ map:transform src=stylesheets/2html.xsl/ map:serialize type=html/ /map:match DR At 09:40 PM 11/20/01 +0900, you wrote: map:match pattern= map:redirect-to uri=index.xml/ /map:match map:match pattern=*.xml map:generate src={1}.xml/ map:transform src=stylesheets/2html.xsl/ map:serialize type=html/ /map:match this is the sitemap.xmap in the root folder of the web-site with best wishes Alexander Kachanov -Original Message- From: Jeremy Aston [mailto:[EMAIL PROTECTED]] Sent: 20 íîÿáðÿ 2001 ã. 21:40 To: [EMAIL PROTECTED] Subject: Re: [c2] Lost in sub-folders Alex, What map:matches do you have in your sitemap to cope with this? Regards Jeremy Alex Kachanov [EMAIL PROTECTED] wrote: When I have the following files structure everything works fine: index.xml news.xml products.xml but when I move files to subfolders like: /index.xml /products/index.xml /news/index.xml those files stop working: Looks like I have problems with paths. But why? with best wishes Alexander Kachanov - Please check that your question has not already been answered in the FAQ before posting. To unsubscribe, e-mail: For additional commands, e-mail: Do You Yahoo!? Get personalised at http://uk.rd.yahoo.com/mail_uk/my?http://uk.my.yahoo.comMy Yahoo!. - 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: problems with a logicsheet
Generally the way I do logicsheets and XSP is as follows: * start with a regular XML document * run a logicsheet against it, to add logic for certain tags in the XML. Result is an XSP page. This is done at compile time, outside of Cocoon (i.e., using Ant and Xalan). * The XSP page is executed in Cocoon at run-time, and then I run another style sheet against the result to format the output (for HTML, in my case) You don't have to do it this way, but it works for me. If you do this, it should work: * get rid of everything in your XSP page except for what's within the mail:execute-query element * Also get rid of the xsp:expr stuff (for now) and just use the hard-coded values directly in the mail:host and other similar elements. * change the extension to xml. it's not an xsp page. The intention is that this document should contain nothing but just plain XML - no logic. * add some stuff to your logichsheet - the resulting xsp page that will be generated needs to start with xsp:page, needs a root element * run xalan to apply your logicsheet to this xml doc. The result will be an xsp page * now you can run that xsp page via a generator in cocoon, then transform it, and finally serialize it HTH. DR At 03:54 PM 11/20/01 +0100, you wrote: Hi! I am new to cocoon and xsp and logicsheets. I want to use a mail logicsheet in order to display mails on a browser. I don't know exactly how to use this logicsheet and how to handle the parameters. I will attach the logicsheet and my xsp-file to show what I mean exactly.Maybe I my xsp-file is completely wrong ?! I would be very happy for an answer to my question!!! mail logicsheet: xsl:template match=mail:execute-query xsl:variable name=protocol xsl:call-template name=get-nested-string xsl:with-param name=content select=mail:protocol/ /xsl:call-template /xsl:variable xsl:variable name=host xsl:call-template name=get-nested-string xsl:with-param name=content select=mail:host/ /xsl:call-template /xsl:variable xsl:variable name=port!-- POP3 is conventionally on port 110 -- xsl:call-template name=get-nested-string xsl:with-param name=content select=mail:port/ /xsl:call-template /xsl:variable xsl:variable name=username xsl:call-template name=get-nested-string xsl:with-param name=content select=mail:username/ /xsl:call-template /xsl:variable xsl:variable name=password xsl:call-template name=get-nested-string xsl:with-param name=content select=mail:password/ /xsl:call-template /xsl:variable xsl:variable name=mbox xsl:call-template name=get-nested-string xsl:with-param name=content select=mail:mbox/ /xsl:call-template /xsl:variable xsp:logic { Properties _mail_properties = new Properties(); Session _mail_session = Session.getDefaultInstance(_mail_properties,null); xsl:choose xsl:when test=$protocol Store _mail_store = _mail_session.getStore(String.valueOf(xsl:copy-of select=$protocol/)); /xsl:when xsl:otherwise Store _mail_store = _mail_session.getStore(); /xsl:otherwise /xsl:choose Integer _mail_port = null; try { _mail_port = new Integer(String.valueOf(xsl:copy-of select=$port/)); } catch (Exception e) {} _mail_store.connect( String.valueOf(xsl:copy-of select=$host/), _mail_port == null ? -1 : _mail_port.intValue(), String.valueOf(xsl:copy-of select=$username/), String.valueOf(xsl:copy-of select=$password/)); Folder _mail_folder = _mail_store.getDefaultFolder(); _mail_folder = _mail_folder.getFolder(String.valueOf(xsl:copy-of select=$mbox/)); _mail_folder.open(Folder.READ_WRITE); xsl:apply-templates select=mail:results/*/ _mail_folder.close(false); _mail_store.close(); } /xsp:logic /xsl:template and this is my xsp-file: logic String POP3=POP3; String localhost=localhost; String portm=110; String test=test; String inbox=inbox; /logic content mail:execute-query mail:protocol xsp:exprPOP3/xsp:expr /mail:protocol mail:host xsp:exprlocalhost/xsp:expr /mail:host mail:port xsp:exprportm/xsp:expr /mail:port mail:username xsp:exprtest/xsp:expr /mail:username mail:password xsp:exprtest/xsp:expr /mail:password mail:mbox xsp:exprinbox/xsp:expr
Cocoon2 and Javascript
Hi ! I´m developing with Cocoon2 and Tomcat 4.0.1 and I get badtext in the browser when I write in, for example, a confirm of Javascript characters like ?, ¿ , etc... Do you know something about that Can anybody tell me how to solve this problem Jose de miguel Jiménez email: [EMAIL PROTECTED] Madrid (España)
RE: Cocoon2 and Javascript
are you placing the javascript in a cdata section? SCRIPTxsl:comment![CDATA[function hahaha() { }]]/xsl:comment/SCRIPT mvh karl øie -Original Message-From: Jose de Miguel [mailto:[EMAIL PROTECTED]]Sent: 20. november 2001 17:00To: [EMAIL PROTECTED]Subject: Cocoon2 and Javascript Hi ! I´m developing with Cocoon2 and Tomcat 4.0.1 and I get badtext in the browser when I write in, for example, a confirm of Javascript characters like ?, ¿ , etc... Do you know something about that Can anybody tell me how to solve this problem Jose de miguel Jiménez email: [EMAIL PROTECTED] Madrid (España)
RE: Cocoon2 and Javascript
Thanks karl. My codeline is : a href="javascript:if(confirm('¿Desea salir de la aplicación?')) window.open('index','_top')" img alt='Salir' border='0' src='javascript:void(0);'//a andthe javascript confirm doesn´t work. I´m in a XSL page. I will try with your solution. Jose. Madrid. España. - Original Message - From: Karl Øie To: [EMAIL PROTECTED] Sent: Tuesday, November 20, 2001 5:08 PM Subject: RE: Cocoon2 and Javascript are you placing the javascript in a cdata section? SCRIPTxsl:comment![CDATA[function hahaha() { }]]/xsl:comment/SCRIPT mvh karl øie -Original Message-From: Jose de Miguel [mailto:[EMAIL PROTECTED]]Sent: 20. november 2001 17:00To: [EMAIL PROTECTED]Subject: Cocoon2 and Javascript Hi ! I´m developing with Cocoon2 and Tomcat 4.0.1 and I get badtext in the browser when I write in, for example, a confirm of Javascript characters like ?, ¿ , etc... Do you know something about that Can anybody tell me how to solve this problem Jose de miguel Jiménez email: [EMAIL PROTECTED] Madrid (España)
Re: Cocoon2 and Javascript
You are better off having the Javascript be served from something other than cocoon. Like other non-xml content, it is troublesome to have it pass through the XML pipeline. You can, however, put it inside a CDATA section of the main document. On Tue, 2001-11-20 at 15:59, Jose de Miguel wrote: Hi ! I´m developing with Cocoon2 and Tomcat 4.0.1 and I get bad text in the browser when I write in, for example, a confirm of Javascript characters like ?, ¿ , etc... Do you know something about that Can anybody tell me how to solve this problem Jose de miguel Jiménez email: [EMAIL PROTECTED] Madrid (España) -- Sergio Carvalho --- [EMAIL PROTECTED] If at first you don't succeed, skydiving is not for you - 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
XInclude
Hi, has anyone a working example for the xinclude transformer. My example doesnt'work: I want to include another xml file from my fs. mediablock titleAbbildung: Beispieltitel/title media xmlns:xi=http://www.w3.org/2001/XInclude; xi:include href=/vern/public/music.third/ parameter name=bla value=blah/ /media description block Erläuterner Text: /block block bla bla bla bla bla bla bla bla bla /block /description /mediablock output: mediablock titleAbbildung: Beispieltitel/title media xmlns:xi=http://www.w3.org/2001/XInclude; -Here the output stopps--- I couldn't find an error in the log files. I have also a question, must I use file://? Thanx, Stephan Michels. - 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Accepting Data From The Web and storing it.
Bobby, you can't modify XML, XSL or XSP files from Cocoon. What you can do, however, is using Cocoon to execute some SQL statements (or stored procedures) in order to modify the data from which XMLs are derived. Best regards, - Luca Morandini GIS Consultant [EMAIL PROTECTED] http://utenti.tripod.it/lmorandini/index.html - -Original Message- From: Bobby Koya [mailto:[EMAIL PROTECTED]]On Behalf Of [EMAIL PROTECTED] Sent: Tuesday, November 20, 2001 6:32 PM To: [EMAIL PROTECTED] Subject: Accepting Data From The Web and storing it. Hi after finally gripping the fundamentals and basics of the publishing framework of cocoon 2, I would now like to take this a step further and implement a system but I have a question. Using XML, XSP, XSL, XSL:FO, SVG I can publish pages but how would I go about using cocoon2 to save data back to the same XML, XSP files the pages were the data was first taken from. So for example an XSP file creates an XML file that is piped to an XSL file and then transformed to make a picture of a clock. On this page would also be a form to edit the clocks colour by supplying an SVG colour. The problem I am having is how to write the colour back to the original XSP file so that the colour changes permanently. Thanks for your time Sharat Koya - 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: XInclude
hi, have included the map:transform type=xinclude/ in the pipeline of your sitemap? something like that: map:match pattern=simple-xinc.xml map:generate src=simple-xinc.xml/ map:label name=content/ map:transform type=xinclude/ !-- aktivate the xinlude transfomer!! - map:transform type=i18n/ map:transform src=simple.xsl/ map:serialize/ /map:match Stephan Michels wrote: Hi, has anyone a working example for the xinclude transformer. My example doesnt'work: I want to include another xml file from my fs. mediablock titleAbbildung: Beispieltitel/title media xmlns:xi=http://www.w3.org/2001/XInclude; xi:include href=/vern/public/music.third/ parameter name=bla value=blah/ /media description block Erläuterner Text: /block block bla bla bla bla bla bla bla bla bla /block /description /mediablock output: mediablock titleAbbildung: Beispieltitel/title media xmlns:xi=http://www.w3.org/2001/XInclude; -Here the output stopps--- I couldn't find an error in the log files. I have also a question, must I use file://? Thanx, Stephan Michels. - 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: SV: What is Cocoon good for???
Torsten Curdt says: Regarding this problem in general... I was unable to get Cocoon to make an SQL request using JConnect (Sybase JDBC). There's an issue in the way the connection setup is attempted. However I use this JDBC driver in servlets all the time, so I just made a servlet output an XML document (be sure to set the content type) and included the URL for that servlet, with parameters, in my XML file. It's working perfectly. We use Sybase with JConnect in combination with C1 + C2 - no problems here -- Torsten Well I tried esql with JConnect in the xml again and it worked fine. I don't what I was seeing before! -- Jeff Sexton ODS Health Plans [EMAIL PROTECTED] - 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Accepting Data From The Web and storing it.
I imagine you'd have to write some custom code - most likely an Action object I would guess - that gets executed when they submit the form. The Action would have to manually re-write that file with the new color info. One thing that might be helpful is to have a separate XML file with just the color info in it, and just overwrite that. e.g.: colors color value=6699cc/ /colors Then your style sheet can reference the contents of this file using the XSL document() function. e.g.: xsl:variable name=color select=document('color.xml')/colors/color/ I use this in my site, although for a different reason. I wanted to have all the colors listed in a separate XML file so that I could easily change any or all of them. HTH. DR At 05:31 PM 11/20/01 +, you wrote: Hi after finally gripping the fundamentals and basics of the publishing framework of cocoon 2, I would now like to take this a step further and implement a system but I have a question. Using XML, XSP, XSL, XSL:FO, SVG I can publish pages but how would I go about using cocoon2 to save data back to the same XML, XSP files the pages were the data was first taken from. So for example an XSP file creates an XML file that is piped to an XSL file and then transformed to make a picture of a clock. On this page would also be a form to edit the clocks colour by supplying an SVG colour. The problem I am having is how to write the colour back to the original XSP file so that the colour changes permanently. Thanks for your time Sharat Koya - 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Accepting Data From The Web and storing it.
Is it not possible to write XSP (java) to write back to the file? -Original Message- From: Luca Morandini [mailto:[EMAIL PROTECTED]] Sent: Tuesday 20 November 2001 20:08 To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: Accepting Data From The Web and storing it. Bobby, you can't modify XML, XSL or XSP files from Cocoon. What you can do, however, is using Cocoon to execute some SQL statements (or stored procedures) in order to modify the data from which XMLs are derived. Best regards, - Luca Morandini GIS Consultant [EMAIL PROTECTED] http://utenti.tripod.it/lmorandini/index.html - -Original Message- From: Bobby Koya [mailto:[EMAIL PROTECTED]]On Behalf Of [EMAIL PROTECTED] Sent: Tuesday, November 20, 2001 6:32 PM To: [EMAIL PROTECTED] Subject: Accepting Data From The Web and storing it. Hi after finally gripping the fundamentals and basics of the publishing framework of cocoon 2, I would now like to take this a step further and implement a system but I have a question. Using XML, XSP, XSL, XSL:FO, SVG I can publish pages but how would I go about using cocoon2 to save data back to the same XML, XSP files the pages were the data was first taken from. So for example an XSP file creates an XML file that is piped to an XSL file and then transformed to make a picture of a clock. On this page would also be a form to edit the clocks colour by supplying an SVG colour. The problem I am having is how to write the colour back to the original XSP file so that the colour changes permanently. Thanks for your time Sharat Koya - 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Accepting Data From The Web and storing it.
On Tuesday 20 November 2001 05:12 pm, you wrote: Is it not possible to write XSP (java) to write back to the file? Yes, it is possible to modify the XSP documents that are on disk. I think having an XSP document being self-modifying might be a bit odd, so I would segregate out the modifying bit into a separate component, but it should work. I would not recommend modifying the documents in place, rather modifying a copy and then replacing the original XSP when done. You don't want any funky concurrency issues to arise. Also I don't know how your application works, but if you ever release a new version/update it you might not want to overwrite XSP documents that users modified. -pete -- peter royal - [EMAIL PROTECTED] - 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Accepting Data From The Web and storing it.
Apologies my point was that I want users to be able to enter a code themselves which would then become permanent. -Original Message- From: David Rosenstrauch [mailto:[EMAIL PROTECTED]] Sent: Tuesday 20 November 2001 19:43 To: [EMAIL PROTECTED] Subject: Re: Accepting Data From The Web and storing it. I imagine you'd have to write some custom code - most likely an Action object I would guess - that gets executed when they submit the form. The Action would have to manually re-write that file with the new color info. One thing that might be helpful is to have a separate XML file with just the color info in it, and just overwrite that. e.g.: colors color value=6699cc/ /colors Then your style sheet can reference the contents of this file using the XSL document() function. e.g.: xsl:variable name=color select=document('color.xml')/colors/color/ I use this in my site, although for a different reason. I wanted to have all the colors listed in a separate XML file so that I could easily change any or all of them. HTH. DR At 05:31 PM 11/20/01 +, you wrote: Hi after finally gripping the fundamentals and basics of the publishing framework of cocoon 2, I would now like to take this a step further and implement a system but I have a question. Using XML, XSP, XSL, XSL:FO, SVG I can publish pages but how would I go about using cocoon2 to save data back to the same XML, XSP files the pages were the data was first taken from. So for example an XSP file creates an XML file that is piped to an XSL file and then transformed to make a picture of a clock. On this page would also be a form to edit the clocks colour by supplying an SVG colour. The problem I am having is how to write the colour back to the original XSP file so that the colour changes permanently. Thanks for your time Sharat Koya - 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Accepting Data From The Web and storing it.
Not totally sure what you mean, but I guess you mean that each user has its own color code. Then I guess the procedure I mentioned would still work, but you'd need one color file per user (i.e., colors_user1234.xml). If I'm way off-base here, just let me know. Like the other person said, this is something best handled in a database. You'd have 1 config record per user in a table. With XML, you have to re-write an entire file, not just change a record. The best way I can think of to do that without having a big performance hit is to have 1 user_config.xml per user and just completely re-write it when needed. DR At 10:25 PM 11/20/01 +, you wrote: Apologies my point was that I want users to be able to enter a code themselves which would then become permanent. -Original Message- From: David Rosenstrauch [mailto:[EMAIL PROTECTED]] Sent: Tuesday 20 November 2001 19:43 To: [EMAIL PROTECTED] Subject: Re: Accepting Data From The Web and storing it. I imagine you'd have to write some custom code - most likely an Action object I would guess - that gets executed when they submit the form. The Action would have to manually re-write that file with the new color info. One thing that might be helpful is to have a separate XML file with just the color info in it, and just overwrite that. e.g.: colors color value=6699cc/ /colors Then your style sheet can reference the contents of this file using the XSL document() function. e.g.: xsl:variable name=color select=document('color.xml')/colors/color/ I use this in my site, although for a different reason. I wanted to have all the colors listed in a separate XML file so that I could easily change any or all of them. HTH. DR At 05:31 PM 11/20/01 +, you wrote: Hi after finally gripping the fundamentals and basics of the publishing framework of cocoon 2, I would now like to take this a step further and implement a system but I have a question. Using XML, XSP, XSL, XSL:FO, SVG I can publish pages but how would I go about using cocoon2 to save data back to the same XML, XSP files the pages were the data was first taken from. So for example an XSP file creates an XML file that is piped to an XSL file and then transformed to make a picture of a clock. On this page would also be a form to edit the clocks colour by supplying an SVG colour. The problem I am having is how to write the colour back to the original XSP file so that the colour changes permanently. Thanks for your time Sharat Koya - 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Accepting Data From The Web and storing it.
Sharat, you can store your data in a DBMS and read them as XML. Most DBMSs (Oracle, SQLServer, ...) can output data in XML, or you can use ESQL or SQL Transformer (both from Cocoon) to get XML data from any DBMS. Moreover, if you want to store data on disk and retrieve/modify them, XML is not a good candidate for this task. To clarify further: the writing of XML/XSL/XSP is something you can achieve in Cocoon only by writing custom Java code (Actions for instance, as it has been suggested). By itself Cocoon doesn't do this (and, for the reasons outlined above, rightfully so). Best regards, - Luca Morandini GIS Consultant [EMAIL PROTECTED] http://utenti.tripod.it/lmorandini/index.html - -Original Message- From: Sharat Koya [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 20, 2001 11:24 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: Accepting Data From The Web and storing it. I understand Cocoon is a publishing framework for XML but if it has to use a database for storing data, doesn't that sort of kill one of the best features of XML - that it is a method of storing data in an easily readable way? -Original Message- From: Luca Morandini [mailto:[EMAIL PROTECTED]] Sent: Tuesday 20 November 2001 20:08 To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: Accepting Data From The Web and storing it. Bobby, you can't modify XML, XSL or XSP files from Cocoon. What you can do, however, is using Cocoon to execute some SQL statements (or stored procedures) in order to modify the data from which XMLs are derived. Best regards, - Luca Morandini GIS Consultant [EMAIL PROTECTED] http://utenti.tripod.it/lmorandini/index.html - -Original Message- From: Bobby Koya [mailto:[EMAIL PROTECTED]]On Behalf Of [EMAIL PROTECTED] Sent: Tuesday, November 20, 2001 6:32 PM To: [EMAIL PROTECTED] Subject: Accepting Data From The Web and storing it. Hi after finally gripping the fundamentals and basics of the publishing framework of cocoon 2, I would now like to take this a step further and implement a system but I have a question. Using XML, XSP, XSL, XSL:FO, SVG I can publish pages but how would I go about using cocoon2 to save data back to the same XML, XSP files the pages were the data was first taken from. So for example an XSP file creates an XML file that is piped to an XSL file and then transformed to make a picture of a clock. On this page would also be a form to edit the clocks colour by supplying an SVG colour. The problem I am having is how to write the colour back to the original XSP file so that the colour changes permanently. Thanks for your time Sharat Koya - 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Accepting Data From The Web and storing it.
You could also try using an XML database such as ones from B-Bop, Software AG or Excelon. These will allow to store and retrieve your XML data without having to write code to convert to and from relational tables. -sanjay Luca Morandini wrote: Sharat, you can store your data in a DBMS and read them as XML. Most DBMSs (Oracle, SQLServer, ...) can output data in XML, or you can use ESQL or SQL Transformer (both from Cocoon) to get XML data from any DBMS. Moreover, if you want to store data on disk and retrieve/modify them, XML is not a good candidate for this task. To clarify further: the writing of XML/XSL/XSP is something you can achieve in Cocoon only by writing custom Java code (Actions for instance, as it has been suggested). By itself Cocoon doesn't do this (and, for the reasons outlined above, rightfully so). Best regards, - Luca Morandini GIS Consultant [EMAIL PROTECTED] http://utenti.tripod.it/lmorandini/index.html - -Original Message- From: Sharat Koya [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 20, 2001 11:24 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: Accepting Data From The Web and storing it. I understand Cocoon is a publishing framework for XML but if it has to use a database for storing data, doesn't that sort of kill one of the best features of XML - that it is a method of storing data in an easily readable way? -Original Message- From: Luca Morandini [mailto:[EMAIL PROTECTED]] Sent: Tuesday 20 November 2001 20:08 To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: Accepting Data From The Web and storing it. Bobby, you can't modify XML, XSL or XSP files from Cocoon. What you can do, however, is using Cocoon to execute some SQL statements (or stored procedures) in order to modify the data from which XMLs are derived. Best regards, - Luca Morandini GIS Consultant [EMAIL PROTECTED] http://utenti.tripod.it/lmorandini/index.html - -Original Message- From: Bobby Koya [mailto:[EMAIL PROTECTED]]On Behalf Of [EMAIL PROTECTED] Sent: Tuesday, November 20, 2001 6:32 PM To: [EMAIL PROTECTED] Subject: Accepting Data From The Web and storing it. Hi after finally gripping the fundamentals and basics of the publishing framework of cocoon 2, I would now like to take this a step further and implement a system but I have a question. Using XML, XSP, XSL, XSL:FO, SVG I can publish pages but how would I go about using cocoon2 to save data back to the same XML, XSP files the pages were the data was first taken from. So for example an XSP file creates an XML file that is piped to an XSL file and then transformed to make a picture of a clock. On this page would also be a form to edit the clocks colour by supplying an SVG colour. The problem I am having is how to write the colour back to the original XSP file so that the colour changes permanently. Thanks for your time Sharat Koya - 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Sanjay Manchanda B-Bop Associates, Inc. Ph : 650-340-2702 Fax: 650-340-2701 Email: [EMAIL PROTECTED] http://www.b-bop.com - 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: XInclude
On Tue, 20 Nov 2001, Bernhard Huber wrote: hi, have included the map:transform type=xinclude/ in the pipeline of your sitemap? something like that: map:match pattern=simple-xinc.xml map:generate src=simple-xinc.xml/ map:label name=content/ map:transform type=xinclude/ !-- aktivate the xinlude transfomer!! - map:transform type=i18n/ map:transform src=simple.xsl/ map:serialize/ /map:match Yes, of course. That's not the fault, but thank you for the answer. map:when test=vscml2xml map:transform type=diagram-extractor/ map:transform src=stylesheets/vs/diagram-extractor.xsl/ map:transform type=mathml-extractor/ map:transform src=stylesheets/vs/mathml-extractor.xsl/ map:transform src=/vern/public/FIZ-Ablaufumgebung/ch/1/pc/xmltest/vscml/th-importer.xsl/ map:transform type=xinclude/ !--map:transform src=/vern/public/FIZ-Ablaufumgebung/ch/1/pc/xmltest/vscml/vscth2html.xsl/-- !--map:transform type=extractor/ map:transform src=stylesheets/vs/svg-extractor.xsl/-- map:serialize type=xml/ /map:when Stephan Michels wrote: Hi, has anyone a working example for the xinclude transformer. My example doesnt'work: I want to include another xml file from my fs. mediablock titleAbbildung: Beispieltitel/title media xmlns:xi=http://www.w3.org/2001/XInclude; xi:include href=/vern/public/music.third/ parameter name=bla value=blah/ /media description block Erläuterner Text: /block block bla bla bla bla bla bla bla bla bla /block /description /mediablock output: mediablock titleAbbildung: Beispieltitel/title media xmlns:xi=http://www.w3.org/2001/XInclude; -Here the output stopps--- I couldn't find an error in the log files. I have also a question, must I use file://? Thanx, Stephan Michels. - 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: XInclude
Try using map:transform type=log/ after xinclude, this will show you the xml-content after xinclude transformation, and before xinclude Perhaps the xslt processing eats up the include element? Use copyover.xsl to copy elements see in the documents stylesheet directory for copyover. bye Stephan Michels wrote: On Tue, 20 Nov 2001, Bernhard Huber wrote: hi, have included the map:transform type=xinclude/ in the pipeline of your sitemap? something like that: map:match pattern=simple-xinc.xml map:generate src=simple-xinc.xml/ map:label name=content/ map:transform type=xinclude/ !-- aktivate the xinlude transfomer!! - map:transform type=i18n/ map:transform src=simple.xsl/ map:serialize/ /map:match Yes, of course. That's not the fault, but thank you for the answer. map:when test=vscml2xml map:transform type=diagram-extractor/ map:transform src=stylesheets/vs/diagram-extractor.xsl/ map:transform type=mathml-extractor/ map:transform src=stylesheets/vs/mathml-extractor.xsl/ map:transform src=/vern/public/FIZ-Ablaufumgebung/ch/1/pc/xmltest/vscml/th-importer.xsl/ map:transform type=xinclude/ !--map:transform src=/vern/public/FIZ-Ablaufumgebung/ch/1/pc/xmltest/vscml/vscth2html.xsl/-- !--map:transform type=extractor/ map:transform src=stylesheets/vs/svg-extractor.xsl/-- map:serialize type=xml/ /map:when Stephan Michels wrote: Hi, has anyone a working example for the xinclude transformer. My example doesnt'work: I want to include another xml file from my fs. mediablock titleAbbildung: Beispieltitel/title media xmlns:xi=http://www.w3.org/2001/XInclude; xi:include href=/vern/public/music.third/ parameter name=bla value=blah/ /media description block Erläuterner Text: /block block bla bla bla bla bla bla bla bla bla /block /description /mediablock output: mediablock titleAbbildung: Beispieltitel/title media xmlns:xi=http://www.w3.org/2001/XInclude; -Here the output stopps--- I couldn't find an error in the log files. I have also a question, must I use file://? Thanx, Stephan Michels. - 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: XInclude
Also, don't forget the parse=xml attribute on your xinclude element. I didn't see it in the original example you sent. Regards, --mike On Wed, 21 Nov 2001, Bernhard Huber wrote: Try using map:transform type=log/ after xinclude, this will show you the xml-content after xinclude transformation, and before xinclude Perhaps the xslt processing eats up the include element? Use copyover.xsl to copy elements see in the documents stylesheet directory for copyover. bye Stephan Michels wrote: On Tue, 20 Nov 2001, Bernhard Huber wrote: hi, have included the map:transform type=xinclude/ in the pipeline of your sitemap? something like that: map:match pattern=simple-xinc.xml map:generate src=simple-xinc.xml/ map:label name=content/ map:transform type=xinclude/ !-- aktivate the xinlude transfomer!! - map:transform type=i18n/ map:transform src=simple.xsl/ map:serialize/ /map:match Yes, of course. That's not the fault, but thank you for the answer. map:when test=vscml2xml map:transform type=diagram-extractor/ map:transform src=stylesheets/vs/diagram-extractor.xsl/ map:transform type=mathml-extractor/ map:transform src=stylesheets/vs/mathml-extractor.xsl/ map:transform src=/vern/public/FIZ-Ablaufumgebung/ch/1/pc/xmltest/vscml/th-importer.xsl/ map:transform type=xinclude/ !--map:transform src=/vern/public/FIZ-Ablaufumgebung/ch/1/pc/xmltest/vscml/vscth2html.xsl/-- !--map:transform type=extractor/ map:transform src=stylesheets/vs/svg-extractor.xsl/-- map:serialize type=xml/ /map:when Stephan Michels wrote: Hi, has anyone a working example for the xinclude transformer. My example doesnt'work: I want to include another xml file from my fs. mediablock titleAbbildung: Beispieltitel/title media xmlns:xi=http://www.w3.org/2001/XInclude; xi:include href=/vern/public/music.third/ parameter name=bla value=blah/ /media description block Erläuterner Text: /block block bla bla bla bla bla bla bla bla bla /block /description /mediablock output: mediablock titleAbbildung: Beispieltitel/title media xmlns:xi=http://www.w3.org/2001/XInclude; -Here the output stopps--- I couldn't find an error in the log files. I have also a question, must I use file://? Thanx, Stephan Michels. - 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: XInclude
On Tue, 20 Nov 2001, Michael McKibben wrote: Also, don't forget the parse=xml attribute on your xinclude element. I didn't see it in the original example you sent. I thought this were the default. From XInclude.java(87): if (null == parse) parse=xml; - 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: XInclude
Ahh yes you are correct. I've been using a modified XInclude transformer that uses a custom URI class to better handle uri's supplied via the href attribute. This modified version correctly handles relative/absolute URI's (including the Cocoon custom protocols.) I haven't submitted it back to the Cocoon community yet because I haven't fully documented/tested it, but it does work. You are welcome to test it out. I've attached the necessary source files you'll need to this message. Let me know what you think. Regards, --mike On Wed, 21 Nov 2001, Stephan Michels wrote: On Tue, 20 Nov 2001, Michael McKibben wrote: Also, don't forget the parse=xml attribute on your xinclude element. I didn't see it in the original example you sent. I thought this were the default. From XInclude.java(87): if (null == parse) parse=xml; - 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] XIncludeTransformer.java Description: Binary data MalformedURIException.java Description: Binary data URI.java Description: Binary data - 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[C2] cannot display non-english characters
I'm using cocoon-2.0rc2 tomcat 3.2.3 During the generation process, the java code generated from my XSP with japanese characters content shows up as ?. this is the beginning of my XSP page. ?xml version="1.0" encoding="shift_jis"? ?cocoon-process type="xsp"? xsp:page language="java" encoding="shift_jis" xmlns:xsp="http://apache.org/xsp" I tried replacing shift_jis with UTF-8 but I get an error. How can I fix this problem? Joanne - 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Inserting Attributes
Hi, I am writing a generator which parses an XML data stream (InputSource). I want to add attributes to ONE of the elements that will come from that data stream. My thinking was that I could call [MySaxParser].setContentHandler(this.contentHandler) to pass through the SAX events, however, this would preclude me from inserting the new attributes. Does anyone have an idea how to do this? I suppose that I could subclass org.xml.sax.helpers.DefaultHandler and implement every method to call the appropriate this.contentHandler method, inserting my new attributed prior to the call. But this doesn't sound right. There must be an easier way. Any pointers? Thanks in advance. -Mitch -- Mitch Christensen Principal Architect Redknife, Inc. 3095 Independence Dr. Livermore, CA 94550 - 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]