Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old December 11th, 2006, 06:25 PM
markbfernandez@gmail.com
Guest
 
Posts: n/a
Default xform novice help

I'm working on a simple xform, and it looks great viewing it locally.

When I upload it to my site, none of the xform tags work?

I went back and cut/paste this simple "hello world" code from <a
href="http://en.wikibooks.org/wiki/XForms/HelloWorld">wikibooks</ato
test out:
************************************************** ***
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:xf="http://www.w3.org/2002/xforms">
<head>
<title>Hello World in XForms</title>
<xf:model>
<xf:instance xmlns="">
<Data>
<PersonGivenName />
</Data>
</xf:instance>
</xf:model>
</head>
<body>
<p>Type in your first name in the input box. <br/>
If you are running XForms, the output should be displayed in
the output area.</p>
<xf:input ref="/Data/PersonGivenName" incremental="true">
<xf:label>Please enter your first name: </xf:label>
</xf:input>
<br />
<xf:output value="concat('Hello ', /Data/PersonGivenName , '.
We hope you like XForms!')">
<xf:label>Ouput: </xf:label>
</xf:output>
</body>
</html>
************************************************** **

and again, no xform stuff (except when viewed locally).

What am I missing? I've got the Mozilla XForms 0.7 extension
(obviously, or it wouldn't work locally). I thought nothing was done on
the server side?

  #2  
Old December 12th, 2006, 12:45 PM
Martin Honnen
Guest
 
Posts: n/a
Default Re: xform novice help

markbfernandez@gmail.com wrote:
Quote:
I'm working on a simple xform, and it looks great viewing it locally.
>
When I upload it to my site, none of the xform tags work?
How do you serve the document? As text/html? Consider serving as
application/xml or application/xhtml+xml so that Mozilla uses its XML
parser to parse the document.

If you still have problems then mozilla.dev.tech.xforms is a better
place to ask and find expertise on Mozilla's XForms implementation.



--

Martin Honnen
http://JavaScript.FAQTs.com/
 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles