Re: Newbie question about CSS display
This only for clarification. Test the stylesheet independent of the DocBook HTML with http://myserver:8080/cocoon/book/book.css;. If you get it, hmm, I don't know. If not, what do you get? When I follow the suggestion to access the CSS alone, I get this error: type resource-not-found message Resource not found description The requested URI /cocoon/book/book.css was not found. sender org.apache.cocoon.servlet.CocoonServlet source Cocoon servlet request-uri /cocoon/book/book.css path-info book/book.css Stupid mail client, simply ignores the reply-to header ... I wrote, that the above error message is probably caused by the not found CSS file on a place, where it should be to found, because it's specified in the sitemap. There can not be many reasons: 1. the file is not in the same directory as the xml (according to the earlier sent match patterns and pipelines), 2. the pipeline for the CSS does not look like the sent one 3. or there is another pipeline matching on *.css before the sent one. And this one searches for the CSS file on another place on the disk. A look into the log file, especially for stacktraces, will help I think. Maybe one can see a FileNotFoundException (or Resource...) with the specified path, where the file was searched for. Regards, Joerg -- +++ GMX - Mail, Messaging more http://www.gmx.net +++ Bitte lächeln! Fotogalerie online mit GMX ohne eigene Homepage! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: XSP/ESQL - separation of concerns?
But it's obvious that you must map the data retrieved by the SQL-queries into tags. Is it really useful to have an intermediate step like the mentioned Torque? Aren't the tags only another data representation? Joerg Hello, in my current project I am using xsp and esql logicsheet for db retrivieval and tag generation only. Although I know that this is good for developing (no extra compilation) I am not very happy with it. What I don't like is: --- - many SQL statement (complex tag structure) mixed cionfusingly with the actual document elements - the low readability of the code, also hard to debug... - no cocoon-like separtion of concerns (mix SQL-logic with tags) - the feeling that it is not the most performant way of doing this What I would like better (but don't excately know how): --- - put all SQL that is needed for generating on specific page into another thing (beans?) that has no tags - make my xsp shorter, more readable - have the good balance of performance, easy debugging, extensibility and the typical cocoon separation of concerns Here is a short but typical code snippet: --- ROOT esql:connection esql:poolmysql_pool/esql:pool esql:execute-query esql:query *COMPLEX QUERY, SOMETIMES 5 esql:query PER XSP * /esql:query esql:results esql:row-results ARTICLE xsp:attribute name=IDesql:get-int column=5//xsp:attribute xsp:attribute name=MAINesql:get-string column=7//xsp:attribute xsp:attribute name=SUBesql:get-string column=8//xsp:attribute xsp:attribute name=PDFPRINTesql:get-int column=9//xsp:attribute !-- Attribute evtl. NULL bei Direktanzeige -- xsp:logic if(!esql:is-null column=3/) { HEADEResql:get-string column=1//HEADER } /xsp:logic esql:get-xml column=2/ DATEesql:get-string column=11//DATE AUTHOResql:get-string column=12//AUTHOR /ARTICLE /esql:row-results /esql:results esql:no-results/esql:no-results esql:error-results/esql:error-results /esql:execute-query /esql:connection /ROOT /xsp:page Should I better use own generators or beans? What are your experiences? Robert -- +++ GMX - Mail, Messaging more http://www.gmx.net +++ NEU: Mit GMX ins Internet. Rund um die Uhr für 1 ct/ Min. surfen! - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Re: Need help getting rid of unnecessary XML files
I guess I was unclear in my first posting...currently, I produce an XML document based on querying the database. But this first step is the interesting one. Why do you produce an XML file instead of SAX events? There already exist some generators producing SAX events from database query results. I create that file in the cocoon/mount/html-pdf directory on my application server's filesystem and then pass it to cocoon with the following sub-sitemap: snip/ map:pipelines map:pipeline map:match pattern=*.pdf map:generate src={1}.xml/ Instead of using the file generator use one accessing a database (e.g. XSP with ESQL). Regards, Joerg map:transform src=bol.xsl/ map:serialize type=fo2pdf/ /map:match /map:pipeline /map:pipelines /map:sitemap What I want to do is replace this mechanism with SAX events so I don't have to create any files on the filesystem. Thanks for your response! Bob -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, November 22, 2002 10:08 PM To: [EMAIL PROTECTED] Subject: Re: Need help getting rid of unnecessary XML files You have to show us, in which way you are doing it at the moment. We create PDF dynamically too and have no XML files on the server. Joerg [EMAIL PROTECTED] wrote: Hi...my application that generates PDFs from XML files works just fine, but I am getting tons of XML files left on my server. I would like to be able to send SAX events to the pipeline instead of using the default file generator. Can anyone point me at a good example of this please? Thanks in advance! Bob Hitchins -- +++ GMX - Mail, Messaging more http://www.gmx.net +++ NEU: Mit GMX ins Internet. Rund um die Uhr für 1 ct/ Min. surfen! - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Stylesheet directed termination??
Either you have more exactly error messages/exceptions in cocoon.log or especially components.log or you really have a xsl:message terminate=yes anywhere in your stylesheet. Joerg Michael Engelhart wrote: hi, I'm getting java.lang.RuntimeException's in my root.log on Cocoon 2 when trying to run a basic XSP Here's my simple pipeline: map:pipelines map:pipeline map:match pattern=sites/*.xml map:generate type=serverpages src=sites/xsp/{1}.xsp / map:serialize type=xml / /map:match /map:pipeline /map:pipelines Here's test.xsp: ?xml version=1.0 encoding=ISO-8859-1? xsp:page language=java xmlns:xsp=http://apache.org/xsp; page xsp:logic xsp:element testxsp:exprTESTING.toLowerCase()/xsp:expr/test /xsp:element /xsp:logic /page /xsp:page When I access something with the URL /sites/test.xml, I get this in my root.log WARN(2001-12-07) 11:16.16:168 [root] (/earthtrip/sites/tradeonemktg.com/test.xml) HttpProcessor[8080][4]/CocoonServlet: The resource was not found org.apache.cocoon.ResourceNotFoundException: Stylesheet directed termination: java.lang.RuntimeException: Stylesheet directed termination at org.apache.cocoon.generation.ServerPagesGenerator.setup (ServerPagesGenerator.java:175) snip java.lang.RuntimeException: Stylesheet directed termination at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:) at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371) at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371) at org.apache.cocoon.components.language.markup.LogicsheetCodeGenerator.generateCode( LogicsheetCodeGenerator.java:130) snip This only occurs with XSP pages. When I have xml-xsl-html, it works fine... Any help? Thanks Mike - 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] -- System Development VIRBUS AG Fon +49(0)341-979-7411 Fax +49(0)341-979-7409 [EMAIL PROTECTED] www.virbus.de News: Cocoon-Premiere - Virbus AG setzt bei ShoppingMall-Plattform Lofex auf neueste XML-basierende Technologie http://www.virbus.de/de/press/pressemitteilung/20011123_lofex/index.html http://www.lofex.de - 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: Cocoon ignoring xsl:output ident?
http://xml.apache.org/cocoon1/faqs.html#faq-xsloutput Regards, Joerg But Cocoon seems to be ignoring the xsl:output indent=yes All of the output is coming out on the same line. Ideas? Suggestions? Do I need to somehow tell cocoon to turn on Xalan indent processing some other way? TIA! DR - 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: Cocoon ignoring xsl:output ident?
In the default-sitemap there are a few examples: map:serializers default=html map:serializer name=html mime-type=text/html src=org.apache.cocoon.serialization.HTMLSerializer doctype-public-//W3C//DTD HTML 4.01//EN/doctype-public doctype-systemhttp://www.w3.org/TR/html4/strict.dtd/doctype-system encodingiso-8859-1/encoding /map:serializer /map:serializers Like encoding is specified here, everything else of xsl:output has to be specified too. I don't know whether there are any limitations in comparison with xsl:output. Regards, Joerg - Original Message - From: David Rosenstrauch [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, December 04, 2001 8:33 PM Subject: Re: Cocoon ignoring xsl:output ident? Thanks for the RTFM! :-) But how does this work in C2? Thanks! DR At 08:22 PM 12/4/01 +0100, you wrote: http://xml.apache.org/cocoon1/faqs.html#faq-xsloutput Regards, Joerg But Cocoon seems to be ignoring the xsl:output indent=yes All of the output is coming out on the same line. Ideas? Suggestions? Do I need to somehow tell cocoon to turn on Xalan indent processing some other way? TIA! DR - 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: Antw: RE: Navigate through a xml-document over the web-browser
Hello Johannes, as far as I know IE realizes it's XML-navigation by a built-in stylesheet. So you need only this stylesheet. But don't ask me where to get it. Joerg Johannes Schwarz wrote: Unfortunately, I want the navigation in any browser-version and in a specific HTML look! [EMAIL PROTECTED] 29.11.2001 11.19 Uhr If you open an XML document in MS Explorer, you will see expandable menus. If you're only concerned about viewing the documents, then this should give you what you want. Liam Morley -Original Message- From: Johannes Schwarz [mailto:[EMAIL PROTECTED]] Subject: Navigate through a xml-document over the web-browser -- System Development VIRBUS AG Fon +49(0)341-979-7411 Fax +49(0)341-979-7409 [EMAIL PROTECTED] www.virbus.de News: Cocoon-Premiere - Virbus AG setzt bei ShoppingMall-Plattform Lofex auf neueste XML-basierende Technologie http://www.virbus.de/de/press/pressemitteilung/20011123_lofex/index.html http://www.lofex.de - 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: xsl:include not allowed ?
Without the stylesheets it's very difficult. You have the xsl:include on a wrong position - or it's a bug from Xalan. example for wrong position: xsl:value-of select=bla xsl:texttest/xsl:text /xsl:value-of Here xsl:text is not allowed in this position. But because of bug in Xalan: Not long ago such an error occured at my code too. I don't know why. Replacing it with xsl:import worked. Joerg Beat De Martin wrote: I get the following error javax.xml.transform.TransformerException: xsl:include is not allowed in this position in the stylesheet! Any hints ? Cheers Beat -- System Development VIRBUS AG Fon +49(0)341-979-7435 Fax +49(0)341-979-7409 [EMAIL PROTECTED] www.virbus.de - 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: XSP namespace question
Hi David, in XSLT there is an attribute of xsl:stylesheet called 'exclude-result-prefixes'. I don't think that this will work already on the XSP, but at least in your XSL. Give it a try: xsl:stylesheet exclude-result-prefixes=xsp version=1.0 xmlns:xsl=.. It's a whitespace-separated list. If this doesn't work (because you only copy the node), try xsl:element name={name()} instead of xsl:copy. It gives the same result. With xsl:copy-of select=.. it's much more difficult. But the first hint should already work. Joerg - Original Message - From: David Rosenstrauch [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, November 16, 2001 9:02 AM Subject: XSP namespace question Given an xsp page like this: xsp:page xmlns:xsp=http://apache.org/xsp; language=java page name=abc/ /xsp:page Cocoon seems to be giving me output like this: page xmlns:xsp=http://apache.org/xsp/ Is it necessary though that the namespace declaration get copied to the output? It's certainly not necessary any longer once the XSP has been run. Is there a way to turn off the copying of the namespace like this? This is causing me problems later on. My XSP page actually contains much more than this and when I apply a stylesheet (which uses xsl:copy), the namespace is getting copied to the HTML output. I'd like to avoid that if possible. Any ideas? Tnx! DR - 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: SVG
We are doing this already. So there should be no problem in general. Have you tried the samples of Cocoon 2? The SVG-samples creating JPEG from XML? And XSP-samples? Combine these two and you will get JPEG from XSP. Look at the logfiles if you have problems and think your sitemap-entries should work. Regards, Joerg [EMAIL PROTECTED] wrote: I guess no one can help me with the SVG pipeline case then? Bobby Koya --- Hi guys, Can anyone help me with this? I would like to be able to perform a simple step... 1. using an XML file styled to produce an svg which is then serialised to a jpeg. Ultimately I would like to build upon this to produce this step 2. XSP via XSL to SVG(serialised to jpeg) inside HTML. This would give me dynamic SVG. The problem is that I can't work out how to do it in the sitemap. Can anyone please help? - 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] -- System Development VIRBUS AG Fon +49(0)341-979-7435 Fax +49(0)341-979-7409 [EMAIL PROTECTED] www.virbus.de - 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: href
Ferran Urgell: a href={sql:ref}xsl:value-of select=.//a Henrik Hofmann: a xsl:attribute name=href xsl:value-of select=sql:ref/ /xsl:attribute xsl:value-of select=./ /a These two are equivalent and shouldn't cause any errors. Ferran has the shorter and more readable version. Ferran's problem seems to be 'sql:ref' itself. But there I can't help. Joerg -- System Development VIRBUS AG Fon +49(0)341-979-7435 Fax +49(0)341-979-7409 [EMAIL PROTECTED] www.virbus.de - 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: xsl:message
I just tried using xsl:message in Cocoon2 and got a hard-failure screen. Per the XSLT spec, isn't the message entered supposed to display in the browser or something? Tried this: xsl:message terminate=yes xsl:textError occurred - check your data!/xsl:text /xsl:message should be xsl:message terminate=yes Error occurred - check your data! /xsl:message Giacomo That makes no difference, Giacomo. I think, here is only a problem of understanding, how xsl:message works. You will never see a message (from xsl:message) in the output-tree, so with Cocoon on the client's screen. This messages are for the backend. So you will find the messages in the logfiles as exceptions 'stylesheet directed termination'. That's correct. Since Cocoon 2 has more than one logfile, you have to look not only at cocoon.log, but at components.log too. And there is written your error-message - with or without xsl:text, this only differs in whitespace-handling, so using xsl:text is more correct. Even a complex error-message using other xsl-statements is possible. Regards, Joerg - 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 uses 1.0 or 1.1 of XSLT spec?
Xalan (the Transformer in Cocoon 2) uses the XSLT spec 1.0. But this doesn't matter for your problem. You don't need the nodeset()-function. With your variables you always get nodesets. The nodeset()-function is for transforming ResultTreeFragments to nodesets. Now your problem: The problem is your code. In $myemp you store the scheduledates of the employee with id='43'. But the second variable $myemp1 selects only these nodes, where the value of the current node (scheduledate) is not the same like the value of the node named 'preceding' and child of scheduledate. I think all your scheduledates will fulfill this condition. What you obviously want, is something like the following: xsl:variable name=myemp1 select=$myemp[. != preceding::scheduledate]/ Or better/faster, because not so much nodes must be tested: !-- never use '//' !! -- !-- only the nodes /data/schedule have to be tested, not ALL nodes. -- xsl:variable name=myemp select=/data/schedule[employeeid='43']/ !-- only the preceding siblings have to be tested, not all preceding nodes. -- xsl:variable name=myemp1 select=$myemp[not(scheduledate = preceding-sibling::schedule/scheduledate)]/ xsl:for-each select=$myemp1 xsl:value-of select=scheduledate/br/ /xsl:for-each In my eyes the best method is using keys: xsl:stylesheet . !-- build an index over all schedules, group them by employeeid and scheduledate -- xsl:key name=schedules match=schedule use=concat(employeeid,'::',scheduledate)/ xsl:template match=data !-- for-each schedule-node, where the count of the nodes in the node-union of this node itself and the first node returned by the key-function is 1. This condition will only be fulfilled when '.' and 'key('schedules',concat(employeeid,'::',scheduledate))[1]' mean the same node -- xsl:for-each select=schedule[count( . | key('schedules',concat(employeeid,'::',scheduledate))[1] )=1] xsl:value-of select=scheduledate/ /xsl:for-each /xsl:template /xsl:stylesheet For more information on this grouping by keys (Muenchian Method), look at Jeni Tennison's site: http://www.jenitennison.com/xslt/grouping/muenchian.xml. Regards, Joerg - Original Message - From: Mark S. Kent [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, November 13, 2001 12:28 AM Subject: C2 uses 1.0 or 1.1 of XSLT spec? Does anyone have examples of the Xalan nodeset() function? I am having some trouble. Does Cocoon2 use the 1.0 or 1.1 (a?) specification of XSLT? What I want to do is: 1. Select nodes from my XML tree 2. Create a variable of the unique dates within the selected nodes XML data looks like this: data schedule employeeid70/employeeid lastnameSmith/lastname firstnameSusan/firstname deptdescTraining/deptdesc scheduleid275/scheduleid scheduledate06-11-2001/scheduledate minutesscheduled180/minutesscheduled /schedule schedule employeeid70/employeeid lastnameSmith/lastname firstnameSusan/firstname deptdescTraining/deptdesc scheduleid276/scheduleid scheduledate06-11-2001/scheduledate minutesscheduled480/minutesscheduled /schedule schedule employeeid70/employeeid lastnameSmith/lastname firstnameSusan/firstname deptdescTraining/deptdesc scheduleid277/scheduleid scheduledate06-12-2001/scheduledate minutesscheduled240/minutesscheduled /schedule /data XSL file looks like: ?xml version=1.0? xsl:stylesheet version=1.0 xmlns:xalan=http://xml.apache.org/xalan; xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xsl:template match=data !-- select only schedules for this emp -- xsl:variable name=myemp select=//schedule[employeeid='43']/scheduledate/ !-- eliminate duplicate dates -- xsl:variable name=myemp1 select=$myemp[not(.=preceding)]/ !-- display unique dates -- xsl:for-each select=$myemp1 xsl:value-of select=./br/ /xsl:for-eachbr/ /xsl:template /xsl:stylesheet myemp should be a nodeset of all schedules for employee 43. When I try: xsl:variable name=myemp1 select=$myemp[not(.=preceding)]/ it looks at ALL of the nodes in my XML (I think) rather than just the sub-set I've chosen. Do I need to explicitly make a nodeset out of the myemp selection? Mark - 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: no html output after pdf rendering
Hello Erik, I would test the XSL-FO output before serializing it to PDF. So you can see whether the docbook stylesheets work correctly. Furthermore you can test it without Cocoon2, only using xalan.jar for XSL-transformation and fop.jar for transformation to PDF. Both jars are delivered with Cocoon 2. The usage of these jars you can find at http://xml.apache.org. Joerg Erik Stunkat wrote: Hi Cocoon version 2.0rc2 Win 2000 tomcat 4 I have docbook dtd xml 4.1.2 with N. Walshs stylesheets and I´m able to get html output with the xsl stylesheets for plain html. It seems to work with fo to produce pdfs (no errors in log) but the browser shows nothing, empty page. The same occurs with rendering junitreports with frames, no errors but nothing in the browser - with noframes everything is ok. For plain xsl transformation from docbook I had to put all files into one folder (change the reference in docbook.xsl) Problem with content in frames, or other then html files with cocoon? Any ideas? Erik Stunkat QA POET Software Hamburg, Germany +49(0)40 60990-303 [EMAIL PROTECTED] -- System Development VIRBUS AG Fon +49(0)341-979-7435 Fax +49(0)341-979-7409 [EMAIL PROTECTED] www.virbus.de - 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: disable-output-escaping !!
Hi Martin, sorry, that you have to wait so long, but I have not much time at the moment. I think there are 2 possiblities. Either IE and Excel 97 could use XML, so the Transformer could not transform it to the HTML-entity. Or you set the encoding of the output file for instance to ISO-8859-1, the output method the to html and disable the output escaping. xsl:stylesheet xmlns:xsl=http://www.w3.org/1999/XSL/Transform; version=1.0 xsl:output encoding=iso-8859-1 method=html/ xsl:template match=address xsl:value-of disable-output-escaping=yes select=./ /xsl:template /xsl:stylesheet Hope this helps, Joerg Martin Mauri wrote: Hi Joerg, I'm kinda newbie with escape characters, so what would you suggest me to do with my problem? Look I have to show the content of the following tab in an XSP page: addressblablablaaddress Ok, now, some characters inside blablabla have escape characters like o(~). And as I said before I have to render the content into HTML through an XSL stylesheet, what should I do to disable the output escaping characters? thanks in advance, Martin disable-output-escaping is bad coding when creating tags with it. For example: xsl:text disable-output-escaping=yeslt;htmlgt;/xsl:text ...blabla... xsl:text disable-output-escaping=yeslt;/htmlgt;/xsl:text But if you need it for your sign, you can use it. But the XSL-transformer are not forced to support disable-output-escaping!! But most do it. Joerg Martin Mauri wrote: Hi users, I need to use some kind of disable-output-escaping cause' I need to show the result of the HTML generated on an Excel spreadsheet. The process of rendering to HTML and sending it to IExplorer with the application/vnd.ms-excel is done in the same process pipeline. The problem rises when the Excel OLE control embedded in IE opens it. As HTTPFormatter transforms every o(~) to its correspondent SGML code ordm;. The thing is that Excel 97 doesn't recognise it. I took a look at the FAQs and it says that using disable-output-escaping is bad coding, so I don't know what to do. any idea?? thanks in advance. Lic. Martin O. Mauri Profesion + Auge A.F.J.P. Paraná 666 - CP:1017 - Cap. Federal TE: (011)4373-7786/7 int:422 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] www.profesi.com.ar http://www.profesi.com.ar -- System Development VIRBUS AG Fon +49(0)341-979-7435 Fax +49(0)341-979-7409 [EMAIL PROTECTED] www.virbus.de - 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: disable-output-escaping !!
Hi Martin, disable-output-escaping is bad coding when creating tags with it. For example: xsl:text disable-output-escaping=yeslt;htmlgt;/xsl:text ...blabla... xsl:text disable-output-escaping=yeslt;/htmlgt;/xsl:text But if you need it for your sign, you can use it. But the XSL-transformer are not forced to support disable-output-escaping!! But most do it. Joerg Martin Mauri wrote: Hi users, I need to use some kind of disable-output-escaping cause' I need to show the result of the HTML generated on an Excel spreadsheet. The process of rendering to HTML and sending it to IExplorer with the application/vnd.ms-excel is done in the same process pipeline. The problem rises when the Excel OLE control embedded in IE opens it. As HTTPFormatter transforms every o(~) to its correspondent SGML code ordm;. The thing is that Excel 97 doesn't recognise it. I took a look at the FAQs and it says that using disable-output-escaping is bad coding, so I don't know what to do. any idea?? thanks in advance. Lic. Martin O. Mauri Profesion + Auge A.F.J.P. Paraná 666 - CP:1017 - Cap. Federal TE: (011)4373-7786/7 int:422 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] www.profesi.com.ar http://www.profesi.com.ar -- System Development VIRBUS AG Fon +49(0)341-979-7435 Fax +49(0)341-979-7409 [EMAIL PROTECTED] www.virbus.de - 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: How to have prompt for download?
I think, this is a problem of Windows not of Cocoon. Because I have a German version of Windows I can't tell you the right way. I try to explain it: In the explorer we have a menu named 'Extras', it should be named similarly in English, there 'directory options', 'file types', search for '.doc', modify the options of '.doc', there is an option meaning 'confirm opening before download', this must be switched to yes. Hope this helps, Joerg - Original Message - From: Hewko, Doug [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, October 03, 2001 8:18 PM Subject: How to have prompt for download? How would you set up Cocoon2 to download a file instead of opening an application for it? In my sitemap.xml, I have some word documents defined as follows so I can put them all in one physical path. map:match pattern=_documents/**.doc map:read src=xmldocs/{1}.doc mime-type=application/msword/ /map:match What would I need to change if I want Windows to give the open or save prompt instead of automatically opening Word? - 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: Cocoon2 -changes in web.xml
This message occurs if the structure of the XML doesn't match the DTD. So there seems to be an ordering problem or a completely wrong tag at this place. I can not say what's wrong, because the opening tag servlet is missing in your code-snippet. But the nodes in servlet must be like the following: 1. 0 or 1 icon ('?' = maybe) 2. 1 servlet-name ('' = must) 3. 0 or 1 display-name 4. 0 or 1 description 5. either servlet-class or jsp-file ('|' = or) (exactly one of this two) 6. 0 or 1 or many init-param ('*' = as much as you want) 7. 0 or 1 load-on-startup 8. 0 or 1 or many security-role-ref With this kind of writing the DTD the ordering of the tags is important! Hope this helps, Joerg - Original Message - From: Lakshmi Anantharaman [EMAIL PROTECTED] To: Cocoon-Users (E-mail) [EMAIL PROTECTED] Sent: Wednesday, October 03, 2001 8:20 PM Subject: Cocoon2 -changes in web.xml I made the following change in cocoon\webapp\WEB-INF\web.xml before making the war file . Added : !-- change param value to path to Catalina's servlet.jar -- init-param param-nameextra-classpath/param-name param-valuec:\Tomcat\tomcat\common\lib\servlet.jar/param-value /init-param THis is imediatly followed by /servlet servlet-mapping servlet-nameCocoon2/servlet-name url-pattern//url-pattern /servlet-mapping /web-app Does the Error Message below indicate that the ordering of tags inside the servlet tag ! -- -- --- Starting service Tomcat-Standalone Apache Tomcat/4.1-dev PARSE error at line 220 column 13 org.xml.sax.SAXParseException: The content of element type servlet must match (icon?,servlet-name,display-name?,description?,(servlet-class|jsp-file),ini t-pa ram*,load-on-startup?,security-role-ref*). Starting service Tomcat-Apache Apache Tomcat/4.1-dev Thanks Lakshmi - 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: Newbie: Problems with Sitemap
map:match pattern=yz/**.swf map:read src=yz/flash/{1}.swf mime-type=application/futuresplash/ /map:match Something like this will work, but your {1} contains the matched directories plus the filename. Change it to map:match pattern=yz/**/*.swf map:read src=yz/flash/{2}.swf mime-type=application/futuresplash/ /map:match Joerg - 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]
non-existing map:action-src and sitemap-recompilation
Hi, we have a problem with our sitemap(s) here. We are working with one central cocoon2b2-version and for anyone a sub-sitemap and for anyone and any project a sub-sub-sitemap. Adding a non-existing map:action name=test src=org.apache.test/-src causes an error java.lang.ClassNotFoundException: org.apache.test of course. The problem is after deleting this map:action-entry in the sitemap. The recompilation of the sitemap fails with the same error-message. Renaming the action won't work too. A consciously provoked error like missing end-tag will be detected and I get another error message. But when I correct this I will get the ClassNotFoundException again though there is nothing more written in the sitemap about the map:action. In every parent-sitemap the mounts have the attributes: check-reload=yes reload-method=synchron How can we solve the problem without root-access and restarting tomcat or deleting work-directory? Joerg - 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: Sitemap - unsatisfied link error awt.all
Hello Henrik, for a help from the group I would suggest that you translate the German error message into English - who should understand it here? java.lang.UnsatisfiedLinkError: C:\Java\jdk1.3\jre\bin\awt.dll: Es wurde versucht, auf eine unzulässige Adresse zuzugreifen --- There was an attempt to access an illegal address. Maybe now somebody can help you. Joerg - 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]Output indent problem.
Cocoon 2 (don't know Cocoon 1) ignores the xsl:output, you must this parameters in the sitemap. Have a look at http://xml.apache.org/cocoon2/sitemap.html. There can be found examples at the point 'Serializers'. Joerg Ling Kok Choon wrote: Hi All, I use cocoon to build a web site, when the output ( html ) shown, and i view the source, the html code is in very well form. like: table tr td img src=pic/p1.gif/ /td /tr tr td img src=pic/p2.gif/ /td /tr /table so it make my output ( html ) got a space between this 2 pic, and what i need is this 2 image joined togather, like: table trtdimg src=pic/p1.gif//td/tr trtdimg src=pic/p2.gif//td/tr /table but how to let the output ( html ) like above ? i have try to put xsl:output type=html indent=no/ on the xsl, but still can't work. Is anyone can help me ? Thank you. Kok Choon. - 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] Output indent problem NOT solved
Are you using xsl:apply-templates/ anywhere exactly in this forms, i.e. without select-attribute? Then you match on text()-nodes too, e.g. line wraps. They will be copied into the output-document too. Depending on your XSL the following template COULD help: xsl:template match=text()/ Joerg Jorn Heid wrote: This works for the main xslt-stylesheet but when using xsl:include the problem remains: htmlheadMETA http-equiv=Content-Type content=text/html; charset=UTF-8titlen3k Homepage/titlemeta content=Agents in Action name=autormeta content=english, en name=languagemeta content=coming soon name=descriptionmeta content=coming soon name=keywordsmeta content=follow name=robotslink href=/images/n3k.ico rel=shortcut icon/headbody marginheight=0 marginwidth=0 margintop=0 marginleft=0 topmargin=0 leftmargin=0 bgcolor=#ffdiv style=padding-left:10px;padding-right:10px;padding-top:50px h1 style=color:#0C3D91;font-size:13pt;font-weight:bold;font-family:verdana,ari al,sans-serifThe IP amp; Performance Management Experts/h1 div style=padding-left:40px;color:#00;font-size:9pt;font-weight:normal;font -family:verdana,arial,sans-serif class=text With the rapid growth of IP networks we are uniquely placed to provide the very best solutions to manage and control corporate IP networks. Founded in 1996, as Internet amp; Intranet Solutions we developed rapidly into the largest reseller in our niche. We have just changed our name to n3k Informatik as part of a wider European alliance. The company provides total solutions in the following areas: i ul ... As you can see the indent is still there - with all elements which I have included using xsl:include href=content.xsl/ The sitemap: map:serializer name=html mime-type=text/html src=org.apache.cocoon.serialization.HTMLSerializer preserve-spacefalse/preserve-space indentno/indent /map:serializer Is this a bug? JOERN_HEID - 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: option tag in xsl
You are using the HTML-serializer, so you get HTML-output. And in HTML the option-tags shouldn't be closed (backward compatibility). Joerg Thangadurai wrote: Hi All, I am new to cocoon i have problem while using html optiontag in my xsl. Please see the following xsp and xsl files *My xsp page ?xml version=1.0? ?xml-stylesheet href=option.xsl type=text/xsl? ?cocoon-process type=xslt? xsp:page language=java xmlns:xsp=http://www.apache.org/1999/XSP/Core; page /page /xsp:page My xsl(option.xsl)* ?xml version=1.0? xsl:stylesheet version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xsl:template match=page select name=audience size=1 option value=PL1PL/option option selected=true value=ALLALL/option /select /xsl:template /xsl:stylesheet I got the following result (Note that the option tags are not closed)** select name=audience size=1option value=PL1PLoption selected value=ALLALL/select * I couldn't find the reason for, why the option tags are not closed... Do you know..? - 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: performance tuning...
Karl Øie wrote: wget timing: first run of toc.html - 41.879s second run of toc.html - 0.013s (!!!) first run of page.html?xpath=//*[@id='1222'] - 58.031s second run of page.html?xpath=//*[@id='1222'] - 0.017s (!!!) Hi Karl, maybe I have another proposal for you: If you have a DTD for your XML and your @id is really unique in the whole XML, you can use the id()-function of XPATH. Instead of //*[@id='1222'] use id('1222'). This takes much less time than your statement (around factor 10; of course dependent on the size of the XML, my XML was 150 KB - maybe better factor for you). Joerg - 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]
[Fwd: Re: [C2b2] document() function not working?]
Hi, I'm one step further!! The problem: I looked in the wrong logfile. In the logfile for Tomcat there is written nearly the same as for Cocoon, but no errors ;-) Now I could change the link to the called XML-file. But there is still a problem: javax.xml.transform.TransformerException: Can not load requested doc: home at org.apache.xalan.templates.FuncDocument.warn(FuncDocument.java:448) at org.apache.xalan.templates.FuncDocument.getDoc(FuncDocument.java:385) at org.apache.xalan.templates.FuncDocument.execute(FuncDocument.java:221) at org.apache.xpath.Expression.asIterator(Expression.java:261) at org.apache.xpath.axes.FilterExprWalker.setRoot(FilterExprWalker.java:156) at org.apache.xpath.axes.WalkingIteratorSorted.reset(WalkingIteratorSorted.java:164) What does this mean? What are the possible errors? Regards, Joerg Original-Nachricht Betreff: Re: [C2b2] document() function not working? Datum: Wed, 22 Aug 2001 17:22:38 +0200 Von: Jörg Heinicke [EMAIL PROTECTED] An: [EMAIL PROTECTED] Referenzen: [EMAIL PROTECTED] Hi Christopher, thanks for your reply, but it must be another problem. I tested the stylesheet with all the XML-files on the commandline with Ant/Xalan and without Cocoon - it works fine. But I want to use Cocoon for doing this transformation on the fly. For the document()-function I have a question: Will the called XML-file handled by the sitemap ( - So do I need a correct matcher in it? - inclusive link-resolving? ) e.g. like a HTML-redirect for JPGs/GIFS or does it work completely without Cocoon (direct access to the XML-file)? I think that I tested all possibilities, but I had no success. I also searched the logfiles - no success. No error messages from document(). Regards, Joerg - 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]