# HG changeset patch # User Ingo Weinzierl # Date 1263829752 0 # Node ID cbb6b592bc6fac54c1833570f9995933f66197bd # Parent be53566c16404202bd0b3190761ebc9e221be3be 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 diff -r be53566c1640 -r cbb6b592bc6f gnv-artifacts/ChangeLog --- a/gnv-artifacts/ChangeLog Mon Jan 18 15:14:22 2010 +0000 +++ b/gnv-artifacts/ChangeLog Mon Jan 18 15:49:12 2010 +0000 @@ -1,3 +1,9 @@ +2010-01-18 Ingo Weinzierl + + * src/main/java/de/intevation/gnv/artifacts/GNVDefaultArtifact.java: Add an + attribute 'fis' to the fis select node. If this attribute is found in + XSLT, a link to step back and select a new fis will be created. + 2010-01-18 Tim Englich * doc/schema/externalinterface_schema.sql: diff -r be53566c1640 -r cbb6b592bc6f gnv-artifacts/src/main/java/de/intevation/gnv/artifacts/GNVDefaultArtifact.java --- 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(