xforms:output with mediatype text/html only works if xhtml is default namespace

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

xforms:output with mediatype text/html only works if xhtml is default namespace

Ralf Jung
Hi,

to prevent confusion, I decided I should not use the default XML namespace for
anything but those simple configuration inputs in the pipelines and similar
use-cases. So I changed the xhtml prefix from (none) to "ht" (to keep it quick
to type). That's generally working fine, except for when I put such an XML
fragment, serialized, into an xforms:output with the text/html mediatype: In
this case, all the tags are stripped and only the text remains and is shown.
This applies both for the case of the initially shown content, as well as for
content loaded later via JS. As a result, I have to manually apply the qname
converter at the end of the pipeline generating that fragment. This should of
course not be necessary.

I am using Orbeon 3.9.

Kind regards,
Ralf


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: xforms:output with mediatype text/html only works if xhtml is default namespace

Ralf Jung
Hi list,

is this not the correct place to report bugs, or did this get registered
somewhere silently?

Kind regards,
Ralf

On Thursday 25 August 2011 18:25:07 Ralf Jung wrote:

> Hi,
>
> to prevent confusion, I decided I should not use the default XML namespace
> for anything but those simple configuration inputs in the pipelines and
> similar use-cases. So I changed the xhtml prefix from (none) to "ht" (to
> keep it quick to type). That's generally working fine, except for when I
> put such an XML fragment, serialized, into an xforms:output with the
> text/html mediatype: In this case, all the tags are stripped and only the
> text remains and is shown. This applies both for the case of the initially
> shown content, as well as for content loaded later via JS. As a result, I
> have to manually apply the qname converter at the end of the pipeline
> generating that fragment. This should of course not be necessary.
>
> I am using Orbeon 3.9.
>
> Kind regards,
> Ralf


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Re: xforms:output with mediatype text/html only works if xhtml is default namespace

Erik Bruchez
Administrator
Ralf,

Sorry no, this hasn't been registered. Can you send a minimal use case
showing this? That should be simple enough, right?

Thanks,

-Erik

On Sun, Sep 18, 2011 at 1:24 PM, Ralf Jung <[hidden email]> wrote:

> Hi list,
>
> is this not the correct place to report bugs, or did this get registered
> somewhere silently?
>
> Kind regards,
> Ralf
>
> On Thursday 25 August 2011 18:25:07 Ralf Jung wrote:
>> Hi,
>>
>> to prevent confusion, I decided I should not use the default XML namespace
>> for anything but those simple configuration inputs in the pipelines and
>> similar use-cases. So I changed the xhtml prefix from (none) to "ht" (to
>> keep it quick to type). That's generally working fine, except for when I
>> put such an XML fragment, serialized, into an xforms:output with the
>> text/html mediatype: In this case, all the tags are stripped and only the
>> text remains and is shown. This applies both for the case of the initially
>> shown content, as well as for content loaded later via JS. As a result, I
>> have to manually apply the qname converter at the end of the pipeline
>> generating that fragment. This should of course not be necessary.
>>
>> I am using Orbeon 3.9.
>>
>> Kind regards,
>> Ralf
>
>
> --
> You receive this message as a subscriber of the [hidden email] mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws
>
>


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: xforms:output with mediatype text/html only works if xhtml is default namespace

Ralf Jung
Hi Erik.

I attached a simple test case: The <ht:b> around "Test" is ignored. If however
I use the other instance, which uses the default namespace for HTML, it's
working fine.

Kind regards,
Ralf

On Wednesday 21 September 2011 06:24:05 Erik Bruchez wrote:

> Ralf,
>
> Sorry no, this hasn't been registered. Can you send a minimal use case
> showing this? That should be simple enough, right?
>
> Thanks,
>
> -Erik
>
> On Sun, Sep 18, 2011 at 1:24 PM, Ralf Jung <[hidden email]> wrote:
> > Hi list,
> >
> > is this not the correct place to report bugs, or did this get registered
> > somewhere silently?
> >
> > Kind regards,
> > Ralf
> >
> > On Thursday 25 August 2011 18:25:07 Ralf Jung wrote:
> >> Hi,
> >>
> >> to prevent confusion, I decided I should not use the default XML
> >> namespace for anything but those simple configuration inputs in the
> >> pipelines and similar use-cases. So I changed the xhtml prefix from
> >> (none) to "ht" (to keep it quick to type). That's generally working
> >> fine, except for when I put such an XML fragment, serialized, into an
> >> xforms:output with the text/html mediatype: In this case, all the tags
> >> are stripped and only the text remains and is shown. This applies both
> >> for the case of the initially shown content, as well as for content
> >> loaded later via JS. As a result, I have to manually apply the qname
> >> converter at the end of the pipeline generating that fragment. This
> >> should of course not be necessary.
> >>
> >> I am using Orbeon 3.9.
> >>
> >> Kind regards,
> >> Ralf
> >
> > --
> > You receive this message as a subscriber of the [hidden email] mailing
> > list. To unsubscribe: mailto:[hidden email]
> > For general help: mailto:[hidden email]?subject=help
> > OW2 mailing lists service home page: http://www.ow2.org/wws


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws

test.xhtml (733 bytes) Download Attachment