Project

Profile

Help

Bug #4643

closed

doc() XPath function does not work

Added by Sergei Betke almost 4 years ago. Updated over 3 years ago.

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

100%

Estimated time:
Legacy ID:
Applies to branch:
10, trunk
Fix Committed on Branch:
10, trunk
Fixed in Maintenance Release:
Platforms:

Description

After doc-available() doc() write error message "... marked as unavailable".

I use custom XMLResolver and set it by Processor.XmlResolver.

But there is workaround:

    <xsl:function name="fix:doc" as="document-node()?" visibility="final">
        <xsl:param name="fix:uri" as="xs:string?" required="yes"/>
        <xsl:if test="exists( $fix:uri )">
            <xsl:source-document href="{ $fix:uri }">
                <xsl:sequence select="/"/>
            </xsl:source-document>
        </xsl:if>
    </xsl:function>

Saxon HE 9.8...

Please register to edit this issue

Also available in: Atom PDF