Thanks for this , I will try.

To explain the context :

I have a woody form, when completed , I send a success page.
This success page is a JX page which allow me to retrieve woody content,...

In this JX page, I use a <jx:import src="" . The purpose of this line is load html content into my success page.

In this html we retrieve some JX parameters that have to be replace by JX Transformer
e.g.  :  <H1> Dear  {$firstname} {$lastname}  </H1> ==========JX TRANSFORMATION ==============> <H1> Laurent Rorive </H1>

Unfortunately, I have no control on this HTML because it is entered dynamically by  "administrator" with a web editor . and in there there can be &nbsp; .... and any other special characters.

(Further more all this is coupled with Aggregate and I18n but what ever)

What I want to do is create a kind of parsing of my HTML to remove the entities and format correctly the <IMG > ... then send it to the JX Transformer.

Any other idea ?

Laurent



Upayavira <[EMAIL PROTECTED]>

22/04/2004 19:25
Please respond to users

       
        To:        [EMAIL PROTECTED]
        cc:        
        Subject:        Re: Transofrmer from Invalid HTML to XHTML or XML



[EMAIL PROTECTED] wrote:

>
> Dear Upayavira,
>
> this is not a question of generator but more a question of serializer
> I think

Well, what you want to do is use the HTMLGenerator to read in the HTML,
and then serialize it as XML or as XHTML. You can't serialize HTML
directly, as you can't use it within a pipeline because it isn't valid
XML. Therefore you convert it to valid XML with the HTMLGenerator, then
serialize it.

Hope that makes sense.

Upayavira

>
>
>
>
>                  *Upayavira <[EMAIL PROTECTED]>*
>
> 22/04/2004 10:42
> Please respond to users
>
>                        
>         To:        [EMAIL PROTECTED]
>         cc:        
>         Subject:        Re: Transofrmer from Invalid HTML to XHTML or XML
>
>
>
>
> [EMAIL PROTECTED] wrote:
>
> >
> > Dear Members,
> >
> > I have some HTML with special characters as &nbsp;  <IMG  > .... that
> > I want to save as valid XML or XHTML.
>
> Look at the HTMLGenerator in the HTML block.
>
> Upayavira
>
>
>
> ---------------------------------------------------------------------
> 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]


Reply via email to