OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   external entities

[ Lists Home | Date Index | Thread Index ]
  • To: xml-dev@lists.xml.org
  • Subject: external entities
  • From: Rick Marshall <rjm@zenucom.com>
  • Date: Thu, 10 Feb 2005 10:59:41 +1100
  • Organization: Zenucom Pty Ltd
  • User-agent: Mozilla Thunderbird 0.6 (X11/20040502)

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&amp;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&amp;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@zenucom.com
tel;cell:+61 411 287 530
x-mozilla-html:TRUE
version:2.1
end:vcard





 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS