When a single configuration file contains multiple profiles it
may be noticed that the same query or format parameters are often
repeated for each profile. As a convenience, these common parameters
may be migrated out of the individual profiles and into the containing
group or dbplotconfig.
The example below:
<?xml version="1.0" encoding="iso-8859-1"?>
<?xml-stylesheet type="text/xsl" href="http://www.temblast.com/xsl/dbplot.xsl"?>
<dbplotconfig>
<group name="QA-Tests">
<profile name="Test1">
<query>
<dsn>Results</dsn>
...
</query>
<format>
<stylesheet>c:\test\normal.css</stylesheet>
...
</format>
<plot>
...
</plot>
</profile>
<profile name="Test2">
<query>
<dsn>Results</dsn>
...
</query>
<format>
<stylesheet>c:\test\normal.css</stylesheet>
...
</format>
<plot>
...
</plot>
</profile>
</group>
</dbplotconfig>
This may be improved to:
<?xml version="1.0" encoding="iso-8859-1"?>
<?xml-stylesheet type="text/xsl" href="http://www.temblast.com/xsl/dbplot.xsl"?>
<dbplotconfig>
<group name="QA-Tests">
<query>
<dsn>Results</dsn>
</query>
<format>
<stylesheet>c:\test\normal.css</stylesheet>
</format>
<profile name="Test1">
<query>
...
</query>
<format>
...
</format>
<plot>
...
</plot>
</profile>
<profile name="Test2">
<query>
...
</query>
<format>
...
</format>
<plot>
...
</plot>
</profile>
</group>
</dbplotconfig>