Project

Profile

Help

Bug #4608

closed

Reading JSON resource over HTTP: TypeError: c.codePointAt is not a function

Added by Michael Kay over 4 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
IXSL extensions
Sprint/Milestone:
-
Start date:
2020-06-20
Due date:
% Done:

100%

Estimated time:
Applies to JS Branch:
2
Fix Committed on JS Branch:
2
Fixed in JS Release:
SEF Generated with:
Platforms:
Company:
-
Contact person:
-
Additional contact persons:
-

Description

Following stylesheet fails with TypeError: c.codePointAt is not a function

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  version="3.0"
  xmlns:xs="http://www.w3.org/2001/XMLSchema"
  xmlns:ixsl="http://saxonica.com/ns/interactiveXSLT"
  exclude-result-prefixes="#all">
  
  <xsl:output method="adaptive"/>
  
  <xsl:param name="url" as="xs:string">https://swapi.dev/api/people/</xsl:param>
  
  <xsl:template name="xsl:initial-template">
    <ixsl:schedule-action document="{$url}">
      <xsl:call-template name="output-json">
        <xsl:with-param name="url" select="$url"/>
      </xsl:call-template>
    </ixsl:schedule-action>
  </xsl:template>
  
  <xsl:template name="output-json">
    <xsl:param name="url" select="$url"/>
    <xsl:variable name="json-doc1" select="json-doc($url)"/>
    <xsl:result-document href="json-doc-test-with-schedule-action-5.json" method="json" indent="yes">
      <xsl:sequence select="$json-doc1"/>
    </xsl:result-document>
  </xsl:template>
  
</xsl:stylesheet>

Please register to edit this issue

Also available in: Atom PDF Tracking page