Project

Profile

Help

Bug #4644

xsl:result-document error with with nonexistent directory in @href

Added by Sergei Betke about 1 month ago. Updated 4 days ago.

Status:
AwaitingInfo
Priority:
Normal
Category:
.NET API
Sprint/Milestone:
-
Start date:
2020-07-14
Due date:
% Done:

0%

Estimated time:
Legacy ID:
Applies to branch:
9.8
Fix Committed on Branch:
Fixed in Maintenance Release:

Description

I use simple XSLT code:

	<xsl:template mode="p:create-outline-document-files p:create-inline-document-files" use-when="$p:restore-doctype"
		 match="/manifest:manifest/manifest:file-entry[
			starts-with( @manifest:full-path, 'Basic/' )
			and ends-with( @manifest:full-path, '/script-lb.xml' )
		]"
		 priority="-1"
	>
		<xsl:result-document href="{ xs:anyURI( './' || data( @manifest:full-path ) ) }"
			format="p:OOXmlFileFormat"
			doctype-system="library.dtd"
		>
			<xsl:apply-templates mode="#current"/>
		</xsl:result-document>
	</xsl:template>

by example:

		<xsl:result-document href="a/b/c/d.xml"/>
			...
		</xsl:result-document>

and just a directory exists. Previous code create file a/c/d.xml!!!, not a/b/c/d.xml.

But when I create a/b/c directory, previous code create file a/b/c/d.xml.

Saxon HE 9.8 with .net.

History

#1 Updated by Sergei Betke about 1 month ago

I use simple XSLT code:

	<xsl:template mode="p:create-outline-document-files p:create-inline-document-files" use-when="$p:restore-doctype"
		 match="/manifest:manifest/manifest:file-entry[
			starts-with( @manifest:full-path, 'Basic/' )
			and ends-with( @manifest:full-path, '/script-lb.xml' )
		]"
		 priority="-1"
	>
		<xsl:result-document href="{ xs:anyURI( './' || data( @manifest:full-path ) ) }"
			format="p:OOXmlFileFormat"
			doctype-system="library.dtd"
		>
			<xsl:apply-templates mode="#current"/>
		</xsl:result-document>
	</xsl:template>

By example:

		<xsl:result-document href="a/b/c/d.xml"/>
			...
		</xsl:result-document>

and just a directory exists. Previous code create file a/c/d.xml!!!, not a/b/c/d.xml.

But when I create a/b/c directory, previous code create file a/b/c/d.xml.

Saxon HE 9.8 with .net.

#2 Updated by Michael Kay about 1 month ago

  • Category set to .NET API
  • Assignee set to O'Neil Delpratt

#3 Updated by O'Neil Delpratt 4 days ago

  • Status changed from New to AwaitingInfo

Hi, Sorry for the delay in getting back to you on this bug issue. I would like to try and reproduce this issue at my end. Please can provide a small but full repo?

Please register to edit this issue

Also available in: Atom PDF