[xml] excluded from include
- From: Rick Jones <rick_jones2 hp com>
- To: xml gnome org
- Subject: [xml] excluded from include
- Date: Tue, 30 Jul 2002 13:41:14 -0700
i am clearly missing something obvious - i have looked at some of the
archive discussion on Xinclude, and i _think_ i am follwoing it
correctly, but i do not appear to be including in the following xml
file:
<?xml version="1.0"?>
<netperf xmlns="http://www.netperf.org/ns/netperf"
xmlns:nettest_bsd="http://www.netperf.org/ns/netperf/nettest_bsd"
xmlns:xi="http://www.w3.org/2001/XInclude"
<server id="1">
<host>foo.bar.baz</host>
<port>12345</port>
<family>AF_INET</family>
</server>
<server id="2">
<host>bing.fred.ethel</host>
<port>12345</port>
<family>AF_INET</family>
</server>
<test id="1">
<type>SEND_TCP_STREAM</type>
<library>libnettest_bsd.sl</library>
<companion>2</companion>
<nettest_bsd:specific>
<nettest_bsd:source>foo.bar.baz</nettest_bsd:source>
<nettest_bsd:sourcefamily>AF_INET</nettest_bsd:sourcefamily>
<nettest_bsd:sourceport>1234</nettest_bsd:sourceport>
<nettest_bsd:sndbuf>32768</nettest_bsd:sndbuf>
<nettest_bsd:rcvbuf>32768</nettest_bsd:rcvbuf>
<nettest_bsd:sendsize>4KB</nettest_bsd:sendsize>
<nettest_bsd:nodelay>0</nettest_bsd:nodelay>
<nettest_bsd:destination>bin.fred.ethel</nettest_bsd:destination>
<nettest_bsd:destport>0</nettest_bsd:destport>
<nettest_bsd:destfamily>AF_INET</nettest_bsd:destfamily>
<nettest_bsd:sendalign>8</nettest_bsd:sendalign>
<nettest_bsd:sendoffset>0</nettest_bsd:sendoffset>
</nettest_bsd:specific>
</test>
<!-- This is just another boring comment -->
<test id="2">
<type>RECV_TCP_STREAM</type>
<library>libnettest_bsd.sl</library>
<companion>1</companion>
<nettest_bsd:specific>
<nettest_bsd:source>bing.fred.ethel</nettest_bsd:source>
<nettest_bsd:sourcefamily>AF_INET</nettest_bsd:sourcefamily>
<nettest_bsd:sourceport>0</nettest_bsd:sourceport>
<nettest_bsd:sndbuf>32768</nettest_bsd:sndbuf>
<nettest_bsd:rcvbuf>32768</nettest_bsd:rcvbuf>
<nettest_bsd:recvsize>4KB</nettest_bsd:recvsize>
<nettest_bsd:recvalign>8</nettest_bsd:recvalign>
<nettest_bsd:recvoffset>0</nettest_bsd:recvoffset>
</nettest_bsd:specific>
</test>
<xi:include href="sub.xml" />
</netperf>
I anticipate that this config file for a benchmark could become very
very large (thousands of entries) and so getting include to function
could be useful.
Other things with which I am struggling include:
*) when to use attributes versus sub-entities
*) multiple DTDs or later XML schemas in a document - perhaps coming
with includes, but perhaps having a DTD specified for the "specfic"
portions of the test element. i am hoping to have this benchmark be
rather "plugin" and not necessarily require someone to edit a main DTD
file each time to specify additional DTD's when the add a new test
suite.
rick jones
--
Wisdom Teeth are impacted, people are affected by the effects of events.
these opinions are mine, all mine; HP might not want them anyway... :)
feel free to post, OR email to raj in cup.hp.com but NOT BOTH...
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]