I have a number of P.Mapper (4.0.beta1) applications that have nearly
identical search.xml files. Each has a few <searchitem> definitions
particular to the application as well as some <searchitem> definitions
common to all the applications. Rather than continue duplicating the
those things in common for each individual search.xml file, I was
hoping to include the common entries with an ENTITY reference.
Here is an example of the search.xml file I am trying to create:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE document [
<!ENTITY commonsearch SYSTEM "/home/nsg/pmapper/
pmapper-4.0.beta1/config/common/search.xml">
]>
<searchlist version="1.0">
<searchitem name="township_range" description="PLS: Township/Range/
SEction">
<layer type="postgis" name="sections">
<field type="n" name="town" description="Township" size="3"
wildcard="1" />
<field type="n" name="rang" description="Range" size="2"
wildcard="1" />
<field type="n" name="sect" description="Section" size="2"
wildcard="1" />
</layer>
</searchitem>
&commonsearch;
</searchlist>
And here is an excerpt from the referenced file:
<searchitem name="county" description="County">
<layer type="postgis" name="counties">
<field type="s" name="cty_name" description="County Name" wildcard="2">
<definition type="options" connectiontype="db" sort="asc"
firstoption="-">
<dsn
encoding="LATIN1">pgsql://guest1:f33d...@localhost/minnesota</
dsn>
<sql>SELECT DISTINCT cty_name,cty_name FROM
boundary.jurisdiction_county_area ORDER by cty_name</sql>
</definition>
</field>
</layer>
</searchitem>
None of the entries from the referenced file get included. Has anyone
else tried doing something similar, or is this ability not supported?
Thanks,
Paul Wickman
North Star Geographics
[email protected]
612.280.5850
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
pmapper-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pmapper-users