E
el_bandido
Hello,
I've tried the FAQ and some minutes in googl'ing but was not happy with
what I got. Basically I'd like to get a _simple_ example on how I could
create a web based (portable across all platforms and applications) form
for a simple web application using XML technologies.
I would like to have something like follows:
An XML DB containing that looks roughly like follows:
<?xml version="1.0" encoding="UTF-8"?>
<!-- my foobar DB --!>
<MY_FOORBAR_DB>
<ITEM title="../aaa/bbb.ext">
<KEYWORDS> Credite, Pisones, isti, tabulae, fore </KEYWORDS>
</ITEM>
<ITEM title="../ccc/aaa.ext">
<KEYWORDS> librum, persimilem, cuius, uelut, aegri </KEYWORDS>
</ITEM>
<ITEM title="../bbb/aaa.ext">
<KEYWORDS> somnia, uanae, fingentur, species, ut, nec </KEYWORDS>
</ITEM>
<ITEM title="../ddd/bbb.ext">
<KEYWORDS> pes, nec, caput, uni, reddatur, formae </KEYWORDS>
</ITEM>
</MY_FOOBAR_DB>
An index.xml which would basically be like an index.html with a query
form and a SUBMIT button as input type like follows:
Please enter keywords to search: _________________________ [SUBMIT]
Which would then create an appropriate XSLT file (using the keywords as
search parameters) _and_ call the XML DB with it, resulting in the
display of the selected ITEMS which contain the AND and OR match of the
submitted keywords.
In a second stage I'd like to add a form which takes an ITEM and a
variable amount of KEYWORDSs and adds it to the XML DB dynamically, when
hitting SUBMIT.
I know that I can do this with perl, python, bash, c, <insert other no
portable languages> but I thought that using a meta language would be an
interesting approach to solve this problem. Unfortunately I have not
found a simple enough example that would show me the solution to this
problem.
Basic questions for me right now (until I get the picture) are:
1. Can XML & XSLT be used to generate persistent files using IIS or
apaches as web servers and firefox or IE as clients?
2. Is regexp possible with XSLT?
3. How are Unicode characters passed as arguments to the XSLT processor?
Best regards,
Roberto Nibali, ratz
I've tried the FAQ and some minutes in googl'ing but was not happy with
what I got. Basically I'd like to get a _simple_ example on how I could
create a web based (portable across all platforms and applications) form
for a simple web application using XML technologies.
I would like to have something like follows:
An XML DB containing that looks roughly like follows:
<?xml version="1.0" encoding="UTF-8"?>
<!-- my foobar DB --!>
<MY_FOORBAR_DB>
<ITEM title="../aaa/bbb.ext">
<KEYWORDS> Credite, Pisones, isti, tabulae, fore </KEYWORDS>
</ITEM>
<ITEM title="../ccc/aaa.ext">
<KEYWORDS> librum, persimilem, cuius, uelut, aegri </KEYWORDS>
</ITEM>
<ITEM title="../bbb/aaa.ext">
<KEYWORDS> somnia, uanae, fingentur, species, ut, nec </KEYWORDS>
</ITEM>
<ITEM title="../ddd/bbb.ext">
<KEYWORDS> pes, nec, caput, uni, reddatur, formae </KEYWORDS>
</ITEM>
</MY_FOOBAR_DB>
An index.xml which would basically be like an index.html with a query
form and a SUBMIT button as input type like follows:
Please enter keywords to search: _________________________ [SUBMIT]
Which would then create an appropriate XSLT file (using the keywords as
search parameters) _and_ call the XML DB with it, resulting in the
display of the selected ITEMS which contain the AND and OR match of the
submitted keywords.
In a second stage I'd like to add a form which takes an ITEM and a
variable amount of KEYWORDSs and adds it to the XML DB dynamically, when
hitting SUBMIT.
I know that I can do this with perl, python, bash, c, <insert other no
portable languages> but I thought that using a meta language would be an
interesting approach to solve this problem. Unfortunately I have not
found a simple enough example that would show me the solution to this
problem.
Basic questions for me right now (until I get the picture) are:
1. Can XML & XSLT be used to generate persistent files using IIS or
apaches as web servers and firefox or IE as clients?
2. Is regexp possible with XSLT?
3. How are Unicode characters passed as arguments to the XSLT processor?
Best regards,
Roberto Nibali, ratz