You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Mansour Al Akeel <ma...@gmail.com> on 2013/03/15 19:05:46 UTC

Dom Transformer

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 advice ?? Examples ??

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


RE: Dom Transformer

Posted by Robby Pelssers <Ro...@nxp.com>.
Exactly…  I don’t have the full picture here but if you provide a small input file and expected output file we might come up with an easier solution.  I still am not seeing why XSLT can’t get the job done but I hope your input will make this obvious.

Robby

From: gelo1234 [mailto:gelo1234@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 Akeel <ma...@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. Like,

<xref href="the-section-title-with-dashes-only" > My Link Label</xref>

And

The anchor

<some-section-tag id='the-section-title-with-dashes-only" .... >

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 <ge...@gmail.com>> wrote:
> The question is WHY? you want DOM transformation in Cocoon environment ?
>
> Greetings,
> -Greg
>
>
> 2013/3/15 Mansour Al Akeel <ma...@gmail.com>>
>>
>> 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 advice ?? Examples ??
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org<ma...@cocoon.apache.org>
>> For additional commands, e-mail: users-help@cocoon.apache.org<ma...@cocoon.apache.org>
>>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org<ma...@cocoon.apache.org>
For additional commands, e-mail: users-help@cocoon.apache.org<ma...@cocoon.apache.org>


Re: Dom Transformer

Posted by gelo1234 <ge...@gmail.com>.
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 <ma...@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.
> Like,
>
> <xref href="the-section-title-with-dashes-only" > My Link Label</xref>
>
> And
>
> The anchor
>
> <some-section-tag id='the-section-title-with-dashes-only" .... >
>
> 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 <ge...@gmail.com> wrote:
> > The question is WHY? you want DOM transformation in Cocoon environment ?
> >
> > Greetings,
> > -Greg
> >
> >
> > 2013/3/15 Mansour Al Akeel <ma...@gmail.com>
> >>
> >> 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 advice ?? Examples ??
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> >> For additional commands, e-mail: users-help@cocoon.apache.org
> >>
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
>

Re: Dom Transformer

Posted by Javier Puerto <jp...@gmail.com>.
2013/3/15 Javier Puerto <jp...@gmail.com>

>
>
> 2013/3/15 Mansour Al Akeel <ma...@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.
>> Like,
>>
>> <xref href="the-section-title-with-dashes-only" > My Link Label</xref>
>>
>> And
>>
>> The anchor
>>
>> <some-section-tag id='the-section-title-with-dashes-only" .... >
>>
>> 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.xmap:
>
> <map:transform src="resources/xslt/uuid2title.xsl"/>
>
> And create an xslt file that maches the elements you want to change
> uuid2title.xsl
>
> <xsl:template match="some-section-tag/@id">
>   <xsl:attribute name="id">
>     <xsl:value-of select="replace([your tile node xpath], " ", "")"/>
>   </xsl:attribute>
> </xsl:template>
>

Fixed expression :)

<xsl:value-of select="replace([your tile node xpath], ' ', '-')"/>
Translate the white spaces to dashes.



>
> I hope that helps, I've not tested it. With SAX and StAX it's similar but
> written in java, you have to locate the element you are looking for and
> replace the attribute with the new one. Most times XSLT is enough, SAX and
> StAX is used if you have to do some business logic.
>
> DOM is not good idea because is not event based and Cocoon pipeline is
> based on XML events so to work with DOM you have to do double work,
> transform to DOM and generate SAX or StAX events later to hook the pipeline.
>
> Salu2.
>
>
>>
>>
>>
>> On Fri, Mar 15, 2013 at 2:18 PM, gelo1234 <ge...@gmail.com> wrote:
>> > The question is WHY? you want DOM transformation in Cocoon environment ?
>> >
>> > Greetings,
>> > -Greg
>> >
>> >
>> > 2013/3/15 Mansour Al Akeel <ma...@gmail.com>
>> >>
>> >> 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 advice ?? Examples ??
>> >>
>> >> ---------------------------------------------------------------------
>> >> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>> >> For additional commands, e-mail: users-help@cocoon.apache.org
>> >>
>> >
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>> For additional commands, e-mail: users-help@cocoon.apache.org
>>
>>
>

Re: Dom Transformer

Posted by Javier Puerto <jp...@gmail.com>.
2013/3/15 Mansour Al Akeel <ma...@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.
> Like,
>
> <xref href="the-section-title-with-dashes-only" > My Link Label</xref>
>
> And
>
> The anchor
>
> <some-section-tag id='the-section-title-with-dashes-only" .... >
>
> 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.xmap:

<map:transform src="resources/xslt/uuid2title.xsl"/>

And create an xslt file that maches the elements you want to change
uuid2title.xsl

<xsl:template match="some-section-tag/@id">
  <xsl:attribute name="id">
    <xsl:value-of select="replace([your tile node xpath], " ", "")"/>
  </xsl:attribute>
</xsl:template>

I hope that helps, I've not tested it. With SAX and StAX it's similar but
written in java, you have to locate the element you are looking for and
replace the attribute with the new one. Most times XSLT is enough, SAX and
StAX is used if you have to do some business logic.

DOM is not good idea because is not event based and Cocoon pipeline is
based on XML events so to work with DOM you have to do double work,
transform to DOM and generate SAX or StAX events later to hook the pipeline.

Salu2.


>
>
>
> On Fri, Mar 15, 2013 at 2:18 PM, gelo1234 <ge...@gmail.com> wrote:
> > The question is WHY? you want DOM transformation in Cocoon environment ?
> >
> > Greetings,
> > -Greg
> >
> >
> > 2013/3/15 Mansour Al Akeel <ma...@gmail.com>
> >>
> >> 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 advice ?? Examples ??
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> >> For additional commands, e-mail: users-help@cocoon.apache.org
> >>
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
>

Re: Dom Transformer

Posted by Javier Puerto <jp...@gmail.com>.
2013/3/15 Javier Puerto <jp...@gmail.com>

>
>
> 2013/3/15 Mansour Al Akeel <ma...@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.
>> Like,
>>
>> <xref href="the-section-title-with-dashes-only" > My Link Label</xref>
>>
>> And
>>
>> The anchor
>>
>> <some-section-tag id='the-section-title-with-dashes-only" .... >
>>
>> 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:
> sitemap.xmap
>
>
Sorry, the message was sent by error before the example was finished. :)





>
>
>

>
>>
>>
>>
>> On Fri, Mar 15, 2013 at 2:18 PM, gelo1234 <ge...@gmail.com> wrote:
>> > The question is WHY? you want DOM transformation in Cocoon environment ?
>> >
>> > Greetings,
>> > -Greg
>> >
>> >
>> > 2013/3/15 Mansour Al Akeel <ma...@gmail.com>
>> >>
>> >> 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 advice ?? Examples ??
>> >>
>> >> ---------------------------------------------------------------------
>> >> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>> >> For additional commands, e-mail: users-help@cocoon.apache.org
>> >>
>> >
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>> For additional commands, e-mail: users-help@cocoon.apache.org
>>
>>
>

Re: Dom Transformer

Posted by Javier Puerto <jp...@gmail.com>.
2013/3/15 Mansour Al Akeel <ma...@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.
> Like,
>
> <xref href="the-section-title-with-dashes-only" > My Link Label</xref>
>
> And
>
> The anchor
>
> <some-section-tag id='the-section-title-with-dashes-only" .... >
>
> 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:

sitemap.xmap

<map:transform src="resources/xslt/page2html.xsl">
<map:parameter name="language" value="{locale:1}"/><map:parameter
name="dojoVersion" value="{global:ch.sobu.dojo.version}"/><map:parameter
name="staticBaseUri" value="{global:proxy.static}"/><map:parameter
name="publicBaseUri" value="{global:proxy.public}"/><map:parameter
name="env" value="{global:ch.sobu.build.env}"/><map:parameter
name="version" value="{global:ch.sobu.build.version}"/></map:transform>


>
>
>
> On Fri, Mar 15, 2013 at 2:18 PM, gelo1234 <ge...@gmail.com> wrote:
> > The question is WHY? you want DOM transformation in Cocoon environment ?
> >
> > Greetings,
> > -Greg
> >
> >
> > 2013/3/15 Mansour Al Akeel <ma...@gmail.com>
> >>
> >> 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 advice ?? Examples ??
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> >> For additional commands, e-mail: users-help@cocoon.apache.org
> >>
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
>

Re: Dom Transformer

Posted by "Mark H. Wood" <mw...@IUPUI.Edu>.
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 makes sense. Like,
> 
> <xref href="the-section-title-with-dashes-only" > My Link Label</xref>
> 
> And
> 
> The anchor
> 
> <some-section-tag id='the-section-title-with-dashes-only" .... >
> 
> 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 whole document around for
random access. :-) But have you considered xsl:key?  It sound like you
want to accumulate a symbol table and fetch useful properties of the
symbols when you see them again.

I'm only brainstorming here.  I haven't yet used xsl:key myself.  But
if I don't expose my ignorance once in a while, I'll never learn. :-)
If you find my suggestion helpful, I'd like to see how you used it.

-- 
Mark H. Wood, Lead System Programmer   mwood@IUPUI.Edu
There's an app for that:  your browser

Re: Dom Transformer

Posted by Mansour Al Akeel <ma...@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. Like,

<xref href="the-section-title-with-dashes-only" > My Link Label</xref>

And

The anchor

<some-section-tag id='the-section-title-with-dashes-only" .... >

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 <ge...@gmail.com> wrote:
> The question is WHY? you want DOM transformation in Cocoon environment ?
>
> Greetings,
> -Greg
>
>
> 2013/3/15 Mansour Al Akeel <ma...@gmail.com>
>>
>> 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 advice ?? Examples ??
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>> For additional commands, e-mail: users-help@cocoon.apache.org
>>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: Dom Transformer

Posted by gelo1234 <ge...@gmail.com>.
The question is WHY? you want DOM transformation in Cocoon environment ?

Greetings,
-Greg


2013/3/15 Mansour Al Akeel <ma...@gmail.com>

> 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 advice ?? Examples ??
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
>

RE: Dom Transformer

Posted by Robby Pelssers <Ro...@nxp.com>.
So we all agree on a SAX transformer :)

From: gelo1234 [mailto:gelo1234@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 <jo...@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 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 somefilter that records SAX-elements, but do not remember exactly what problem that solved, just that it worked.
- it is possible to trap SAX-events and feed them into a JDom object.
  (I mean, if nothing else works).

Cheers,
Jos








On Fri, Mar 15, 2013 at 8:01 PM, Mansour Al Akeel <ma...@gmail.com>> wrote:
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
<jo...@upperware.biz>> wrote:
> 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
> <ma...@gmail.com>> wrote:
>>
>> 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 advice ?? Examples ??
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org<ma...@cocoon.apache.org>
>> For additional commands, e-mail: users-help@cocoon.apache.org<ma...@cocoon.apache.org>
>>
>
>
>
> --
> All generous minds have a horror of what are commonly called "Facts". They
> are the brute beasts of the intellectual domain.
> -- Thomas Hobbes

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org<ma...@cocoon.apache.org>
For additional commands, e-mail: users-help@cocoon.apache.org<ma...@cocoon.apache.org>



--
All generous minds have a horror of what are commonly called "Facts". They are the brute beasts of the intellectual domain.
-- Thomas Hobbes


Re: Dom Transformer

Posted by gelo1234 <ge...@gmail.com>.
Seems reasonable. Although its a bit awkward idea.

Simplicity is the key ;)

Greetings,
-Greg


2013/3/15 Jos Snellings <jo...@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 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 somefilter that records SAX-elements,
> but do not remember exactly what problem that solved, just that it worked.
> - it is possible to trap SAX-events and feed them into a JDom object.
>   (I mean, if nothing else works).
>
> Cheers,
> Jos
>
>
>
>
>
>
>
>
>
>
> On Fri, Mar 15, 2013 at 8:01 PM, Mansour Al Akeel <
> mansour.alakeel@gmail.com> wrote:
>
>> 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
>> <jo...@upperware.biz> wrote:
>> > 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
>> > <ma...@gmail.com> wrote:
>> >>
>> >> 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 advice ?? Examples ??
>> >>
>> >> ---------------------------------------------------------------------
>> >> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>> >> For additional commands, e-mail: users-help@cocoon.apache.org
>> >>
>> >
>> >
>> >
>> > --
>> > All generous minds have a horror of what are commonly called "Facts".
>> They
>> > are the brute beasts of the intellectual domain.
>> > -- Thomas Hobbes
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>> For additional commands, e-mail: users-help@cocoon.apache.org
>>
>>
>
>
> --
> All generous minds have a horror of what are commonly called "Facts". They
> are the brute beasts of the intellectual domain.
> -- Thomas Hobbes
>  <http://www.brainyquote.com/quotes/quotes/t/thomashobb118630.html>
>

Re: Dom Transformer

Posted by Jos Snellings <jo...@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 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 somefilter that records SAX-elements,
but do not remember exactly what problem that solved, just that it worked.
- it is possible to trap SAX-events and feed them into a JDom object.
  (I mean, if nothing else works).

Cheers,
Jos










On Fri, Mar 15, 2013 at 8:01 PM, Mansour Al Akeel <mansour.alakeel@gmail.com
> wrote:

> 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
> <jo...@upperware.biz> wrote:
> > 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
> > <ma...@gmail.com> wrote:
> >>
> >> 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 advice ?? Examples ??
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> >> For additional commands, e-mail: users-help@cocoon.apache.org
> >>
> >
> >
> >
> > --
> > All generous minds have a horror of what are commonly called "Facts".
> They
> > are the brute beasts of the intellectual domain.
> > -- Thomas Hobbes
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
>


-- 
All generous minds have a horror of what are commonly called "Facts". They
are the brute beasts of the intellectual domain.
-- Thomas Hobbes
 <http://www.brainyquote.com/quotes/quotes/t/thomashobb118630.html>

Re: Dom Transformer

Posted by Mansour Al Akeel <ma...@gmail.com>.
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
<jo...@upperware.biz> wrote:
> 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
> <ma...@gmail.com> wrote:
>>
>> 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 advice ?? Examples ??
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>> For additional commands, e-mail: users-help@cocoon.apache.org
>>
>
>
>
> --
> All generous minds have a horror of what are commonly called "Facts". They
> are the brute beasts of the intellectual domain.
> -- Thomas Hobbes

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: Dom Transformer

Posted by Jos Snellings <jo...@upperware.biz>.
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 <mansour.alakeel@gmail.com
> wrote:

> 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 advice ?? Examples ??
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
>


-- 
All generous minds have a horror of what are commonly called "Facts". They
are the brute beasts of the intellectual domain.
-- Thomas Hobbes
 <http://www.brainyquote.com/quotes/quotes/t/thomashobb118630.html>