XML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreXML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old September 7th, 2004, 04:59 PM
Ace_NoOne Ace_NoOne is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Location: Germany
Posts: 6 Ace_NoOne User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 18 m
Reputation Power: 0
Question HTML form -> XML file -> PDF - How to?

Hello there,

though I'm not very experienced in the practical application of XML (I know the basics, but never really worked on a larger project), I need to develop a website that allows the user to enter some personal data (name, address etc., plus some text) for my faculty. This data should be stored in an XML file and then turned into a printer-friendly, page-based format.

So much for the idea. What I've done so far is I created an XML schema which served merely as some kinda mindmap in the first place, but now pretty much resembles the structure the XML files should have later on.
Now, what I need/learn to do is
  1. find a way to transform the inputs from the HTML form - I might use XForms, though I've never touched them so far - into an XML file (JavaScript is the only web-compatible language I know, but hardly appropriate for this task; I started on C++ a few weeks ago, but I don't think I could put it to use for this purpose yet!? So I'll probably have to build up on my very basic knowledge of PHP - is there much to learn if I just wanna use it for this single script?)
  2. find a way to make the XML file available for the user to download (shouldn't be too hard if I find a way to solve problem #1)
  3. create a style-sheet for the XML file so you get DIN A4 - i.e. 297x210mm - pages (I could do that for display in a browser, but I never tried to do printer-friendly stuff with CSS; does it actually support things like page breaks??)
  4. find a way to turn this XML file + style-sheet into a single, word processor-compatible file (a PDF should be easy to create - there's probably some open-source script out there I could use - but PDFs can't be modified; is there a way to create an .RTFor any other such format instead?)
  5. find out whether its possible to make a schema in which the attribute of an element determines which of its child elements are optional and which aren't. The idea is to create a schema for a bibliography and differentiate the different types of sources you can have. So if it's a book, you'll need fields like publisher and maybe editor - but if it's an article from a magazine, you'll need a field for the magazine's title which would be obsolete for the book though.
    I've solved this problem for now by making "book", "mag article" etc. child elements of a bibliographical entry (which in turn have only the appropriate child elements themselves), but since those are actually meta data, I'd prefer to make an attribute out of them. This would then determine which of the child elements of of a bibliographical entry (author, title, publisher, name of magazine etc.) are optional and which are to be left out - I just don't know whether or how that can be done with XML schema!?
    Since my intention might be hard to understand from that clumsy explanation, I have to small pics that should illustrate my idea (in a simplified way, of course): the way it is now and the way it should be.
I'd really appreciate if someone could give me a few hints on some of those issues!

Last edited by Ace_NoOne : September 8th, 2004 at 03:21 AM. Reason: added #5, XML schema issue

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreXML Programming > HTML form -> XML file -> PDF - How to?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
Stay green...Green IT