Mercurial > dive4elements > gnv-client
changeset 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 | be53566c1640 |
children | 79e80c289018 |
files | gnv-artifacts/ChangeLog gnv-artifacts/src/main/java/de/intevation/gnv/artifacts/GNVDefaultArtifact.java |
diffstat | 2 files changed, 14 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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 <ingo.weinzierl@intevation.de> + + * 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 <tim.englich@intevation.de> * doc/schema/externalinterface_schema.sql:
--- 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(