[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] do you use pi's?
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
|
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
|