[phpXML] Re: [phpXML] Re: [phpXML] miss-match
Brought to you by:
bs_php,
nigelswinson
From: <ph...@pe...> - 2001-10-08 16:31:03
|
On Wednesday 04 July 2001 22:01, you wrote: > I was initially thrown off by the 'trivialness' of the example but when I > look at how you intend to process the file it seems to cry out for a > different structure altogether. > > Is it not true that _if_ there are children _then_ the children should > stand as elements of the parent? ((then the other 'content' is/are really > attributes of the parent)) > > That would say to me that the example being discussed could (should?) > better be constructed like > > <blah1 precursor="Text" postcursor="text."> > <blah2>more</blah2> > </blah> > > Wouldn't that be more parallel to the processing that you intend to do to > the file? > > my 2cents > Tom the whole point of xml/xsl/etc is that it separates content from processing. One xml file can be processed in any number of different ways. If a processor, whether it be phpxml or anything else, can only handle files in a certain format, then it is of limited use. A general-purpose xml evaluator like phpxml _must_ be able to handle any valid xml file. If you want a non-trivial example, download any of the xml or xhtml TRs from W3C, then use Michael's nice little XPath Testing Environment script to evaluate it. You will soon see what the problem is. If you now tell the folk at W3C they should rewrite their documents so phpxml can handle them, I doubt whether you'll get a printable reply! -- This message has been sent through the <phpXML/> user discussion list. To unsubscribe, please visit https://sslsites.de/mailinglisten/user/us...@li.../ |