From 78919ffaf324803a7484042077aacd52f970dd4d Mon Sep 17 00:00:00 2001 From: gregor Date: Wed, 12 Nov 2003 12:54:16 +0000 Subject: Bug 44 behoben. git-svn-id: https://joinup.ec.europa.eu/svn/moa-idspss/trunk@55 d688527b-c9ab-4aba-bd8d-4036d912da1d --- .../moa/spss/api/xmlbind/TransformParser.java | 25 +++++++++------------- 1 file changed, 10 insertions(+), 15 deletions(-) (limited to 'spss.server/src/at') diff --git a/spss.server/src/at/gv/egovernment/moa/spss/api/xmlbind/TransformParser.java b/spss.server/src/at/gv/egovernment/moa/spss/api/xmlbind/TransformParser.java index 84f377826..2d01f2a0f 100644 --- a/spss.server/src/at/gv/egovernment/moa/spss/api/xmlbind/TransformParser.java +++ b/spss.server/src/at/gv/egovernment/moa/spss/api/xmlbind/TransformParser.java @@ -130,34 +130,29 @@ public class TransformParser { * @param transformElem The Transform DOM element to parse. * @return An ExclusiveCanonicalizationTransform API object * containing the data from the transformElem. - * @throws MOAApplicationException An error occurred parsing the - * transformElem. */ private Transform parseExclusiveC14nTransform( String algorithmUri, Element transformElem) - throws MOAApplicationException { + { Element inclusiveNamespacesElem = (Element) XPathUtils.selectSingleNode( transformElem, INCLUSIVE_NAMESPACES_XPATH); - if (inclusiveNamespacesElem == null) { - throw new MOAApplicationException("2217", null); - } else { - StringTokenizer tokenizer = - new StringTokenizer(inclusiveNamespacesElem.getAttribute("PrefixList")); - List inclusiveNamespaces = new ArrayList(); - - while (tokenizer.hasMoreTokens()) { + List inclusiveNamespaces = new ArrayList(); + if (inclusiveNamespacesElem != null) + { + StringTokenizer tokenizer = new StringTokenizer(inclusiveNamespacesElem.getAttribute("PrefixList")); + while (tokenizer.hasMoreTokens()) + { inclusiveNamespaces.add(tokenizer.nextToken()); } - - return factory.createExclusiveCanonicalizationTransform( - algorithmUri, - inclusiveNamespaces); } + return factory.createExclusiveCanonicalizationTransform( + algorithmUri, + inclusiveNamespaces); } /** -- cgit v1.2.3