Re: Dom Transformer

Javier Puerto <[email protected]>
Newsgroups gmane.text.xml.cocoon.user
Message-ID <CAACZMNdOyvdSmRXLnnyT9OKuKmGRnavRZB-2WAYG343ALpiD+Q@mail.gmail.com>
2013/3/15 Javier Puerto <[email protected]>

>
>
> 2013/3/15 Mansour Al Akeel <[email protected]>
>
>> 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 <[email protected]> wrote:
>> > The question is WHY? you want DOM transformation in Cocoon environment ?
>> >
>> > Greetings,
>> > -Greg
>> >
>> >
>> > 2013/3/15 Mansour Al Akeel <[email protected]>
>> >>
>> >> 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: [email protected]
>> >> For additional commands, e-mail: [email protected]
>> >>
>> >
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [email protected]
>> For additional commands, e-mail: [email protected]
>>
>>
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.