473,757 Members | 10,736 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

xforms and CSS not in sync?

14 New Member
Can anyone tell me why my CSS style sheet isn't styling my xhtml (using xforms)? I'm using firefox 1.5.0.8 with the xforms extension.

Here is the xhtml, it's only a single text area for input.

Expand|Select|Wrap|Line Numbers
  1. <?xml version="1.0" ?>
  2.  
  3. <html xmlns="http://www.w3.org/1999/xhtml" 
  4.      xmlns:xf="http://www.w3.org/2002/xforms">
  5.     <head>
  6.       <link href="zstyle.css" rel="stylesheet"/>
  7.       <title>XForms textarea for essay</title>
  8.  
  9.       <xf:model>
  10.          <xf:instance xmlns="">
  11.                <essay>Type your essay here.</essay>
  12.          </xf:instance>
  13.       </xf:model>
  14.     </head>
  15.  
  16.     <body>Type here. <br />
  17.          <xf:textarea ref="/essay">
  18.             <xf:label></xf:label>
  19.          </xf:textarea>
  20.  
  21.     </body>
  22. </html>
And here's the style sheet.

Expand|Select|Wrap|Line Numbers
  1. @namespace html url(http://www.w3.org/1999/xhtm);
  2. @namespace xf url(http://www.w3.org/2002/xforms);
  3.  
  4. body 
  5.       { margin-left: 2em;    margin-right: 2em; 
  6.          border-width: 2em;   border-color: blue; 
  7.          background-color: gray;   color: white; 
  8.        }
  9.  
  10. textarea 
  11.       { font-family: sans-serif; 
  12.          height: 500px; width: 90%; 
  13.        }
as it is, the textarea formats to the appropriate size, but if I try to do xf|textarea, I lose the style and get the small default size.

also, the borders don't work no matter what I do. All else seems ok.
Dec 21 '06 #1
7 2123
AricC
1,892 Recognized Expert Top Contributor
I don't know much about xforms but to solve your border problem use this <element style="border: 1px solid green"
Dec 21 '06 #2
drhowarddrfine
7,435 Recognized Expert Expert
<link href="zstyle.cs s" rel="stylesheet " type="text/css" />

My XML is rusty; especially with regards to using it with xhtml.
Dec 21 '06 #3
ClarkePeters
14 New Member
I don't know much about xforms
My XML is rusty; especially with regards to using it with xhtml.
Yeah, me too. I wasn't sure whether to post here or in XML but I noticed that there are not too many responses in xml forum.
But since Xforms will soon be the future standard for Xhtml, I thought this would be a good place to post.
I need to learn Xforms because I don't want to redo my whole web application a couple years down the road, but I'm finding it's a bit tricky. There are no really good books or tutorials, they are either too basic or too extreme, and none of them help you understand how to integrate CSS or XSLT with Xhtml and Xforms.

My web app will be an open source distance education app so I hope it'll be around a while. Ok, now I'm just venting :) , must get back to work. Thanks for taking the time to respond you guys :)
Dec 21 '06 #4
AricC
1,892 Recognized Expert Top Contributor
Thanks for taking the time to respond you guys :)
We love answering questions please ask more. What are you writing this app in? PHP?
Dec 21 '06 #5
ClarkePeters
14 New Member
What are you writing this app in? PHP?
Yes, I am. You must be a mind reader :).

I want to use Xhtml, xforms, xml, and PHP (without MySQL). All data will be stored in xml files.

My problem is that I've done some basic programming and relational database building in the long past, and I am just now getting my feet wet in xml, xforms, and PHP. So I should have lots of questions and will probably be heading to the PHP forum soon. :)
Dec 21 '06 #6
AricC
1,892 Recognized Expert Top Contributor
Ronverdonk hangs out in the PHP forum he's a guru. I've been reading up on this, check it out if your wanting to do a DB PHP page with Javascript.

HTH,
Aric
Dec 22 '06 #7
ClarkePeters
14 New Member
FYI anyone who's interested, styling in xforms/css, I found this to work for my borders (this is the entire css file):
Expand|Select|Wrap|Line Numbers
  1. @namespace html url(http://www.w3.org/1999/xhtm);
  2. @namespace xf url(http://www.w3.org/2002/xforms);
  3.  
  4. body 
  5.       {margin-left: 2em;   margin-right: 2em; 
  6.        border-left:solid 10px blue;    
  7.        background-color: gray;   color: white; }
  8.  
  9. textarea 
  10.       { font-family: sans-serif; height: 500px; width: 90%; }
Dec 27 '06 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

1
1785
by: Jonathan | last post by:
Does anyone know if it's possible to do the following: I currently have an XML schema set up, part of which includes an enumerated datatype (based on string) giving a list of values that I want for a particular element. Is there any way to bind this to a 'select' or 'select1' element in XForms without having to list out all the choices again on the XForm: in other words it needs to grab the values straight from the schema. Any help...
2
3624
by: Will | last post by:
I have been having problems validating an XForms document against the XForms schema located at http://www.w3.org/MarkUp/Forms/2002/XForms-Schema.xsd. I have reduced the XForm to its bare bones as follows: <?xml version="1.0" encoding="iso-8859-1"?> <xf:model xmlns:xf="http://www.w3.org/2002/xforms"> <xf:instance xmlns=""/> </xf:model>
2
1680
by: donaldevans_net | last post by:
I have a site that works well with others browsers. I'm getting complaints about IE5.2.3 that my layers are over lapping. I used XFORMS in my programming can you help me?
0
3401
by: arti | last post by:
Hi all. I have a problem/question with XForms. I have 2 instnace in my document, instance1 and instance2. <xforms:instance xmlns="" id=instance1"> .... </xforms:instance> <xforms:instance xmlns="" id=instance2">
0
1271
by: Brian | last post by:
However can ask the following questions (or provide a solution) will be dubbed hero of the year: Is it possible to generate an XForms document automatically from an XML Schema document, so that upon submission of the XForms document, an XML file will be generated that can then be validated by the aforementioned XML Schema document? (I think just about everyone agrees this is a big YES). Okay, if so, can I have a list of available...
9
2377
by: jazzslider | last post by:
I have a headache. I've done a LOT of research lately into XForms, and I am thoroughly convinced that a good implementation of this technology would help me immensely in converting my department's paper forms into interactive online systems. There are a couple of problems I'm facing that I'm hoping someone here could help with. Number one: browser support for XForms is pitiful, and I can't expect my target audience to download...
1
1744
by: spark86 | last post by:
I currently have an xform where I'm trying to have the user input first and last name and then when it submits it goes to a file with the path first_last.xml. Here is what I have currently: <xforms:model id="patientModel"> <xforms:instance id="patientInstance"> <patient xmlns=""> <fname></fname> <lname/> </patient>
2
1486
by: li72 | last post by:
Hi. I’m new to XForms society and struggling with a basic concepts. However, I’m trying to transform an xml doc into XForms using XSLT. The browser renders the Xforms just fine but there is no effect to bind element. For instance the third UI control should be rendered as a calendar because its type is xs:date However, I got a normal input box instead. Also property required= “true()” has no effect. Any help is much appreciated. Here is my...
0
1030
by: li72 | last post by:
As you can see in binding part, the node<age /> should be returned as a calendar or any form of date picker instead of an input box. In addition, none null values submission is not achieving. I defined this problem as a binding issue but I find no clue to solve it. Moreover, this example is tested on X-Smiles and firefox with plug-in as well. Your help is much appreciated Here is my xhtml doc. <?xml version="1.0" encoding="ISO-8859-1"?>...
0
9489
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9298
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10072
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9906
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8737
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7286
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6562
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
3829
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3399
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.