[ops-user] repeat and formatting

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

[ops-user] repeat and formatting

marc.natale
Hi,

I have 3 files:
an xml file,
an xslt one which enables to display the xml file with the tags <p>, <div>...
and another xsl file in which I use xform.

In the last file, I have:

<xforms:instance id="main-instance">xforms:instance id="main-instance">
<form xmlns="">
 <tag>
  <xsl:copy-of select="doc('input:instance')/*/affichage"/> <!-- data from the second file -->
 </tag>
</form>
</xforms:instance>
 
what I want to do is displaying what is inside <tag>, while keeping the nice display with <p>, <div>...
 
I have tried using the <xforms:output>, but the text that is displayed doesn't take into account the formatting I used in the 2nd xsl file...
Is there any easy way to do that?
 
Regards,
Marc


--
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: [ops-user] repeat and formatting

Alessandro  Vernet
Administrator
Hi Marc,

Are you using the attribute appearance="xxforms:html" on the
<xforms:output> element? Also, you need to have serialized HTML in the
node bound to the <xforms:output> control. So in your XSLT where you
are building the instance, you would need to use something like
saxon:serialize(doc('input:instance')/*/affichage , 'html').

Alex

On 9/1/05, Marc Natale <[hidden email]> wrote:

> Hi,
>
> I have 3 files:
> an xml file,
> an xslt one which enables to display the xml file with the tags <p>,
> <div>...
> and another xsl file in which I use xform.
>
> In the last file, I have:
>
> <xforms:instance id="main-instance">xforms:instance
> id="main-instance">
> <form xmlns="">
>  <tag>
>   <xsl:copy-of select="doc('input:instance')/*/affichage"/>
> <!-- data from the second file -->
>  </tag>
> </form>
> </xforms:instance>
>  
> what I want to do is displaying what is inside <tag>, while keeping the nice
> display with <p>, <div>...
>  
> I have tried using the <xforms:output>, but the text that is displayed
> doesn't take into account the formatting I used in the 2nd xsl file...
> Is there any easy way to do that?
>  
> Regards,
> Marc
>
> --
> 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
> ObjectWeb mailing lists service home page: http://www.objectweb.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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet