view flys-artifacts/src/main/resources/metadata/template.xml @ 372:fc3cf0ef777e

Added meta data service. flys-artifacts/trunk@1781 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Fri, 29 Apr 2011 15:10:44 +0000
parents dfbb3d50b0bd
children 349c9bcdd917
line wrap: on
line source
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<dc:template xmlns:dc="http://www.intevation.org/2011/Datacage">
<DATENKORB>
  <GEWAESSER>
    <dc:context>
      <dc:statement>
        SELECT id AS river_id, name as river_name FROM rivers
      </dc:statement>
      <dc:elements>
        <dc:element name="${river_name}">
          <WSTS>
            <dc:context>
              <dc:statement>
                SELECT id          AS wst_id, 
                       kind        AS wst_kind,
                       description AS wst_description
                FROM wsts
                WHERE river_id = ${river_id}
              </dc:statement>
              <dc:elements>
                <WST>
                  <dc:attribute name="TYP" value="${wst_kind}"/>
                  <dc:attribute name="ID"  value="${wst_id}"/>
                  <BESCHREIBUNG><dc:text>Erzeugt aus der Datei: ${wst_description}</dc:text></BESCHREIBUNG>
                  <dc:context>
                    <dc:statement>
                      SELECT id   AS column_id,
                             name AS column_name
                      FROM wst_columns
                      WHERE wst_id = ${wst_id}
                      ORDER BY position
                    </dc:statement>
                    <dc:elements><SPALTE><dc:attribute name="ID"   value="${column_id}"/><dc:attribute name="NAME" value="${column_name}"/></SPALTE>
                    </dc:elements>
                  </dc:context>
                </WST>
              </dc:elements>
            </dc:context>
          </WSTS>
        </dc:element>
      </dc:elements>
    </dc:context>
  </GEWAESSER>
</DATENKORB>
</dc:template>

http://dive4elements.wald.intevation.org