FHIR Chat · Issue in html validation · IG creation

Stream: IG creation

Topic: Issue in html validation


view this post on Zulip Jose Costa Teixeira (May 19 2021 at 22:42):

I'm getting an error at the end of the publication process, I presume it's in the html validation.
Funny thing is that on machine #2 it works fine, on machine #1 it does not work fine.
Sad thing is that online build is not fine.
stack is

Publishing Content Failed: String index out of range: 0                          (03:39.0172)
                                                                                 (03:39.0173)
Use -? to get command line help                                                  (03:39.0174)
                                                                                 (03:39.0181)
Stack Dump (for debugging):                                                      (03:39.0182)
java.lang.StringIndexOutOfBoundsException: String index out of range: 0
    at java.lang.String.charAt(Unknown Source)
    at org.hl7.fhir.utilities.xhtml.XhtmlParser.parseLiteral(XhtmlParser.java:912)
    at org.hl7.fhir.utilities.xhtml.XhtmlParser.parseElementInner(XhtmlParser.java:577)
    at org.hl7.fhir.utilities.xhtml.XhtmlParser.parseElement(XhtmlParser.java:602)
    at org.hl7.fhir.utilities.xhtml.XhtmlParser.parseElementInner(XhtmlParser.java:570)
    at org.hl7.fhir.utilities.xhtml.XhtmlParser.parseElement(XhtmlParser.java:602)
    at org.hl7.fhir.utilities.xhtml.XhtmlParser.parseElementInner(XhtmlParser.java:570)
    at org.hl7.fhir.utilities.xhtml.XhtmlParser.parse(XhtmlParser.java:464)
    at org.hl7.fhir.utilities.xhtml.XhtmlParser.parse(XhtmlParser.java:438)
    at org.hl7.fhir.igtools.publisher.HTLMLInspector.loadFile(HTLMLInspector.java:352)
    at org.hl7.fhir.igtools.publisher.HTLMLInspector.check(HTLMLInspector.java:228)
    at org.hl7.fhir.igtools.publisher.Publisher.generate(Publisher.java:5106)
    at org.hl7.fhir.igtools.publisher.Publisher.createIg(Publisher.java:901)
    at org.hl7.fhir.igtools.publisher.Publisher.execute(Publisher.java:745)
    at org.hl7.fhir.igtools.publisher.Publisher.main(Publisher.java:8577)

view this post on Zulip Lloyd McKenzie (May 19 2021 at 22:43):

Is there an IG I can test?

view this post on Zulip Jose Costa Teixeira (May 19 2021 at 22:44):

https://github.com/openhie/case-reporting-hiv-vn/runs/2624547326

view this post on Zulip Jose Costa Teixeira (May 19 2021 at 22:45):

i.e. https://github.com/openhie/case-reporting-hiv-vn

view this post on Zulip Lloyd McKenzie (May 20 2021 at 00:43):

Issue is this line:
feedbackurl = feedbackurl + '&';

view this post on Zulip Lloyd McKenzie (May 20 2021 at 00:43):

Have to escape your ampersands in xhtml

view this post on Zulip Lloyd McKenzie (May 20 2021 at 00:49):

I'll put in a pull request that should throw a clearer error.


Last updated: Apr 12 2022 at 19:14 UTC