[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Selective parsing of 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! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|