W3C home > Mailing lists > Public > www-forms@w3.org > December 2007

RE: embedding an XForms in XSLT

From: Philip Fennell <Philip.Fennell@bbc.co.uk>
Date: Thu, 13 Dec 2007 10:44:28 -0000
Message-ID: <FBFAE0E0B37B4148AF77509764D4BC200319265C@bbcxues11.national.core.bbc.co.uk>
To: <www-forms@w3.org>

Your problem with client-side XSLT transformations and the Mozilla
Xforms plug-in has already been described by Aaron Reed on the
dev-tech-xforms mailing list:

> There is a known problem with XSLT and XForms when done on the client.

> The explanation is here: 
> https://bugzilla.mozilla.org/show_bug.cgi?id=294612


Philip Fennell
>XSLT Developer (Content Management Culture)
>BBC Future Media & Technology
>Media Village, 201 Wood Lane London W12 7TP
>BC4 C4, Broadcast Centre
>T:     0208 0085318



From: www-forms-request@w3.org [mailto:www-forms-request@w3.org] On
Behalf Of d9357014@est.fib.upc.edu
Sent: 11 December 2007 18:36
To: www-forms@w3.org
Subject: embedding an XForms in XSLT

I try to include an XForms in a code XSLT, and send it to Firefox to
transform it.

I give you a simple example:

File prueba.xml contain trivial information...

File prueba.xsl include model in 'head' section, and a basic 'input' and
'submit' in body section.




<?xml version="1.0" encoding='ISO-8859-1'?>
<?xml-stylesheet href="prueba.xsl" type="text/xsl"?>
  <nombre>Processing an XForms in XSLT</nombre>
  <contacto>999 99 99 99 </contacto>




<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xf="http://www.w3.org/2002/xforms"  >

<xsl:output method="xml" version="2.0" encoding="UTF-8" indent="no"

<xsl:template match='/'>
  <html xmlns="http://www.w3.org/1999/xhtml"
xmlns:xf="http://www.w3.org/2002/xforms" >
 <meta content="application/xhtml+xml; charset=ISO-8859-1"
        <title>Generado con prueba.xsl</title>
                <xf:model id="datos">
                        <xf:instance xmlns="">
                        <xf:submission action="http://localhost"

        <xsl:copy-of select='.'/>
        <h1> <xsl:apply-templates /> </h1>
        <xf:input ref="nom" model="datos">

I process with xsltproc:

> xsltproc -o prueba.xhtml  prueba.xml 

If I try to open file prueba.xhtml with Firefox, i can see the format of

But... If i try to open prueba.xml with Firefox, model XForms is not
recognized. Then, information in <nom> is not displayed in input XForms.
And submission button not send you to anywhere...

It is possible embedd XForms in XSLT? Or exists any problem with Firefox
to understand this?

It is only an example, but it is sufficient to explain problems i have
to embedd XForms in a XSLT. 

I hope you see that it works well if we use before xsltproc to create an
XHTML file. But Firefox can't do it, or not understand de XFORMS model
into <stylesheet>.

Note: sorry, i don't write good English language...

This e-mail (and any attachments) is confidential and may contain personal views which are not the views of the BBC unless specifically stated.
If you have received it in error, please delete it from your system.
Do not use, copy or disclose the information in any way nor act in reliance on it and notify the sender immediately.
Please note that the BBC monitors e-mails sent or received.
Further communication will signify your consent to this.
Received on Thursday, 13 December 2007 10:44:45 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:36:21 UTC