Re: Dom Transformer

2013-03-15 Thread Mansour Al Akeel
I have tags with id's like: some-section-tag id='109876_n00069 And those ids are used for links inside the document. They are linked from different sections. I like to transform the links and the ids to something that makes sense. Like, xref href=the-section-title-with-dashes-only My

Re: Dom Transformer

2013-03-15 Thread Mansour Al Akeel
Jos, thank you. I though about this. The problem is, the documents I am processing had to go through a pipeline processing before I need to use DOM transformation on them. So a generator is not an option, and I am using C3. On Fri, Mar 15, 2013 at 2:58 PM, Jos Snellings

Re: Dom Transformer

2013-03-15 Thread gelo1234
The question is WHY you want to use DOM is still valid. C (2 or 3) uses SAX or StaX per default and you can use it in a clean way. I see no reason to use DOM. Greetings, -Greg 2013/3/15 Mansour Al Akeel mansour.alak...@gmail.com I have tags with id's like: some-section-tag

RE: Dom Transformer

2013-03-15 Thread Robby Pelssers
...@gmail.com] Sent: Friday, March 15, 2013 8:02 PM To: users@cocoon.apache.org Subject: Re: Dom Transformer The question is WHY you want to use DOM is still valid. C (2 or 3) uses SAX or StaX per default and you can use it in a clean way. I see no reason to use DOM. Greetings, -Greg 2013/3/15 Mansour Al

Re: Dom Transformer

2013-03-15 Thread Jos Snellings
Not sure what your usage is, Mansour. If your program has to generate references to things that 'yet have to come' in the input stream, of course you get quickly into thinking 'DOM'-wise. - I believe Stax can bring outcome, but no experience with this. - I once wrote a 'SAX-recorder', so

Re: Dom Transformer

2013-03-15 Thread Javier Puerto
2013/3/15 Mansour Al Akeel mansour.alak...@gmail.com I have tags with id's like: some-section-tag id='109876_n00069 And those ids are used for links inside the document. They are linked from different sections. I like to transform the links and the ids to something that makes sense.

Re: Dom Transformer

2013-03-15 Thread gelo1234
Seems reasonable. Although its a bit awkward idea. Simplicity is the key ;) Greetings, -Greg 2013/3/15 Jos Snellings jos.snelli...@upperware.biz Not sure what your usage is, Mansour. If your program has to generate references to things that 'yet have to come' in the input stream, of

Re: Dom Transformer

2013-03-15 Thread Javier Puerto
2013/3/15 Javier Puerto jpue...@gmail.com 2013/3/15 Mansour Al Akeel mansour.alak...@gmail.com I have tags with id's like: some-section-tag id='109876_n00069 And those ids are used for links inside the document. They are linked from different sections. I like to transform the

Re: Dom Transformer

2013-03-15 Thread Javier Puerto
2013/3/15 Mansour Al Akeel mansour.alak...@gmail.com I have tags with id's like: some-section-tag id='109876_n00069 And those ids are used for links inside the document. They are linked from different sections. I like to transform the links and the ids to something that makes sense.

Re: Dom Transformer

2013-03-15 Thread Mark H. Wood
On Fri, Mar 15, 2013 at 02:58:37PM -0400, Mansour Al Akeel wrote: I have tags with id's like: some-section-tag id='109876_n00069 And those ids are used for links inside the document. They are linked from different sections. I like to transform the links and the ids to something that

Re: Custom DOM transformer

2007-11-20 Thread Jean-Claude Vogel
Hello, Thanks a lot for your answers which helped me to understand my problem. It was finally not a Cocoon usage problem like I believed too long, I had a releaseConnection on my PostMethod before logging the resulting body on the client side. So the http response body was ever null. In fact,

Re: Custom DOM transformer

2007-11-19 Thread Jean-Claude Vogel
Thank you, effectively it was just a mistake during my drag and drop to write my email. The true code is : map:pipeline map:match pattern=tentative map:generate type=stream map:parameter name=defaultContentType value=text/xml/

Re: Custom DOM transformer

2007-11-19 Thread solprovider
You have proven the problem is not in the custom DOMTransformer. Warrell suggests using the Request Generator. I generate form data using the Server Pages Generator with an XSP. I wrote this when I was very new to Cocoon. It works, but I would be very interested in a debate about the best

Custom DOM transformer

2007-11-16 Thread Jean-Claude Vogel
Hello guys, I would like to write my own dom transformer. So I simply wrote the following in order to get firstly an identity transformer : public class TestTransformer extends AbstractDOMTransformer { private Request request; public void setup(SourceResolver resolver, Map

Re: Custom DOM transformer

2007-11-16 Thread solprovider
] wrote: Hello guys, I would like to write my own dom transformer. So I simply wrote the following in order to get firstly an identity transformer : public class TestTransformer extends AbstractDOMTransformer { private Request request; public void setup

Re: Custom DOM transformer

2007-11-16 Thread Jean-Claude Vogel
in your pipeline match? Can you show us the sitemap? You would need to use the Request generator or another one that 'loads' the pipeline with the contents of the HTTP Request. Cheers On 16/11/2007, Jean-Claude Vogel [EMAIL PROTECTED] wrote: Hello guys, I would like to write my own dom

Re: Custom DOM transformer

2007-11-16 Thread warrell harries
Surely some mistake (probably a typo) but your pipeline should be :- map:pipeline map:match pattern=tentative map:generate type=stream map:parameter name=defaultContentType value=text/xml/ /map:generate map:transform type=testTransformer / map:serialize type=xml/ /map:match

Re: Custom DOM transformer

2007-11-16 Thread warrell harries
guys, I would like to write my own dom transformer. So I simply wrote the following in order to get firstly an identity transformer : public class TestTransformer extends AbstractDOMTransformer { private Request request; public void setup(SourceResolver resolver, Map

Re: Custom DOM transformer

2007-11-16 Thread solprovider
The two examples are functionally equivalent. Both pipelines would error without the pattern=tentative match: the former because no pipeline match is found and the latter because no Serializer is called. The map:match element is irrelevant because the match must be assumed and no numbered