Re: [xml] XInclude question
- From: Daniel Veillard <veillard redhat com>
- To: xml gnome org
- Cc:
- Subject: Re: [xml] XInclude question
- Date: Mon, 3 Apr 2006 18:32:58 -0400
On Mon, Apr 03, 2006 at 06:03:28PM -0400, gmxml saplings us wrote:
Daniel Veillard wrote:
On Mon, Apr 03, 2006 at 04:58:53PM -0400, gmxml saplings us wrote:
To it's own xml file, and rewite my main file as:
<gameconfig>
<TerrainTypeDefs>
<include href="terraintypes.xml">
</TerrainTypeDefs>
<gameconfig>
Where is the namespace ? Sure that example as provided will never
work as an XInclude...
http://www.w3.org/TR/xinclude/#syntax
there is also examples in many places on the web or in libxml2 test suites.
I've search for XInclude, libxml, xmlXIncludeProcess, and
xmlXIncludeProcessFlags in various combinations. Nothing helpfull was
found.
I pointed you to the spec. The spec defines the behaviour. You are not
following the spec. So don't expect the spec specified behaviour.
And all the examples I've found include the concept of working using a
URL, wheras I'm using the file system(can I simply call it
file:://g:/cygwin/home/gmort/atlantis for example).
Bzzzz You didn't understood what I said it's not about href="" it's
about <include, your include element is in no namespace it's not an
XInclude element.
You are just exposing that you don't understand what an XML namespace is
and that explain why you have troubles with XInclude, good point there
are free tutorials, but nothing replaces reading and understanding the specs.
http://www.zvon.org/xxl/NamespaceTutorial/Output/index.html
http://www.zvon.org/xxl/XIncludeTutorial/Output/introduction.html
Where is the libxml2 test suites?
in the code release under test/XInclude/docs/.
There is also canonical examples in the spec I pointed to in my previous mail
I have been reading through the code
examples and API Menu, but XInclude doesn't seem to be popular to have a
simple example or two. http://xmlsoft.org/examples/index.html
As pointed the problem is not in the code it is in your data...
Most people don't have troubles with XInclude, really.
Daniel
--
Daniel Veillard | Red Hat http://redhat.com/
veillard redhat com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]