Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

warning: failed to load external entity

Tags:

xslt

xslt-1.0

I am processing an XML document from within directory A in X (X -> A) using an XSLT stylesheet that uses the document() function to dynamically build a directory path to another XML document in N... this part works like a charm.

The XML document in N further needs input from nodes in an XML document in (Y -> A); when I call my stylesheet, it returns the error below.

warning: failed to load external entity "..

I am explicitly telling my xslt processor to process all my processing instructions relative to the initial XML document NOT the stylesheet by default.

What could I be doing wrong?

dir/
├── X
│   ├── A
│   │   ├── N
│   │   ├── O
│   │   ├── P
├── Y
│   ├── A
│   ├── B
│   ├── C
│   ├── D
│   ├── E
│   └── F

My XML files are chuncked up and I need to dynamically build node lists.

like image 652
lightonphiri Avatar asked Oct 10 '22 08:10

lightonphiri


1 Answers

It turns out I had to explicitly pre-append file:/// to the complete file path of the xml file I was proc

like image 84
lightonphiri Avatar answered Jan 01 '23 12:01

lightonphiri