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

external entities

  • To: xml-dev@l...
  • Subject: external entities
  • From: Rick Marshall <rjm@z...>
  • Date: Thu, 10 Feb 2005 10:59:41 +1100
  • Organization: Zenucom Pty Ltd
  • User-agent: Mozilla Thunderbird 0.6 (X11/20040502)

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&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@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!

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.