diff options
author | Adrian Kummerländer | 2014-05-28 21:51:39 +0200 |
---|---|---|
committer | Adrian Kummerländer | 2014-05-28 21:51:39 +0200 |
commit | 5859cb6af4a5136a96971c47e41e6195007ef944 (patch) | |
tree | 77431a85377b3b3742bcdb6c30526d957f9f61c1 /test/transform | |
parent | 802d416040aa31d72defa7a9227cd31b0885bc60 (diff) | |
download | InputXSLT-5859cb6af4a5136a96971c47e41e6195007ef944.tar InputXSLT-5859cb6af4a5136a96971c47e41e6195007ef944.tar.gz InputXSLT-5859cb6af4a5136a96971c47e41e6195007ef944.tar.bz2 InputXSLT-5859cb6af4a5136a96971c47e41e6195007ef944.tar.lz InputXSLT-5859cb6af4a5136a96971c47e41e6195007ef944.tar.xz InputXSLT-5859cb6af4a5136a96971c47e41e6195007ef944.tar.zst InputXSLT-5859cb6af4a5136a96971c47e41e6195007ef944.zip |
Implemented basic ErrorHandler
* InputXSLT::ErrorHandler is derived from xercesc::ErrorHandler and enables contextual printing of transformation errors
** currently this means that the error messages passed to std::cerr contain the full path of the offending transformation
* added input trimming to the external transform function
** calls to this function from inside a transformation may contain unnecessary whitespace characters which disrupt further processing
Diffstat (limited to 'test/transform')
-rw-r--r-- | test/transform/reference.xml | 2 | ||||
-rw-r--r-- | test/transform/transformation.xsl | 2 |
2 files changed, 1 insertions, 3 deletions
diff --git a/test/transform/reference.xml b/test/transform/reference.xml index 5d45081..bef43e4 100644 --- a/test/transform/reference.xml +++ b/test/transform/reference.xml @@ -1,6 +1,4 @@ <?xml version="1.0" encoding="UTF-8"?> <test_case> -<transform_test> <parameter_value>42</parameter_value> -</transform_test> </test_case> diff --git a/test/transform/transformation.xsl b/test/transform/transformation.xsl index fc41eb3..f2cc787 100644 --- a/test/transform/transformation.xsl +++ b/test/transform/transformation.xsl @@ -36,7 +36,7 @@ </xsl:call-template> <xsl:copy-of select=" - InputXSLT:read-xml-file('test_actual.xml')/test_case/transform_test + InputXSLT:read-xml-file('test_actual.xml')/test_case/transform_test/* "/> </xsl:template> |