|
[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] external entities
here's a case where i may be extending the concept of external entities,
but i can't see why. basically i want to refer to an external entity
that is a cgi script:
<?xml version="1.0"?>
<!DOCTYPE xml [
<!ENTITY vpn SYSTEM
"http://www.xyz.com.au/internal/bin/ubcgi?PROC_NAME=vpn&VALUE=1234">
]>
<label_file>&vpn;</label_file>
there's lots of problems with this when processed by xsltproc:
http://www.xyz.com.au/internal/bin/ubcgi?PROC_NAME=vpn&MATCH=1234:1:
error: xmlParseStartTag: invalid element name
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
^
/tmp/xx.xml:7: error: Failure to process entity vpn
<label_file>&vpn;</label_file>
^
/tmp/xx.xml:7: error: Entity 'vpn' not defined
<label_file>&vpn;</label_file>
^
unable to parse /tmp/xx.xml
leaving aside the fact that i've broken some coding rules for entities,
is it possible to write an external entity that calls a cgi script?
and just to make it harder, the cgi script lives in a protected area so
i have to pass authorisation info as well....
:'(
thanks
rick
ps to relieve the confusion, vpn in this case stands for vendor product
number
all help and criticism gratefully received
begin:vcard fn:Rick Marshall n:Marshall;Rick email;internet:rjm@z... tel;cell:+61 411 287 530 x-mozilla-html:TRUE version:2.1 end:vcard
|
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
|
|||||||||

Cart








