SitePoint Sponsor

User Tag List

Results 1 to 6 of 6

Thread: XForms/XSLT/...

  1. #1
    SitePoint Guru momos's Avatar
    Join Date
    Apr 2004
    Location
    Belgium
    Posts
    920
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    XForms/XSLT/...

    Okay, we are using xhtml-tags in XSLT, it's totally logical if we are trying to transform an XML-file to a XHTML-file. But what about XFORMS, you're just obligated (as far as I know that is) to use it inside xhtml, which screws up your totally neat markup, with an external CSS-file and an external ECMAScript-file...
    Shouldn't it be possible to create an external XForms-file?

  2. #2
    ☆★☆★ silver trophy vgarcia's Avatar
    Join Date
    Jan 2002
    Location
    in transition
    Posts
    21,236
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by momos
    screws up your totally neat markup
    What's so "dirty" about XForms markup? XML is XML. If you really want it to be all XHTML output, transform your XForms with XSLT.

  3. #3
    SitePoint Guru momos's Avatar
    Join Date
    Apr 2004
    Location
    Belgium
    Posts
    920
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by vgarcia
    What's so "dirty" about XForms markup? XML is XML. If you really want it to be all XHTML output, transform your XForms with XSLT.
    But wouldn't it be nice to be able to say eg:

    HTML Code:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
    	"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" >
      <head>
    	<title>Example</title>
      </head>
      <body>
    	<LinkToForm src="form.xforms" title="The registration-form" />  
      </body>
    </html>
    The "model" could be in the same file, like you have a "head" and a "body" section in xhtml you could have eg a model and form section in xforms, and it would make your markup a lot easier to read...

    And an other thing, RDF can be placed in an external file, and that is xml too!

  4. #4
    Currently Occupied; Till Sunda Andrew-J2000's Avatar
    Join Date
    Aug 2001
    Location
    London
    Posts
    2,475
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Browsers do not currently implement Xforms without a third party extension. If you really want to implement Xforms, you may want to see (DENG Modular XML Browser, [examples]), however this brings the problems of flash to the picture. Alternatively, you can parse XML on the server-side and transform Xforms into standard xhtml forms.

    With regard to including documents, you may want to refer to xml & linking..
    Quote Originally Posted by momos
    Okay, we are using xhtml-tags in XSLT, it's totally logical if we are trying to transform an XML-file to a XHTML-file. But what about XFORMS, you're just obligated (as far as I know that is) to use it inside xhtml, which screws up your totally neat markup, with an external CSS-file and an external ECMAScript-file...
    Shouldn't it be possible to create an external XForms-file?

    And an other thing, RDF can be placed in an external file, and that is xml too!
    I find this a little confusing? Your also obligated to use HTML Forms and controls to interact with an agent for processing, how does this differ from Xforms? Also how does this affect markup? What has CSS and ECMAScript got to do with this? It is possible (See links above), but browsers haven't caught up...

    RDF can be placed linear or external this makes no difference?

  5. #5
    ☆★☆★ silver trophy vgarcia's Avatar
    Join Date
    Jan 2002
    Location
    in transition
    Posts
    21,236
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by momos

    The "model" could be in the same file, like you have a "head" and a "body" section in xhtml you could have eg a model and form section in xforms, and it would make your markup a lot easier to read...

    And an other thing, RDF can be placed in an external file, and that is xml too!
    RDF is an alternate format for consumption (it says so right there in the <link> tag on my website). A form typically has no alternate, it's just there.

  6. #6
    SitePoint Guru momos's Avatar
    Join Date
    Apr 2004
    Location
    Belgium
    Posts
    920
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Andrew-J2000
    Your also obligated to use HTML Forms and controls to interact with an agent for processing, how does this differ from Xforms?
    It's all still nice and readible when your form is eg: 3 textboxes, a checkbox and a dropdown, but when your starting with really complex forms, wouldn't your XHTML-file (and Xform) be better readible is you would be able to put them in separate files?


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •