RE: XSLT transformation

2005-08-04 Thread Conal Tuohy
Antony Grinyer wrote: Hi, A have a simple sitemap entry as below: map:match pattern=listcontainers map:generate type=file src=content/showsyscontainer.xml/ map:transform type=bdbxml/ map:transform type=xslt src=style/xsl/containerslist.xsl/ map:serialize type=html/

RE: Data-driven decorator design

2005-07-20 Thread Conal Tuohy
Peter van Hardenberg wrote: I'd like to decorate my XML files as an early processing step with XML from another source. The source documents are Shakespearean texts, and I want to use Cocoon to overlay annotations from various sources onto the file. I am considering using map:aggregate,

RE: How to add metadata to a binary response?

2005-06-06 Thread Conal Tuohy
Greg Hance wrote: We have a few pipelines that use custom Cocoon readers that we also need to return metadata with - the output of these pipelines are binary and return various image formats (JPEG, GIF) and also some PDFs. The problem is that we also need to return some metadata along

RE: Initializing variables in XSLT

2005-05-12 Thread Conal Tuohy
Oleg Konovalov wrote: I am new to XSLT, trying to significantly modify somebody else's XSL. You should ask these XSLT questions on the Mulberry XSL list. If you are new to XSL you'll find it invaluable. I need to create min and max variables to be used in many templates and sub-templates

RE: display tags from xml

2005-05-10 Thread Conal Tuohy
Fab Psycho wrote: My jx is : mytext h1texttitle/h1 text inumber 1/i ... /mytext my xsl displays text withxsl:value-of select=mytext ...Problem is h1, i and all other tags are ignored :( ... This is correct behaviour for xsl:value-of. It is supposed to copy the STRING

RE: Getting access to SVG image metrics [was RE: document() function in Saxon 8.3 under Cocoon 2.1.7]

2005-04-20 Thread Conal Tuohy
Wendell Piez wrote: Given that SVGs are (sort of) images, maybe the Image Directory generator ought to report the dimensions of SVGs out of the box ... then I wouldn't even need any of the fancy stuff. Good point! That would be a far cleaner solution. How's your Java skills? :-)

RE: Getting access to SVG image metrics [was RE: document() function in Saxon 8.3 under Cocoon 2.1.7]

2005-04-19 Thread Conal Tuohy
Wendell Piez wrote: Otherwise, there's also a more long-winded but more flexible way, where you transform the result of the DirectoryGenerator to produce xi:include elements pointing at a pipeline which extracts image metrics from a file, and use the xinclude transformer to perform the

RE: JXTemplate, Xpath and Namespace

2005-04-12 Thread Conal Tuohy
Hi Elad In XSLT 1.0 you cannot match a namespaced element UNLESS you use a namespace prefix. If the input document uses a default namespace (i.e. with no prefix), you can still match it, but your template/@match expressions MUST use a prefix. In your XSLT, bind the XHTML namespace to a

RE: document() function in Saxon 8.3 under Cocoon 2.1.7

2005-04-10 Thread Conal Tuohy
Wendell Piez wrote: If an image directory were to include width and height of SVGs as well as rasters, I'd be in business ... I guess here the caching issues have already been addressed. This suggests a solution would be a preprocess that would generate a directory of available SVGs, which I

RE: Design note - Building a template mechanism

2005-04-05 Thread Conal Tuohy
Also see this page: http://wiki.apache.org/cocoon/Templates And this one in particular shows one way to do it: http://wiki.apache.org/cocoon/HtmlToXsltExperiments - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

RE: DOCTYPE declaration with an external entity

2005-03-17 Thread Conal Tuohy
David Frey wrote: We are creating a NewsML/NITF doc out of our process. The header of this document needs to contain an entity statement. The very top of this document should look like this: ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE NewsML SYSTEM

RE: custom transformer

2005-03-08 Thread Conal Tuohy
Ben Anderson wrote: public void endTransformingElement( String uri, String name, String raw ) throws ProcessingException, IOException, SAXException { if(XQUERY_TAG.equals(name)) {

RE: stream in flowscript

2005-02-24 Thread Conal Tuohy
luca morlando wrote: I've the following problem with Control Flow: I was able to read a stream in the sitemap using map:match pattern=*/getSomething map:generate type=stream map:parameter name=defaultContentType value=text/xml/ /map:generate ... /map:match But

RE: XSL File I/O

2005-02-18 Thread Conal Tuohy
Hiral Parikh wrote: After further researching and trial-error I got a better, cleaner solution. Instead of doing xinclude, document() etc etc, I just used the saxon api for Java this way: xsl:variable name=imageExists select=file:exists(file:new($imageFile)) xmlns:file=java.io.File/ NB

RE: XSL File I/O

2005-02-16 Thread Conal Tuohy
Hiral Parikh wrote: I am doing a bunch of XSL transformations from an XML file using Cocoon 2.1.5.1 and finally generate a FO file. I have the following requirement to carry out in my XSL transformations: 1. Get the fileurl for images in the XML (e.g. /images/A.jpg) 2. Check for the file on

RE: XSL File I/O

2005-02-16 Thread Conal Tuohy
Hi Geert You should avoid the XSLT document() function, since it will break the pipeline cacheability. Can you explain why? You can use url's that start with http:// and cocoon://. I don't see why these break cacheability... See this faq about using XSLT document() in Cocoon, which

RE: How might I do this in Cocoon?

2005-02-11 Thread Conal Tuohy
Mike Lopke wrote: I have a java servlet that queries a database and produces xml. Part of this includes translating some of the data, like product numbers, using a HashMap. The HashMap is built from an xml source and is very large. Populating it takes a long time so I set it up using

RE: Sanity check concerning dynamic XSLT and multiple XML data files

2005-02-11 Thread Conal Tuohy
Markus Vaterlaus wrote: Maybe you want to have look at xpath directory generator. I agree. That's a good solution. The reason that xslt document('foo.xml') is no good is that the CacheValidity of the XSLT transform does not depend on the calls it makes to the document() function. This is a

how to use JXTemplateTransformer?

2005-02-01 Thread Conal Tuohy
I have searched without success for documentation about the JXTemplateTransformer. Is there any? I want to transform an XHTML document, and for each hyperlink in the XHTML, I want to use JXPath to look it up in a Java model, and add some resulting data as a title attribute for the link. e.g.

RE: decimal formatting

2005-01-28 Thread Conal Tuohy
Gunter D'Hondt wrote: I've also tried a plain java program and call it like this: java -Duser.language=fr -Duser.country=FR -Duser.variant=FR Main java program: public class Main { public static void main(String[] args) { double d=123.45;

RE: bit of brotherly help...

2005-01-27 Thread Conal Tuohy
Uzo: I was just wondering if there are any cocoon heads out there who have access to an I.E browser on an windows platform that can tell me whether my site is visible when accessed from the browser? http://www.beyarecords.com It does appear. So that means it the cinclude namespace is

RE: bit of brotherly help...

2005-01-27 Thread Conal Tuohy
Uzo wrote: firstly i am running cocoon 2.1.6. My xslt file is specified top and bottom as follows: ?xml version=1.0 encoding=ISO-8859-1? xsl:stylesheet version=1.0 xmlns:cinclude=http://apache.org/cocoon/include/1.0;

RE: Ways to implement Dynamic XSLT in Cocoon

2005-01-19 Thread Conal Tuohy
Matt Robinson wrote: Has anyone come across or written an transformer-based way to dynamically modify an XSLT template at processing time? Yes. See http://wiki.apache.org/cocoon/MetaStylesheets and also http://wiki.apache.org/cocoon/HtmlToXsltExperiments Cheers Con

RE: newbie question: xsl tokenizer

2004-11-21 Thread Conal Tuohy
-Original Message- From: fabrizio picca Sent: Monday, 22 November 2004 7:53 a.m. Subject: newbie question: xsl tokenizer is there a way to get something similar the java string tokenizer in xsl processing? You can also do this kind of thing in pure XSLT using recursive

RE: Intermediate page in between request and response

2004-11-11 Thread Conal Tuohy
Hi Anna You should have a pipeline which takes the search parameters and generates an HTML page with your please wait notice, and an HTTP refresh META tag in the HTML head, which would contain a URL pointing at the real search results pipeline. So this first HTML page would return to the

RE: Extend Lucene sample to RDBMS?

2004-11-04 Thread Conal Tuohy
Nicolas Maisonneuve wrote: my version doesn't allow nested lucene field because lucene index is a flat structure of fields. The official versionof LuceneIndexTransformer is a fulltext indexation.. It indexes the content (and not the structure) in a general field named content, there are

RE: Extend Lucene sample to RDBMS?

2004-11-03 Thread Conal Tuohy
Nicolas Maisonneuve wrote: see also a different version of LuceneIndexTransformer index XML data and delete available http://marc.theaimsgroup.com/?l=xml-cocoon-devm=107821889332237w=2 Indexing XML data is not new. The current LuceneIndexTransformer does this already. The current version

RE: Extend Lucene sample to RDBMS?

2004-11-02 Thread Conal Tuohy
Phil - make sure you use LuceneIndexTransformer[1] (LIT) rather than the crawler to build the index. The LIT is far more convenient and much faster for indexing database records and in general where you need to generate multiple Lucene records from a single data source. Basically, you would use

RE: cocoon call back to jsp with params

2004-10-17 Thread Conal Tuohy
Rokibul Islam Khan wrote: But when I need creiate area based retrieving then I have to send the parameters to cocoon and cocoon have to request the the xml generator jsp with those params. Any body have any idea that how can I do that or any alternet idea to do that ? Use the

RE: Embedding fonts using fo2pdf serializer

2004-10-07 Thread Conal Tuohy
-Original Message- From: Westemeyer, Sebastian, VF-DE Sent: Friday, 8 October 2004 03:31 To: [EMAIL PROTECTED] Subject: Embedding fonts using fo2pdf serializer I am working on an XSLT conversion to FO and a serialisation into PDF using the fo2pdf serializer. Now I have tried

RE: XForms/DENG passing parameters to Cocoon?

2004-10-06 Thread Conal Tuohy
Lars, my advice is to sniff the http transaction to see what deng sends the server, and compare it with what the html form sends. I have often used the freeware nettool for this and I recommend it. http://www.capescience.com/articles/using_nettool/ I've been trying to use XForms in Cocoon, as

RE: Removing white space, comments, etc

2004-09-28 Thread Conal Tuohy
function normalize-space(). e.g. xsl:template match=text() xsl:value-of select=normalize-space()/ /xsl:template In summary, you can handle all of this in a single XSLT and use the regular HTML or XML serializer just as before. Cheers Con -- Conal Tuohy Senior Programmer +64-4-463-6844 +64

RE: XSLT Transformation and namespaces issue

2004-07-14 Thread Conal Tuohy
Hi Nick. Your sample XML looks good to me (though don't you also need the topic map namespace http://www.topicMaps.org/xtm/1.0/;?) The xlink ns prefix is there so there's no good reason for the update to fail. A namespace declared on the root element is in scope throughout the document. This

RE: SOAP Server?

2004-07-13 Thread Conal Tuohy
Brent Johnson wrote: I've already got it reading the request and running an XSL transformation as a test and it works great! The next step though.. which I'm sure will be a pain.. is trying to figure out how I can run some arbitrary Java code to attempt to process this request. For

RE: XSLT Transformation and namespaces issue

2004-07-13 Thread Conal Tuohy
Hi Nick I don't know what your problem is, but maybe there's something wrong with your XSLT? The XSLT you posted is not a complete stylesheet - perhaps you could post it? Or at least, the start of it? PS Interesting to see people using Topic Maps with Cocoon!

RE: Rendering images from 300 dpi to 72 dpi

2004-07-04 Thread Conal Tuohy
Aurelie Dupont wrote: I have original images with a high resolution of 300 dpi, which I need for printing (PDF). But I do also need the same pictures in about 72 dpi for the presentation on the web. Does anyone know by which means I can manage rendering a picture from 300dpi to 72dpi in

RE: Cocoon and WAP problems

2004-06-21 Thread Conal Tuohy
Hey Oro, maybe the problem is your WAP client doesn't like query strings in the URL? I know it sounds weird, but it could be. You have a matcher for test.wml - try accessing it with some (dummy) parameters, e.g. test.wml?foo=bar If that IS your problem then instead of URLs like:

how to use SWFGenerator? what is wrapped XMLReader?

2004-06-04 Thread Conal Tuohy
I'm trying for the first time to deal with Flash in Cocoon, but when I try to generate XML from a flash file, I get an error: Original Exception: org.xml.sax.SAXException: Cannot handle XML input without a wrapped XMLReader at

RE: wml error

2004-06-01 Thread Conal Tuohy
Hi Oro You just need to define a pipeline that matches the URI of your wmls file. Just like the pipeline which serves wml. If you can't get it to work, it would help if you posted the pipelines in your message, and the URLs you use to try to access them, otherwise we don't know why your

RE: Sitemap Auto-Mount challenge

2004-05-08 Thread Conal Tuohy
Hi Rob Your problem is simple, you'll be pleased to know. You should use a more powerful matcher to match your request URI. Check out the regexp matcher. My regexp skills are very poor, but I think you want something like: map:match type=regexp pattern=.{6}.+ map:mount uri-prefix=

RE: Doctype declaration missing

2004-05-04 Thread Conal Tuohy
Sarah Haff wrote: I have XSLT that does XML - XML transformation. I want to include a doctype declaration in the output so my XSLT starts with: xsl:output method=xml doctype-system=http://docbook.org/xml/4.2/docbookx.dtd; doctype-public=-//OASIS//DTD DocBook XML//EN

RE: Doctype declaration missing

2004-05-04 Thread Conal Tuohy
Hi Sarah. That looks correct to me. So I don't know what's going wrong now, sorry. Have you changed the source document? Cocoon may still be serving a previously-serialized file from its cache, so it may be an idea to clear or invalidate the cache, if you haven't already. -Original

RE: XSL Reuse: Including XSL documents in a master xsl document

2004-04-19 Thread Conal Tuohy
John Grange wrote: I am creating reports (some of which are in pdf) using cocoon as a display engine. The reports have to be presented differently based upon user preference. I would like to be able to include a document containing the attribute-sets into my stylesheet which is

RE: SAXParseException: Content is not allowed in prolog.

2004-04-19 Thread Conal Tuohy
David, it sounds like your mystylesheet.xsl has some content in the prolog. Are you sure there's nothing wrong there? It's easy to accidentally insert some white space at the start of the file or something. -Original Message- From: Carmona Perez, David [mailto:[EMAIL PROTECTED] Sent:

RE: Including XML into HTML as CDATA

2004-04-15 Thread Conal Tuohy
Have a look @ xml2html.xslt (one of the Cocoon system stylesheets). -Original Message- From: Steve Schwarz [mailto:[EMAIL PROTECTED] Sent: Friday, 16 April 2004 1:12 p.m. To: [EMAIL PROTECTED] Subject: Including XML into HTML as CDATA Hi I'm trying to generate html that

RE: (Easy) Passing a Variable From Sitemap to StyleSheet? - One complication

2004-04-11 Thread Conal Tuohy
Hi David. This is more of an XSLT question now really, if I understand you correctly. You should use attribute value templates (i.e. curly braces): xsl:variable name=foo/ ... cinclude:include src={$foo}/ You could indeed use xsl:value-of, like this: cinclude:include xsl:attribute

RE: svg2gif Serializer?

2004-03-27 Thread Conal Tuohy
Christofer Dutz wrote: I am looking for a serializer which lets me use transparency. After I found out that png seems to support transparency, I gave the svg2png serializer a try. When using Firebird/Firefox everything looks perfect. In the Internet-Explorer the transparent parts are white.

RE: Recursive Pipeline

2004-03-15 Thread Conal Tuohy
Alex Romayev wrote: I have a process in which in need to call the same pipeline recursively and aggregate the results. Basically, I have a pipeline which parses a paginated HTML page: map:match pattern=parse map:generate type=html src=http://www.foo.com?page={request-param:page}/

RE: Recursive Pipeline

2004-03-15 Thread Conal Tuohy
Ack! Fingers slipped! Here's what I meant to write: I did something like this once, to aggregate a list of html pages together. Each page had a [next] link at the bottom, and my pipeline basically followed these links. I think you want something similar. I don't have the code still, but

RE: My XSP is entifying my UTF

2004-03-09 Thread Conal Tuohy
Rafael: It's important to realise that character entities exist only in the in the serialization of XML, and that inside a Cocoon pipeline the XML is not serialized, so the entities do not exist. Inside Cocoon these special characters are no different to any other characters: as far as Cocoon is

RE: Need to include DOCTYPE definition after transform

2004-01-31 Thread Conal Tuohy
Hi David For the XSLT function id() to work, the XSLT processor needs to have a DTD available, because it needs to know which attributes are of type ID. The XSLT processor can then automatically index every element with this attribute. Many markup languages have an ID attribute called id, but not

RE: Control the formatting of seriazlied xhtml?

2004-01-25 Thread Conal Tuohy
Hi Steve Why not use an XSLT to introduce some blank lines, and use regular xml serialization? e.g something like: xsl:template match=*[not(text())] xsl:copy xsl:copy-of select=@*/ xsl:text /xsl:text xsl:apply-templates/

RE: Running an applet from a JAR-File

2004-01-25 Thread Conal Tuohy
init is the method which the browser calls to initialise the applet. The applet may itself be attempting to download some other file? Have a look in your web server access log to see. -Original Message- From: Nadia BrĂ¼nning [mailto:[EMAIL PROTECTED] Sent: Monday, 26 January 2004 2:25

RE: esql: How to protect table/column name parameters from exploits?

2004-01-20 Thread Conal Tuohy
Lars Huttar wrote: HOWEVER... if the request parameter is not to be used as a literal value but as a table or column name, esql:parameter doesn't work. E.g. in SELECT count(*) TOTAL FROM xsp-request:get-parameter name=table/ where xsp-request:get-parameter name=column / is not

RE: Calling an XSP generated class from XSLT

2004-01-19 Thread Conal Tuohy
Title: Calling an XSP generated class from XSLT Hi Corin I've never done this, but I think you may find it a bit tricky. Best of luck though! What does the XSP do? If you still have problems you might be better to use standard Cocoon-pipeline techniques to integrate rather than

RE: OT Hibernate (was Re: detecting which project instance)

2004-01-15 Thread Conal Tuohy
... but can you really trust Google anyway? After all: Number of Google search results for google rocks: 2,050 Number of Google search results for google sucks: 2,210 -Original Message- From: Mark Lundquist [mailto:[EMAIL PROTECTED] Sent: Thursday, 15 January 2004 19:26 To: [EMAIL

RE: Why a Selector is evaluated at beginning of pipeline? (was: sitemap logic depending on pipeline content)

2004-01-11 Thread Conal Tuohy
Selectors, Matchers etc are all executed at pipeline SETUP time. Then, after the pipeline has been built, the pipeline is executed and the generator, transformers, and serializer run. The reason is explicitly to rule out what you want to do: a previous version of Cocoon used a pattern called

RE: xml select own stylesheet?

2004-01-10 Thread Conal Tuohy
Mark, for one technique, see my message from about 12 hours ago (sitemap logic depending on pipeline content). -Original Message- From: Mark Lundquist [mailto:[EMAIL PROTECTED] Sent: Sunday, 11 January 2004 18:37 To: [EMAIL PROTECTED] Subject: xml select own stylesheet? Dear

store janitor configuration

2004-01-09 Thread Conal Tuohy
I've had some memory problems (OutOfMemoryError) and I've been looking at reconfiguring the store janitor. What are appropriate settings for the store janitor? The default settings seem very low. I've got 512 allocated to the JVM (i.e. -Xmx=512M) and set heapsize to slightly less than 512M, and

How to burst a large document into small pieces?

2003-12-14 Thread Conal Tuohy
advise me about either of these approaches, or suggest any other ideas? Cheers Con -- Conal Tuohy Senior Programmer (04)463-6844 (021)237-2498 [EMAIL PROTECTED] New Zealand Electronic Text Centre www.nzetc.org - To unsubscribe

RE: Recursive Transformation

2003-12-14 Thread Conal Tuohy
-Original Message- From: Frans Thamura [mailto:[EMAIL PROTECTED] Subject: Recursive Transformation I got information that in cocoon for recursive transforming, we need to create custom transformer. Is it right? and what is the first step to do that? No, I don't think that's

RE: File generator

2003-12-09 Thread Conal Tuohy
-Original Message- From: Kumar M [mailto:[EMAIL PROTECTED] Sent: Wednesday, 10 December 2003 06:50 To: [EMAIL PROTECTED] Subject: File generator Would File Generator pass along the cookies to End User from remote host when pulling contents using a url? No. I am looking for a proxy

RE: XSL question in Cocoon

2003-12-01 Thread Conal Tuohy
Michael, it's hard to say what's wrong without knowing what you expect. What do you mean by unique? Having the same content? Having the same @name? I think your unique-rows variable may not contain what you think. BTW, the best place to go with xsl queries is usually the MulberryTech XSL list,

RE: repeat-until for Sitemap Logic -- better solution?

2003-11-29 Thread Conal Tuohy
-Original Message- From: Sebastian Klamar [mailto:[EMAIL PROTECTED] Sent: Saturday, 29 November 2003 21:35 To: Cocoon User Mailinglist Subject: repeat-until for Sitemap Logic -- better solution? Is there any sitemap logic like a repeat-until statement Cocoon offers? (Matchers

RE: CInclude XInclude Transformers

2003-11-28 Thread Conal Tuohy
Hi Nacho Yes this possible. Just include a URL using the cocoon:/ pseudo-protocol to access the pipelines. Cheers Con -Original Message- From: Nacho Jimenez [mailto:[EMAIL PROTECTED] Sent: Friday, 28 November 2003 11:45 To: [EMAIL PROTECTED] Subject: CInclude XInclude

RE: Content Updating

2003-11-20 Thread Conal Tuohy
You can use the SourceWritingTransformer to update your documents using Cocoon pipelines. -Original Message- From: Brent L Johnson [mailto:[EMAIL PROTECTED] Sent: Friday, 21 November 2003 10:28 a.m. To: [EMAIL PROTECTED] Subject: Content Updating I want my customers (other

RE: InflatedFileGenerator

2003-11-19 Thread Conal Tuohy
You can read zipped content with the regular FileGenerator, using the jar: protocol. See http://wiki.cocoondev.org/Wiki.jsp?page=JarProtocolExample -Original Message- From: Tony Edwards [mailto:[EMAIL PROTECTED] Sent: Thursday, 20 November 2003 12:36 To: [EMAIL PROTECTED] Subject:

RE: not generation xml file

2003-11-12 Thread Conal Tuohy
Shiva, I think the xalan redirect extension may not work within Cocoon. To conform to the Cocoon "best practice", you should use a separate pipeline stage to save the XML data to a file on the server. Use the SourceWritingTransformer for this purpose. Cheers Con -Original

RE: XSLT and Namespaces Problem

2003-11-11 Thread Conal Tuohy
Hi Damon Is the xmlns declared in the XSLT too? What does the XSLT look like? Con -Original Message- From: Damon van Opdorp [mailto:[EMAIL PROTECTED] Sent: Wednesday, 12 November 2003 2:43 p.m. To: [EMAIL PROTECTED] Subject: XSLT and Namespaces Problem Hi all, I've having a problem

RE: XSLT and Namespaces Problem

2003-11-11 Thread Conal Tuohy
=. / /xsl:attribute /xsl:if /xsl:for-each xsl:apply-templates / /xsl:element /xsl:if /xsl:template /xsl:stylesheet On Thu, 2003-11-13 at 03:46, Conal Tuohy wrote: Hi Damon Is the xmlns declared in the XSLT too? What does the XSLT look like? Con -Original Message- From: Damon van Opdorp

RE: XSLT and Namespaces Problem

2003-11-11 Thread Conal Tuohy
I think it is a bug in the XSLT, actually. I think using xsl:element name={name()}/ and xsl:attribute name={name()}/ is the cause of the problem. These will copy the namespace prefixes, but not the namespaces themselves. So this really ought to fail, just as if you had: xsl:attribute

RE: XSLT - how to refer to attribute in calling element

2003-11-11 Thread Conal Tuohy
Hi Otmar I'm not entirely sure of the format of the html form you want to produce, but I think the issue is that you need to pass a parameter (the article id) to the template which builds the list of countries for that article. xsl:apply-templates select=/data/origin-country-enumeration

RE: problem with caching of jpegs by Internet Explorer

2003-11-04 Thread Conal Tuohy
You could test for access by IE using the browser selector, and serve them the file with an explicit expiry in the pipeline: map:parameter name=expires value=access plus 5 minutes/ Cheers Con -Original Message- From: jim basilakis [mailto:[EMAIL PROTECTED] Sent: Wednesday, 5

RE: URL encoding for request

2003-10-23 Thread Conal Tuohy
I believe the RawRequestParameterModule input module may be the answer here. This will provide access to the original (URLEncoded) parameter. Otherwise it's like the RequestParameterModule. Cheers Con -Original Message- From: Joerg Heinicke [mailto:[EMAIL PROTECTED] Sent: Friday, 24

RE: GT2003 videos [Fwd: Finished Video Processing]

2003-10-16 Thread Conal Tuohy
Luca Morandini wrote: Mark H wrote: Very useful having the videos available, I was at the GT but missed Stefano's talk. One thing though, I'm not sure if it's just my computer or not but the video track stops after 13 seconds while the audio track keeps going. It happens to me as

RE: Pass sitemap params to xslt transformer?

2003-10-11 Thread Conal Tuohy
document. +-- xsl:template match=@*|node() priority=-1 xsl:copy xsl:apply-templates select=@*|node()/ /xsl:copy /xsl:template /xsl:stylesheet Thanks again, Sonny From: Conal Tuohy [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED], [EMAIL

RE: Pass sitemap params to xslt transformer?

2003-10-11 Thread Conal Tuohy
You can't do nested attribute values in XSLT. It seems to me you should just use: xsl:template match=rp:[EMAIL PROTECTED]'navigationMenu'] cinclude:include src={$navigationMenu}/ /xsl:template Ahh darn. It seems ironic that a recursive language like XSLT doesn't support nesting

RE: svg2png dynamic static generation

2003-10-08 Thread Conal Tuohy
Joose, if you were thinking of writing a cache for your SVG images, probably a better idea would to modify the SQLTransformer to make it implement the Cacheable interface. Then your SVG will be cached by the existing cache. Maybe you could extend the SQLTransformer so it would execute a

RE: html templates - best practise

2003-10-04 Thread Conal Tuohy
See also http://wiki.cocoondev.org/Wiki.jsp?page=MetaStylesheets In this technique, an html template containing some kind of markup for dynamic layout is transformed into a stylesheet which is then applied to a content document. Then you can have a template like this which can function as a kind

RE: PFD creation

2003-10-01 Thread Conal Tuohy
Hi Josep To generate PDF you have to either generate XSL-FO XML (for the FOP serializer) or iText XML for the iText serializer. Take a look at the Hello World PDF samples. Cheers Con -Original Message- From: Josep Riudavets [mailto:[EMAIL PROTECTED] Sent: Thursday, 2 October 2003

RE: Using multiple resources in cocoon

2003-09-24 Thread Conal Tuohy
Hi Halgurt Can I suggest you aggregate your documents together first (using map:aggregate in the pipeline) so you have a single xml document to process with the stylesheet. Then you don't need to use the document() function. Cheers Con -Original Message- From: Mustafa Ali, Halgurt

strange delays in pipeline on Unix machine

2003-09-23 Thread Conal Tuohy
can't seem to track down what's happening here ... the overall flow of control is not clear to me, and I think I'm missing the source for some of the classes involved. Does anyone have any idea? Can you make a suggestion as to where to look? I'm tearing my hair out here!!! CHeers!! Con -- Conal

RE: Executing an action at the end of a series of transformers

2003-09-17 Thread Conal Tuohy
Probably you want to define a Transformer rather than an Action: map:match pattern=renderForm.html map:generate type=request/ map:transform .../ map:transform .../ map:transform .../ map:transform type=DoSomeCleanup/

RE: Maintaining request in match string.

2003-09-15 Thread Conal Tuohy
Use the request-param input module: map:match pattern=info.html ... map:parameter name=x value={request-param:x}/ See http://wiki.cocoondev.org/Wiki.jsp?page=RequestParameterModule Cheers COn -Original Message- From: Joel P W Pitt [mailto:[EMAIL PROTECTED] Sent:

RE: Maintaining request in match string.

2003-09-15 Thread Conal Tuohy
Sorry ... I read your question properly this time: I think you might be able to use the RequestGenerator to get your image map co-ordinates. -Original Message- From: Joel P W Pitt [mailto:[EMAIL PROTECTED] Sent: Tuesday, 16 September 2003 4:52 p.m. To: [EMAIL PROTECTED] Subject:

RE: cgi perl and cocoon

2003-09-08 Thread Conal Tuohy
I have integrated a (non-perl) cgi by calling it with a Cocoon reader. The Cocoon reader passes parameters to the CGI (it's a Windows executable, running under IIS on a separate Windows box) and the CGI calls Cocoon back to extract information from other Cocoon pipelines, before returning data to

RE: Implementing XSLT Tag Libraries?

2003-08-27 Thread Conal Tuohy
Robert Simmons wrote: I meant the XSP logicsheets. Thanks for the link. However, I wonder if one can create XSLT taglibs as wall. That would be cool. It *is* cool :-) See http://wiki.cocoondev.org/Wiki.jsp?page=MetaStylesheets

RE: mac os x/lucene indexing

2003-08-20 Thread Conal Tuohy
Bill French wrote: perhaps it should. by default mac os x shows: bash- ulimit -a open files(-n) 256 while linux (redhat 7.1) shows: bash- ulimit -a open files 1024 apparently there are more default limitations imposed by the OS on mac os x than on

RE: mac os x/lucene indexing

2003-08-19 Thread Conal Tuohy
Bill French wrote: i've been working for a while trying to find the source of a nasty too many open files error when building lucene indexes using cocoon's LuceneIndexTransformer on mac os x. just for kicks, i decided to try everything out on a linux machine and didn't have any

RE: best browsers for viewing xml?

2003-08-17 Thread Conal Tuohy
Sonny Sukumar wrote: I'd like a browser that can show an XML document in tree form--preferably clickable. Consider using an XSLT in Cocoon to transform the XML to an HTML representation of the XML. I have seen some stylesheets for doing this but I'm not sure where ... it would be easy

RE: using LuceneIndexTransformer

2003-08-15 Thread Conal Tuohy
Hi Bill I think your Cocoon setup looks fine now. I have heard of the too many open files error before (though I've never had it myself). You ought to check this out in the Lucene mailing lists. http://www.mail-archive.com/[EMAIL PROTECTED] Good luck Con -Original Message- From:

RE: basic form tutorial

2003-08-15 Thread Conal Tuohy
Ben, you can pass the form values to your XSLT something like this: map:transform src=song-list-to-html.xsl map:parameter name=artist value={request-param:artist}/ map:parameter name=title

RE: IE6: Can't open dynamic PDF from applet

2003-08-14 Thread Conal Tuohy
Hi Victor I think you need to have a look at the HTTP layer. What I use for these debugging situations is a little java app called NetTool. It's small but it's excellent for debugging HTTP, esp SOAP. You can use it to tunnel http connections, so you can see the HTTP request sent by your browser

RE: question about LuceneIndexTransformer

2003-08-14 Thread Conal Tuohy
i added the following line to my sitemap.xmap file, inside the map:transformers element: map:transformer name=index logger=sitemap.transformer.luceneindextransformer src=org.apache.cocoon.transformation.LuceneIndexTransformer/ now i'm at a loss as for what to

RE: MS Word Transformer

2003-08-14 Thread Conal Tuohy
You don't need to use special Office CSS - you can just serve an ordinary HTML page, with an ordinary CSS, embedded or linked, and Word will interpret it. The key is just to serialise the file with a mime-type of application/msword. To do this, add a serializer to the map:serializers section of

RE: question about LuceneIndexTransformer

2003-08-14 Thread Conal Tuohy
Bill French wrote: thanks for your reply. do i generate the index once statically and then keep the index somewhere, or generate it every time the user performs a search? how do i go about limiting my results to those matching search terms? The index transformer generates the index and

RE: another question on search

2003-08-14 Thread Conal Tuohy
Hi Bill. Yes you are confused: you should have 2 distinct pipelines: one to create or update the index (using the LuceneIndexTransformer) and a separate pipeline to search the index (using SearchGenerator). Con -Original Message- From: Bill French [mailto:[EMAIL

RE: another question on search

2003-08-14 Thread Conal Tuohy
of the concepts are still a little bewildering. ;) thanks, --bill On Thursday, August 14, 2003, at 07:56 PM, Conal Tuohy wrote: Hi Bill. Yes you are confused: you should have 2 distinct pipelines: one to create or update the index (using the LuceneIndexTransformer) and a separate

How to add Content-Length headers?

2003-07-23 Thread Conal Tuohy
I have a Cocoon site which I'm trying to cache (with a reverse-proxy). To cache a page, the proxy seems to require a Content-Length header, but some of my Cocoon pipelines don't return this header. I don't know why - can anyone enlighten me? I'm using c2.1m2 Cheers Con -- Conal Tuohy Senior

RE: dynamic node selection

2003-07-23 Thread Conal Tuohy
Adam there's no dynamic xpath expression evaluation in XSLT - you'll probably want to find some other way to identify the nodes you want to deal with since writing a generic xpath evaluator in XSLT is not going to be easy. It would be feasible though to parse some standard type of expressions

  1   2   >