Non-whitespace text is not allowed in this position in the stylesheet!

Hi, I can’t submit my form because I get an error. I am attaching a snippet of logs. How can I find where this error is and how can I correct it?

2023-04-27 12:52:48,044 CEST [ABC510001095898] [] [http-nio-8080-exec-16] ERROR p.c.e.w.s.s.i.FormPageProcessorServiceImpl - Could not download form page
com.google.common.util.concurrent.UncheckedExecutionException: pl.consdata.eximee.webforms.shared.service.WebFormsException: Message: javax.xml.transform.TransformerException: org.xml.sax.SAXException: j
avax.xml.transform.TransformerException: Non-whitespace text is not allowed in this position in the stylesheet!
javax.xml.transform.TransformerException: Non-whitespace text is not allowed in this position in the stylesheet!. Location: SystemId Unknown; Line #36; Column #2; 

Hi, the logs indicate an error in the document template (xsl file). You can find it in the tab Biblioteka → Wydruki by entering the name of xsl file that you used on your form. ‘Non-whitespace text is not allowed in this position in the stylesheet!’ means that there is probably a character outside the xsl tag, for example here the last ‘s’ is unnecessary and document will work after removing this character:

<xsl:variable name="wnioskodawca_data_urodzenia" select="concat($dzienDataUrW,'-',$miesiacDataUrW,'-',$rokDataUrW)"></xsl:variable>s

The logs indicate exact place in your document template where you should find an error:

Line #36; Column #2

I hope it will help!

2 Likes