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
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
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
...@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
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
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.
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
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
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.
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
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,
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/
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
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
] 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
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
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
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
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
19 matches
Mail list logo