|
|
| Adam FLinton 2005-10-13, 6:29 pm |
| Dear All,
I have a simple form :
<?xml version="1.0" encoding="utf-8"?>
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:xf="http://www.w3.org/2002/xforms"
xmlns:ev="http://www.w3.org/2001/xml-events">
<head>
<!-- <script type="text/javascript"
src="./FormFaces/formfaces.js"></script> -->
<xf:model>
<xf:instance>
<Data>
<CurrentFile>
file://D:/Data/Blarrrrg
</CurrentFile>
<File/>
<File/>
</Data>
</xf:instance>
</xf:model>
</head>
<body>
<xf:output ref="/Data/CurrentFile">
<xf:label>Internal model Current file filename: </xf:label>
</xf:output>
</body>
</html>
If I test with formcases then I get my output. If I test with firefox
1.5 beta 2 + the new xpi I get just the label printed out.
Also is there any rhyme or reason to using upload as with Moz I get the
textbox & a browse button but with Novell & Formfaces I just get the
upload button. Does anyone anywhere keep a list of the Xform specs &
which parsers implement which parts?
Adam
| |
| Andrew Douglas 2005-10-13, 6:29 pm |
| The problem here is that your instance data is inside the xforms namespace.
if you change it to:
<Data xmlns="">
it'll reset it's namespace (don't know if that's the correct terminology
:) ) and the xpath statement in your ref attribute will work like a charm.
About the file upload controls - all I can say is that the standard doesn't
say how the control should look.. ideally the implementations will allow
styling of the control to your heart's content.. though that's not quite the
reality.. yet.
-Andrew
"Adam FLinton" <No_spam_please@softfab.com> wrote in message
news:dilgcl$le91@ripley.aoltw.net...
> Dear All,
>
> I have a simple form :
>
> <?xml version="1.0" encoding="utf-8"?>
>
> <html xmlns="http://www.w3.org/1999/xhtml"
> xmlns:xf="http://www.w3.org/2002/xforms"
> xmlns:ev="http://www.w3.org/2001/xml-events">
>
> <head>
>
> <!-- <script type="text/javascript"
> src="./FormFaces/formfaces.js"></script> -->
> <xf:model>
>
> <xf:instance>
> <Data>
> <CurrentFile>
> file://D:/Data/Blarrrrg
> </CurrentFile>
> <File/>
> <File/>
> </Data>
> </xf:instance>
> </xf:model>
>
> </head>
> <body>
> <xf:output ref="/Data/CurrentFile">
> <xf:label>Internal model Current file filename: </xf:label>
> </xf:output>
>
> </body>
> </html>
>
>
> If I test with formcases then I get my output. If I test with firefox 1.5
> beta 2 + the new xpi I get just the label printed out.
>
> Also is there any rhyme or reason to using upload as with Moz I get the
> textbox & a browse button but with Novell & Formfaces I just get the
> upload button. Does anyone anywhere keep a list of the Xform specs & which
> parsers implement which parts?
>
> Adam
| |
| Adam FLinton 2005-10-13, 6:29 pm |
| Andrew Douglas wrote:
> The problem here is that your instance data is inside the xforms namespace.
> if you change it to:
> <Data xmlns="">
> it'll reset it's namespace (don't know if that's the correct terminology
> :) ) and the xpath statement in your ref attribute will work like a charm.
>
> About the file upload controls - all I can say is that the standard doesn't
> say how the control should look.. ideally the implementations will allow
> styling of the control to your heart's content.. though that's not quite the
> reality.. yet.
>
Cheers....
BTW (& I'm asking this in a separate in a separate mail)...
Is is possible to set the width of the textbox in the upload component?
TIA
Adam
|
|
|
|
| Copyright 2003 - 2008 forum4designers.com Software forum Computer Hardware reviews |