Re: HTML5 doctype from Cocoon 2.1?

2010-11-16 Thread Martin Holmes
ed in the sitemap as shown. yes -//W3C//DTD XHTML 1.1//EN http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd UTF-8 Regards, Alec On 15/11/10 17:09, Martin Holmes wrote: Hi there, Where exactly did you put this code? Did you implement your serializer as a separate cla

Re: HTML5 doctype from Cocoon 2.1?

2010-11-15 Thread Martin Holmes
lement in your transformation. There is hope that it would not be overridden by the serializer. Cheers, Jos On 11/12/2010 05:17 PM, Martin Holmes wrote: Hi there, Does anyone know how to configure a serializer for Cocoon 2.1 that will output an HTML5 document? That means a minimal doctyp

HTML5 doctype from Cocoon 2.1?

2010-11-12 Thread Martin Holmes
Hi there, Does anyone know how to configure a serializer for Cocoon 2.1 that will output an HTML5 document? That means a minimal doctype that looks like this: served as text/html. Cheers, Martin - To unsubscribe, e-mail:

Re: Determining the host OS

2009-01-20 Thread Martin Holmes
Does this help you? Look at blocks/cocoon-core-sample/cocoon-core-main-sample/src/main/resources/COB-INF /modules/sitemap.xmap Robin -Original Message- From: news [mailto:n...@ger.gmane.org] On Behalf Of Martin Holmes Sent: 20 January 2009 16:49 To: users@cocoon.apache.org S

Re: Determining the host OS

2009-01-20 Thread Martin Holmes
My mistake here: I'd added it to one matcher, but I was looking for it in the output of another one. It works just fine! Thanks indeed. Cheers, Martin Andy Stevens wrote: 2009/1/20 Martin Holmes : HI Steve, Do you know how to call this in a sitemap? If I pass this into an

Re: Determining the host OS

2009-01-20 Thread Martin Holmes
On 20 Jan 2009, at 01:09, Martin Holmes wrote: HI folks, I'm trying to write a Cocoon-2.1-based application which I want to be completely portable between Tomcats running on Linux, OSX and Windows. I'm having a problem with the use of slashes and backslashes, especially on Windows, w

Determining the host OS

2009-01-19 Thread Martin Holmes
HI folks, I'm trying to write a Cocoon-2.1-based application which I want to be completely portable between Tomcats running on Linux, OSX and Windows. I'm having a problem with the use of slashes and backslashes, especially on Windows, where I've found that some relative paths are expressed wi

Re: mkdir in flowscript fails

2009-01-09 Thread Martin Holmes
Hi Steven, I think you nailed it -- I'd omitted the folder prefix. It's set to {realpath:/} in the sitemap. A fresh pair of eyes is a wonderful thing. Thanks indeed! Cheers, Martin Steven D. Majewski wrote: On Jan 9, 2009, at 5:36 PM, Martin Holmes wrote: Hi there, I&#

Re: mkdir in flowscript fails

2009-01-09 Thread Martin Holmes
This is Cocoon 2.1, by the way -- forgot to mention that. Martin Holmes wrote: Hi there, I'm trying to write flowscript ... - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e

mkdir in flowscript fails

2009-01-09 Thread Martin Holmes
Hi there, I'm trying to write flowscript which saves the output of a pipeline onto the file system. I've successfully done this for several pipelines, following the instructions on the WIKI. Up to now, I've been saving all the output files in an existing directory. Now I want to save one pipe

Passing parameters into XQuery

2007-09-21 Thread Martin Holmes
HI there, Using Cocoon 2.1.10: I'm trying to pass the value of the original URI requested by the browser into an XQuery generator, and I have two problems. First, I can't seem to pass any parameter value into the XQuery at all: The parameter doesn't make it into the XQuery, for s

Odd image problem

2007-08-24 Thread Martin Holmes
Hi folks, Using Cocoon 2.1.10, with this matcher in my sitemap: When I access the URL of one of the images in Firefox, it downloads the image to my temp directory and opens it from there (so the URL bar shows file:///[temp_folder]...). When I access it through IE7, it shows me the image

Re: map:match question

2007-01-23 Thread Martin Holmes
Dominic Mitchell wrote: Your URLs are constructed incorrectly. Everything after the hash should never get sent to the server. It's purely for use by the browser. You need to set them up like this: .../article.htm?id=EMLS3-2FITTNOCT&searchString=nocturne#hit10 Doh! That's it. Works a t

map:match question

2007-01-23 Thread Martin Holmes
I'm having trouble getting a match to trigger when the URL has a hash followed by a query string. This is my match pattern: It works fine when the url is something like this: ...article.htm?id=EMLS3-2FITTNOCT&searchString=nocturne but not if the URL is like this: ...article.htm#hit10?id=EML

Re: Sitemap problem with 2.1.7

2006-06-15 Thread Martin Holmes
Lars Huttar wrote: Martin Holmes wrote: ... However, if I comment out the matcher in the root sitemap, then my matcher works, and the resource is correctly retrieved from .../katakana/css/style.css. Does anyone know what could be causing this? I thought sitemaps always cascaded downwards

Sitemap problem with 2.1.7

2006-06-15 Thread Martin Holmes
Hi there, I'm moving a project from an old version of Cocoon to Cocoon 2.1.7, and I've hit a very odd sitemap problem. The root sitemap for Cocoon has this matcher: My project resides in a subfolder called "katakana", and it has this matcher: In the old version of Cocoon, the m

Re: Cocoon XSLT and schema documents

2006-01-27 Thread Martin Holmes
Doh! Thanks for this. I guess I have a long job trawling through my stylesheets to add the namespace prefix. Cheers, Martin Andrew Stevens wrote: From: Martin Holmes <[EMAIL PROTECTED]> Date: Thu, 26 Jan 2006 10:54:16 -0800 Hi there, I have some XML documents (TEI P5) that start lik

Cocoon XSLT and schema documents

2006-01-26 Thread Martin Holmes
Hi there, I have some XML documents (TEI P5) that start like this: http://www.tei-c.org/ns/1.0"; version="5.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://www.tei-c.org/ns/1.0 imt_p5.xsd" xmlns:svg="http://www.w3.org/2000/svg";> When XSLT transformation

Re: Generating plain text on Cocoon 2.1.6

2005-05-03 Thread Martin Holmes
ll pointer exception in Xalan, some resulted in empty XML documents, and some tripped up when encountering a character with a codepoint above 255. This was Cocoon 2.1.6 running on Tomcat 5.5, with Java 1.5. Hope this helps someone! Martin Martin Holmes wrote: Hi there, When I switch to the XML ser

Re: Generating plain text on Cocoon 2.1.6

2005-05-03 Thread Martin Holmes
Nailed it! I had this in my stylesheet: Changing it to ("type" instead of "method") solves the problem! But that shouldn't be, should it? According to XSLT 1.0 and 2.0, the attribute should be "method". Am I missing something here? Cheers, Martin Upayav

Re: Generating plain text on Cocoon 2.1.6

2005-05-03 Thread Martin Holmes
uot;; version="1.0"> [] • . [Note : ] "" () Cheers, Martin Upayavira wrote: Martin H

Re: Generating plain text on Cocoon 2.1.6

2005-05-02 Thread Martin Holmes
Upayavira wrote: you need to show more of the exception stack trace. the bit you showed wasn't the bit that actually held the error. Sorry -- here's the full thing: org.apache.cocoon.ProcessingException: Error executing pipeline.: java.lang.RuntimeException: java.lang.NullPointerException cause:

Generating plain text on Cocoon 2.1.6

2005-05-02 Thread Martin Holmes
I'm having problems generating plain text output (utf-8) on Cocoon 2.1.6. I get a NullPointerException. The scenario is: The XML files are UTF-8 and the XSL file starts out like this: type="text/plain"

Re: Missing xml declaration and doctype when using XQuery

2005-04-27 Thread Martin Holmes
. Cheers, Martin Martin Holmes wrote: Hi there, I have the following two matches in my pipeline: In the case of the first, I get this at the top of my XHTML output document: http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";&

Missing xml declaration and doctype when using XQuery

2005-04-27 Thread Martin Holmes
Hi there, I have the following two matches in my pipeline: In the case of the first, I get this at the top of my XHTML output document: http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";> http://www.w3.org/1999/xhtml";> In the ca

Authentication and sessions

2004-11-08 Thread Martin Holmes
Hi there, I'm working on a simple authentication system based on the authentication-fw example, and everything is working fine as long as cookies are turned on in the browser. As soon as cookies are turned off, authentication becomes lost. I'm using the following elements in each of my sitemap

Re: Authentication map problem

2004-11-05 Thread Martin Holmes
in the map returned from the auth-protect action instead of from the * in the map:match. Ralph Martin Holmes said: Hi there, I'm trying to adapt the authentication-fw example for my own use, and I'm hitting a problem. The example uses only one file ("protected.xml"), which is def

Authentication map problem

2004-11-05 Thread Martin Holmes
Hi there, I'm trying to adapt the authentication-fw example for my own use, and I'm hitting a problem. The example uses only one file ("protected.xml"), which is defined explicitly in the sitemap match element. I'm trying to protect all the documents in a folder, like this:

Simple authentication example?

2004-10-20 Thread Martin Holmes
Hi there, I'm just getting started with Cocoon and trying to figure out how to protect a pipeline with a very basic authentication method. The authentication-fw example is confusing me a bit -- I'm not sure what the relationship is between flow and authentication. Does anyone know of a very sim