Mercurial > dive4elements > gnv-client
comparison 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 |
comparison
equal
deleted
inserted
replaced
490:be53566c1640 | 491:cbb6b592bc6f |
---|---|
1 package de.intevation.gnv.artifacts; | 1 package de.intevation.gnv.artifacts; |
2 | 2 |
3 import de.intevation.artifactdatabase.DefaultArtifact; | 3 import de.intevation.artifactdatabase.DefaultArtifact; |
4 import de.intevation.artifactdatabase.XMLUtils; | 4 import de.intevation.artifactdatabase.XMLUtils; |
5 | 5 |
6 import de.intevation.artifacts.ArtifactNamespaceContext; | |
6 import de.intevation.artifacts.CallContext; | 7 import de.intevation.artifacts.CallContext; |
7 import de.intevation.artifacts.CallMeta; | 8 import de.intevation.artifacts.CallMeta; |
8 | 9 |
9 import de.intevation.gnv.artifacts.ressource.RessourceFactory; | 10 import de.intevation.gnv.artifacts.ressource.RessourceFactory; |
10 | 11 |
39 document, | 40 document, |
40 XMLUtils.XFORM_URL, | 41 XMLUtils.XFORM_URL, |
41 XMLUtils.XFORM_PREFIX | 42 XMLUtils.XFORM_PREFIX |
42 ); | 43 ); |
43 | 44 |
45 XMLUtils.ElementCreator artCreator = new XMLUtils.ElementCreator( | |
46 document, | |
47 ArtifactNamespaceContext.NAMESPACE_URI, | |
48 ArtifactNamespaceContext.NAMESPACE_PREFIX | |
49 ); | |
50 | |
44 Element selectNode = creator.create("select1"); | 51 Element selectNode = creator.create("select1"); |
45 creator.addAttr(selectNode, "ref", "fis"); | 52 artCreator.addAttr(selectNode, "fis", "true", true); |
46 | 53 |
47 Element labelNode = creator.create("label"); | 54 Element labelNode = creator.create("label"); |
48 labelNode.setTextContent( | 55 labelNode.setTextContent( |
49 resource.getRessource(callMeta.getLanguages(), "fis", "fis") | 56 resource.getRessource(callMeta.getLanguages(), "fis", "fis") |
50 ); | 57 ); |