Re: HTML5 doctype from Cocoon 2.1?

2010-11-16 Thread Martin Holmes
-public doctype-systemhttp://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd/doctype-system encodingUTF-8/encoding /map:serializer 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 class file

Re: HTML5 doctype from Cocoon 2.1?

2010-11-15 Thread Martin Holmes
|name version=string encoding=string omit-xml-declaration=yes|no standalone=yes|no doctype-public=string doctype-system=string cdata-section-elements=namelist indent=yes|no media-type=string/ Cheers, Jos On 11/12/2010 05:17 PM, Martin Holmes wrote: Hi there, Does anyone know how to configure

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: !DOCTYPE html served as text/html. Cheers, Martin - To

Re: Determining the host OS

2009-01-20 Thread Martin Holmes
you want. Just ask it for os.name. Steve 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

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 mhol...@uvic.ca: HI Steve, Do you know how to call this in a sitemap? If I pass

Re: Determining the host OS

2009-01-20 Thread Martin Holmes
] On Behalf Of Martin Holmes Sent: 20 January 2009 16:49 To: users@cocoon.apache.org Subject: Re: Determining the host OS HI Steve, Do you know how to call this in a sitemap? If I pass this into an XSLT transformation: map:parameter name=osName value={system-property:os.name} / the parameter is empty

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

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

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-mail

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'm trying

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: map:generate src=xq/contents.xq type=xquery

Odd image problem

2007-08-24 Thread Martin Holmes
Hi folks, Using Cocoon 2.1.10, with this matcher in my sitemap: map:match pattern=**images/*.jpg map:read mime-type=image/jpeg src=images/{2}.jpg/ /map:match 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

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: map:match pattern=article.htm It works fine when the url is something like this: ...article.htm?id=EMLS3-2FITTNOCTsearchString=nocturne but not if the URL is like this:

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-2FITTNOCTsearchString=nocturne#hit10 Doh! That's it. Works a

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: map:match pattern=**.css map:read mime-type=text/css src={1}.css/ /map:match My project resides in a subfolder called

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

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 like

Cocoon XSLT and schema documents

2006-01-26 Thread Martin Holmes
Hi there, I have some XML documents (TEI P5) that start like this: TEI xmlns=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

Re: Generating plain text on Cocoon 2.1.6

2005-05-03 Thread Martin Holmes
Upayavira wrote: Martin Holmes wrote: I'm having problems generating plain text output (utf-8) on Cocoon 2.1.6. I get a NullPointerException. The scenario is: map:match pattern=proof/*.txt map:generate src=abstracts_for_proofing/{1}.xml/ map:transform type=xinclude

Re: Generating plain text on Cocoon 2.1.6

2005-05-03 Thread Martin Holmes
, the attribute should be method. Am I missing something here? Cheers, Martin Upayavira wrote: Martin Holmes wrote: I'm having problems generating plain text output (utf-8) on Cocoon 2.1.6. I get a NullPointerException. The scenario is: map:match pattern=proof/*.txt map:generate src

Re: Generating plain text on Cocoon 2.1.6

2005-05-03 Thread Martin Holmes
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 serializer, I get an empty XML document: ?xml version=1.0 encoding=ISO-8859-1? with no root element, and the wrong encoding. This is strange; something must be throwing

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: map:match pattern=proof/*.txt map:generate src=abstracts_for_proofing/{1}.xml/ map:transform type=xinclude/ map:transform type=xslt

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

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: !-- Standard XHTML transform -- map:match pattern=proof/*.htm map:generate src=abstracts_for_proofing/{1}.xml/ map:transform type=xinclude/ map:transform type=xslt src=xsl/tei_ach_single_doc_to_xhtml.xsl/ map:serialize

Re: Missing xml declaration and doctype when using XQuery

2005-04-27 Thread Martin Holmes
the container tag is required before the doctype headers will be generated. Cheers, Martin Martin Holmes wrote: Hi there, I have the following two matches in my pipeline: !-- Standard XHTML transform -- map:match pattern=proof/*.htm map:generate src=abstracts_for_proofing/{1}.xml

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
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 defined explicitly in the sitemap

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