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: > > > > I think this can be done is Stax, xslt or Sax, however, I am trying to > do it in a clean way without any hacks. > > Do you have any suggestion ?? I well understand the appeal of keeping the

Re: Dom Transformer

2013-03-15 Thread Javier Puerto
2013/3/15 Javier Puerto > > > 2013/3/15 Mansour Al Akeel > >> I have tags with id's like: >> >> >> >> I think this can be done is Stax, xslt or Sax, however, I am trying to >> do it in a clean way without any hacks. >> >> Do you have any suggestion ?? >> > > XSLT sample: > > You can add the fol

Re: Dom Transformer

2013-03-15 Thread Javier Puerto
2013/3/15 Mansour Al Akeel > I have tags with id's like: > > > > I think this can be done is Stax, xslt or Sax, however, I am trying to > do it in a clean way without any hacks. > > Do you have any suggestion ?? > XSLT sample: You can add the following transformation to oyur pipeline sitemap.x

RE: Dom Transformer

2013-03-15 Thread Robby Pelssers
So we all agree on a SAX transformer :) From: gelo1234 [mailto:gelo1...@gmail.com] Sent: Friday, March 15, 2013 8:19 PM To: users@cocoon.apache.org Subject: Re: Dom Transformer Seems reasonable. Although its a bit awkward idea. Simplicity is the key ;) Greetings, -Greg 2013/3/15 Jos Snellings

Re: Dom Transformer

2013-03-15 Thread Javier Puerto
2013/3/15 Javier Puerto > > > 2013/3/15 Mansour Al Akeel > >> I have tags with id's like: >> >> >> >> I think this can be done is Stax, xslt or Sax, however, I am trying to >> do it in a clean way without any hacks. >> >> Do you have any suggestion ?? >> > > You can do it whithout any hack with

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

Re: Dom Transformer

2013-03-15 Thread Javier Puerto
2013/3/15 Mansour Al Akeel > I have tags with id's like: > > > > I think this can be done is Stax, xslt or Sax, however, I am trying to > do it in a clean way without any hacks. > > Do you have any suggestion ?? > You can do it whithout any hack with all the ways, sax, stax and xslt. XSLT: si

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 some

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 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 > I have tags with id's like: > > > > I think this can be done is Stax, xslt or Sax, howe

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 wrote: > You can, within

Re: Dom Transformer

2013-03-15 Thread Mansour Al Akeel
I have tags with id's like: I think this can be done is Stax, xslt or Sax, however, I am trying to do it in a clean way without any hacks. Do you have any suggestion ?? On Fri, Mar 15, 2013 at 2:18 PM, gelo1234 wrote: > The question is WHY? you want DOM transformation in Cocoon environment

Re: Dom Transformer

2013-03-15 Thread Jos Snellings
You can, within a generator class, (C3), or within an xsp (C 2). Sometimes such things come in handy. If you mean, configure one from the sitemap, I see no uses. Cheers, Jos On Fri, Mar 15, 2013 at 7:05 PM, Mansour Al Akeel wrote: > I know this may sound strange, but I like to create a transf

Re: Dom Transformer

2013-03-15 Thread gelo1234
The question is WHY? you want DOM transformation in Cocoon environment ? Greetings, -Greg 2013/3/15 Mansour Al Akeel > I know this may sound strange, but I like to create a transformation with > DOM. > I was able to see Stax and Sax transformation. I was not able to see > one for DOM. > > Any