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

do you use pi's?

Subject: do you use pi's?
From: "Mark D. Anderson" <mda@xxxxxxxxxxxxxx>
Date: Sat, 3 Apr 1999 10:07:25 -0800
how to use pi
while doing my random xml hack of the week, i found myself creating
an xml instance that contained something like this:
<generator type="englishtext">
   <random_crap_to_put_at_top>
Welcome to my generated file.
   </random_crap_to_put_at_top>
</generator>

Then I had my postprocessor look at that node to determine what to do,
if in fact my output type happened to match.

This *really* felt like something that might be done with a PI, but
i've never used one before. But is there any point?
I find it really hard to arrive at a definitive criterion for what
should be in the instance, and what a PI (the example above is deliberately
sharp; others are harder). And using a PI means that the processor
(or processors, since there may be a stack) has to start treating
multiple types of nodes.

Comments? Does XML need PI's?

-mda



 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

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
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.