Re: [PHP-XML-DEV] XInclude and DOM
[email protected] ("Rob Richards") Tue, 6 Jan 2004 16:15:31 -0500
| Newsgroups | php.xml.dev |
|---|---|
| Message-ID | <[email protected]> |
From: Adam Trachtenberg > But I can't say I've spend much time mucking around with XInclude, most > of my XML include use is Schema includes. Havent played with XInclude until now either, thus my question on how to handle it :) > What does the major Java, Perl, Python extensions do here? Maybe the > best behavior is to mimic general usage even if it's not an official > standard? From what I can tell it looks like those implemented using libxml keep them in the tree and it is up to the user to test the node type if they want to skip them when navigating, otherwise they seem to act as elements do. Upon serialization however, the xinclude nodes are removed in the output. It seems that people actually use the XML_XINCLUDE_START/END nodes so they have a reference to the included doc to perform whatever tests/operations on it. Other implementations seem to remove them and only have the rendered tree. Rob