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

Re: Scripting and XML

  • From: Rasmus Lerdorf <rasmus@l...>
  • To: Tim Bray <tbray@t...>
  • Date: Sun, 19 Oct 1997 00:26:03 -0400 ()

Re: Scripting and XML
> At 11:50 PM 18/10/97 -0400, Rasmus Lerdorf wrote:
> >My solution, naiive as it might be, is to make hide my language inside a
> >PI tag. The XML syntax definition for this tag is:
> ...
> >So, a typical bit of code would look like:
> >  <?php
> >    $result=mysql("db","select passwd from users where id='$cookie'");
> ...
> >  ?>
> 
> The question is, do you regard your script as part of the document
> or not?  If so, you should use <![CDATA[.  If not, the PI is perfectly
> appropriate and being used exactly as designed. -Tim

I suppose that depends on what you mean by, "being part of the document".
I do not regard the script as being part of the information the document
is trying to convey.  The script can however generate output that will be
part of the final document.  But, an XML parser that understood PHP
processing instructions would be needed to grok that.  

My only real goal is to make sure that an XML parser will not spew
thousands at syntax errors at me when I run an XML file full of PHP script
tags through it.  And, if it can be parsed without errors, then I expect
that an XML authoring system would happily let people add these tags in
some sort of escaped or raw, insert your own tag, sort of mode.

-Rasmus


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!

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.