diff options
author | Adrian Kummerlaender | 2014-06-25 20:23:35 +0200 |
---|---|---|
committer | Adrian Kummerlaender | 2014-06-25 20:23:35 +0200 |
commit | 7b872121000d4db4026d0c90fcb95a10f1e43694 (patch) | |
tree | d1cea19c4556b3574978f51bdf2bed2d36fbb73f /test | |
parent | 0d670478b51c55e44f57995fe3ca8a4585723a6c (diff) | |
download | InputXSLT-7b872121000d4db4026d0c90fcb95a10f1e43694.tar InputXSLT-7b872121000d4db4026d0c90fcb95a10f1e43694.tar.gz InputXSLT-7b872121000d4db4026d0c90fcb95a10f1e43694.tar.bz2 InputXSLT-7b872121000d4db4026d0c90fcb95a10f1e43694.tar.lz InputXSLT-7b872121000d4db4026d0c90fcb95a10f1e43694.tar.xz InputXSLT-7b872121000d4db4026d0c90fcb95a10f1e43694.tar.zst InputXSLT-7b872121000d4db4026d0c90fcb95a10f1e43694.zip |
Added support for resolving non-existing paths
* previous logic for resolving boost::filesystem::path parameters in the XObjectValue class actively tried to resolve existing files
** this contradicts the planned introduction of e.g. a external "write-file" function
* callers of external functions with path arguments now have to enclose them in square brackets if include path resolution is required
** analog to the usage of the "xsl:import" tag
* moved "getPathFromSystemId" from compilation local method into static method of IncludeEntityResolver
* changed test cases accordingly
Diffstat (limited to 'test')
-rw-r--r-- | test/external_text_formatter/transformation.xsl | 2 | ||||
-rw-r--r-- | test/read_file/transformation.xsl | 2 | ||||
-rw-r--r-- | test/read_xml_file/transformation.xsl | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/test/external_text_formatter/transformation.xsl b/test/external_text_formatter/transformation.xsl index 7be4866..2026302 100644 --- a/test/external_text_formatter/transformation.xsl +++ b/test/external_text_formatter/transformation.xsl @@ -26,7 +26,7 @@ <xsl:template name="implementation"> <xsl:variable name="result"> <xsl:call-template name="formatter"> - <xsl:with-param name="source" select="InputXSLT:read-file('test.md')"/> + <xsl:with-param name="source" select="InputXSLT:read-file('[test.md]')"/> </xsl:call-template> </xsl:variable> diff --git a/test/read_file/transformation.xsl b/test/read_file/transformation.xsl index 53a815c..c5ba24e 100644 --- a/test/read_file/transformation.xsl +++ b/test/read_file/transformation.xsl @@ -10,7 +10,7 @@ <xsl:import href="[testcase.xsl]"/> <xsl:template name="implementation"> - <xsl:variable name="result" select="InputXSLT:read-file('test.md')"/> + <xsl:variable name="result" select="InputXSLT:read-file('[test.md]')"/> <xsl:choose> <xsl:when test="$result/self::file/@result = 'success'"> diff --git a/test/read_xml_file/transformation.xsl b/test/read_xml_file/transformation.xsl index 98ae358..cd06c46 100644 --- a/test/read_xml_file/transformation.xsl +++ b/test/read_xml_file/transformation.xsl @@ -10,7 +10,7 @@ <xsl:import href="[testcase.xsl]"/> <xsl:template name="implementation"> - <xsl:variable name="result" select="InputXSLT:read-file('test.xml')"/> + <xsl:variable name="result" select="InputXSLT:read-file('[test.xml]')"/> <xsl:choose> <xsl:when test="$result/self::file/@result = 'success'"> |