diff gnv-artifacts/src/main/java/de/intevation/gnv/artifacts/GNVDefaultArtifact.java @ 491:cbb6b592bc6f

Mark the fis select node with an attribute 'fis', which is important for the XSL sheet to create a link to step back to this point. gnv-artifacts/trunk@567 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Mon, 18 Jan 2010 15:49:12 +0000
parents d265f5dc2979
children dde7f51dbe1e
line wrap: on
line diff
--- a/gnv-artifacts/src/main/java/de/intevation/gnv/artifacts/GNVDefaultArtifact.java	Mon Jan 18 15:14:22 2010 +0000
+++ b/gnv-artifacts/src/main/java/de/intevation/gnv/artifacts/GNVDefaultArtifact.java	Mon Jan 18 15:49:12 2010 +0000
@@ -3,6 +3,7 @@
 import de.intevation.artifactdatabase.DefaultArtifact;
 import de.intevation.artifactdatabase.XMLUtils;
 
+import de.intevation.artifacts.ArtifactNamespaceContext;
 import de.intevation.artifacts.CallContext;
 import de.intevation.artifacts.CallMeta;
 
@@ -41,8 +42,14 @@
             XMLUtils.XFORM_PREFIX
         );
 
+        XMLUtils.ElementCreator artCreator = new XMLUtils.ElementCreator(
+            document,
+            ArtifactNamespaceContext.NAMESPACE_URI,
+            ArtifactNamespaceContext.NAMESPACE_PREFIX
+        );
+
         Element selectNode = creator.create("select1");
-        creator.addAttr(selectNode, "ref", "fis");
+        artCreator.addAttr(selectNode, "fis", "true", true);
 
         Element labelNode = creator.create("label");
         labelNode.setTextContent(

http://dive4elements.wald.intevation.org