diff options
author | gregor <gregor@d688527b-c9ab-4aba-bd8d-4036d912da1d> | 2003-11-12 12:54:16 +0000 |
---|---|---|
committer | gregor <gregor@d688527b-c9ab-4aba-bd8d-4036d912da1d> | 2003-11-12 12:54:16 +0000 |
commit | 78919ffaf324803a7484042077aacd52f970dd4d (patch) | |
tree | f1b7baf4227ed496dada9188d541beefb8f5818b /spss.server/src/at/gv/egovernment | |
parent | 5b40778d13f93175e9be3cafe63901f29063b63c (diff) | |
download | moa-id-spss-78919ffaf324803a7484042077aacd52f970dd4d.tar.gz moa-id-spss-78919ffaf324803a7484042077aacd52f970dd4d.tar.bz2 moa-id-spss-78919ffaf324803a7484042077aacd52f970dd4d.zip |
Bug 44 behoben.
git-svn-id: https://joinup.ec.europa.eu/svn/moa-idspss/trunk@55 d688527b-c9ab-4aba-bd8d-4036d912da1d
Diffstat (limited to 'spss.server/src/at/gv/egovernment')
-rw-r--r-- | spss.server/src/at/gv/egovernment/moa/spss/api/xmlbind/TransformParser.java | 25 |
1 files changed, 10 insertions, 15 deletions
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 <code>Transform</code> DOM element to parse. * @return An <code>ExclusiveCanonicalizationTransform</code> API object * containing the data from the <code>transformElem</code>. - * @throws MOAApplicationException An error occurred parsing the - * <code>transformElem</code>. */ 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); } /** |