FHIR Chat · 0.0.2 derived templates: asset images not processed anymore · IG creation

Stream: IG creation

Topic: 0.0.2 derived templates: asset images not processed anymore


view this post on Zulip Oliver Egger (Jan 29 2020 at 09:37):

with our custom template the ig publisher does not process the content/assets/images anymore, the build gives an a error:

onGenerate:
Error on line 1 column 1
  SXXP0003: Error reported by XML parser: Content is not allowed in prolog.
Exception generating page /Users/oliveregger/Documents/github/ch-core/temp/pages/_includes/package-list.json: org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 1; Content is not allowed in prolog. (00:34.0938)
Error on line 1 column 1
  SXXP0003: Error reported by XML parser: Content is not allowed in prolog.
Exception generating page /Users/oliveregger/Documents/github/ch-core/temp/pages/_includes/publish.ini: org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 1; Content is not allowed in prolog. (00:34.0950)
Error
  I/O error reported by XML parser processing null: Invalid byte 1 of 1-byte UTF-8 sequence.
Exception generating page /Users/oliveregger/Documents/github/ch-core/temp/pages/_includes/assets/images/fhir-logo-www.png: I/O error reported by XML parser processing null: Invalid byte 1 of 1-byte UTF-8 sequence. (00:34.0977)
Error
  I/O error reported by XML parser processing null: Invalid byte 1 of 1-byte UTF-8 sequence.
Exception generating page /Users/oliveregger/Documents/github/ch-core/temp/pages/_includes/assets/images/hl7-logo.png: I/O error reported by XML parser processing null: Invalid byte 1 of 1-byte UTF-8 sequence. (00:34.0986)

do we have to move the images to a different directory or is there another parameter we have to set?

view this post on Zulip Grahame Grieve (Jan 29 2020 at 09:44):

for some reason it's scanning it as if it contains resources.

view this post on Zulip Grahame Grieve (Jan 29 2020 at 09:45):

it still runs, right?

view this post on Zulip Grahame Grieve (Jan 29 2020 at 09:45):

that will be driven by the directories you told it to scan

view this post on Zulip Oliver Egger (Jan 29 2020 at 09:53):

the publisher runs without problem, but it does not copy the static resources to the output anymore, so i'm not sure if with the new template 0.0.2 i have to change something in the template setup, i think its unrelated to the ig publisher

view this post on Zulip Grahame Grieve (Jan 29 2020 at 10:24):

ah yes the onGenerate event... anyway, it's trying to read the files as xml, and failing, It obviously handles the failure, but the xml parser in java is hard coded to produce that error message irrespective of what you do

view this post on Zulip Oliver Egger (Jan 29 2020 at 10:45):

thx, that means i was looking in the wrong place why the resources are not copied, i have to look further then ...

view this post on Zulip Oliver Egger (Jan 29 2020 at 15:04):

i tracked it down: the ig-publisher has a parameter path-pages where you can add a path to html/images which do no need to be processed through xslt. the above error is still there, but i have our image back ...


Last updated: Apr 12 2022 at 19:14 UTC