Re: External parsed entities under SaxonJS

Martynas Jusevičius <martynas-tyFqBaoSXPC1Z/[email protected]> Fri, 2 Apr 2021 16:18:48 +0200
Newsgroups gmane.text.xml.saxon.help
Message-ID <CAE35VmzAU68N0qbcRLT=BZq3sXX+eqicV4rzjpPCG92vf1kpWw@mail.gmail.com>
Would expanding entities before SEF compilation work? Node.js XML
parser does not support DTDs. I'm using this approach that was
suggested here:

> Well, you could run the XQuery "." on Java, which would give you a document in which all the entity references are expanded.

> java net.sf.saxon.Query -qs:"." -s:in.xml -o:out.xml

On Fri, Apr 2, 2021 at 4:16 PM Wendell Piez <[email protected]> wrote:
>
> Saxon friends,
>
> Under SaxonJS, we are getting error SXJS0006 - (Reference to unknown entity etc.) for an external parsed entity declared in an internal DTD subset in an XML source document.
>
> Any advice? Is there a parser setting we can use? (Should I be reading the manual?) This is in order to apply a compiled SEF transformation programmatically to the XML, from inside a Typescript application.
>
> Thoughts? Thanks,
> Wendell
>
> --
> ...Wendell Piez... ...wendell -at- nist -dot- gov...
> ...wendellpiez.com... ...pellucidliterature.org... ...pausepress.org...
> ...github.com/wendellpiez... ...gitlab.coko.foundation/wendell...
> _______________________________________________
> saxon-help mailing list archived at http://saxon.markmail.org/
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/saxon-help