[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Selective parsing of elements

  • From: Nicolas MONNET <nico@e...>
  • To: RJA@d...
  • Date: Fri, 23 Oct 1998 20:52:08 +0200 (MET DST)

parsing form elements


On Fri, 23 Oct 1998 RJA@d... wrote:

> Could you expand a little bit more on your requirements as its sounds quite
> like a project I'll working on.
> 
> 1. Who are you passing the tags on to, another part of the your application
> ?

Hm, nope, another XML app or HTML files/cgi/servlets

> 2. How do you want to locate the tags.  eg. do you want the name tag within
> an person ala XSL ?

Ah, well, I don't think I understand this. Do you mean, if I want to
handle element <INPUT>, do I want it only from inside <FORM></FORM> ?
Well, I don't really care.

> 3. What langugue etc are you looking.

Hm ... I don't see that as an issue?

Lemme detail this:

Well basically the idea is to have a sort of server-side includes  on
steroids. Currently, I'm using a handcrafted perl parser to do the
following:

<IF CONDITION=full FIELD=username>Print some stuff</IF>
<IF CONDITION=empty FIELD=username>Print some other stuff</IF>
<OUTPUT FIELD=username />
<INPUT TYPE=text FIELD=username />

etc ... etc ... 

and have my lib fill in the stuff.

I want to be able to add sensible tags, handle server-side form entry
verification in the template, etc. 

Now, when I want to be able to have this (or something along those lines):

<?xml version="1.0" ?>
<BODY BGCOLOR=white>
<FORM DATASOURCE="jdbc:mysql:whatever" TABLE=userlist IDCOLUMN=id>
<B BOGUS=parameter>Your name is :</B> <!-- this gets passed 'as is' -->
<INPUT FIELD=username TYPE=text REQUIRE=full /><!-- the library inserts
                                                a value field here -->
                                   
</FORM>
</BODY>

The program would handle FORM, FORM/INPUT, and pass BODY, B, and the rest
'as is', with the SAME whitespace in the tag, for example. 

Comments?

But I guess I'll go for saxon, as soon as I can understand it.


xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@i...
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To (un)subscribe, mailto:majordomo@i... the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@i... the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@i...)


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.