Inflectra Customer Forums: FYI: workaround for report xslt and the error "Name cannot begin with the ' ' character, hexadecimal value 0xA0. Line X, position X." (Thread) When generating/executing a report, we frequently run into the error "Name cannot begin with the ' ' character, hexadecimal value 0xA0. Line X, position X." As far as we can tell, this error is related to pasting text into the report's xslt "Template" field. It seems that when you do a paste, if the text you are pasting begins or ends with a space, then code within the field's paste event replaces beginning and ending spaces with non-breaking space characters (0xA0). The best workaround we have found is to not include a space at the beginning or end of text that you are copying to paste in the field. This is not a solution because it is very common to copy-paste text within the xslt "Template" field that has either a leading or trailing space, e.g. while pasting html or xsl attributes from one element to another. If you have encountered this error then it's difficult to resolve it because the offending character looks just like a normal space. Here's an additional workaround for finding problematic non-breaking spaces after encountering the error: Open a separate browser tab to http://regexpal.com/ Put the following text in the page's top box \xA0 Copy-paste your text from your xlst Template field into the page's second box. The non-breaking spaces should now be highlighted. (Highlighting alternates between yellow and blue for each match.) You can ignore non-breaking spaces that appear at the beginning of lines. They don't need to be changed or replaced. They won't break the report. Replace the non-breaking spaces that aren't at the beginning of lines with normal spaces (within the xlst Template field). en-US(C) Copyright 2006-2024 Inflectra Corporation.support@inflectra.com/Computers/Software/Project_Management//Computers/Software/Quality_Assurance/KronoDesksupport@inflectra.comhttp://www.inflectra.com/kronodesk/forums/threads120/Support/Forum/spirateam/issues-questions/1003.aspxthreadId=1003Jon Freed (jfreed@edmap.com)report generate error 0xA0 xsltFYI: workaround for report xslt and the error "Name cannot begin with the ' ' character, hexadecimal value 0xA0. Line X, position X." When generating/executing a report, we frequently run into the error "Name cannot begin with the ' ' character, hexadecimal value 0xA0. Line X, position X." As far as we can tell, this error is related to pasting text into the report's xslt "Template" field. It seems that when you do a paste, if the text you are pasting begins or ends with a space, then code within the field's paste event replaces beginning and ending spaces with non-breaking space characters (0xA0). The best workaround we have found is to not include a space at the beginning or end of text that you are copying to paste in the field. This is not a solution because it is very common to copy-paste text within the xslt "Template" field that has either a leading or trailing space, e.g. while pasting html or xsl attributes from one element to another. If you have encountered this error then it's difficult to resolve it because the offending character looks just like a normal space. Here's an additional workaround for finding problematic non-breaking spaces after encountering the error: Open a separate browser tab to http://regexpal.com/ Put the following text in the page's top box \xA0 Copy-paste your text from your xlst Template field into the page's second box. The non-breaking spaces should now be highlighted. (Highlighting alternates between yellow and blue for each match.) You can ignore non-breaking spaces that appear at the beginning of lines. They don't need to be changed or replaced. They won't break the report. Replace the non-breaking spaces that aren't at the beginning of lines with normal spaces (within the xlst Template field). Tue, 16 Sep 2014 13:53:34 -04002014-09-18T13:45:57-04:00/Support/Forum/spirateam/issues-questions/1003.aspxmessageId=1834Kat A (support2@inflectra.com) Thanks for the information, Jon! Regards, Elise Thanks for the information, Jon! Regards, Elise Thu, 18 Sep 2014 13:45:57 -04002014-09-18T13:45:57-04:00/Support/Forum/spirateam/issues-questions/1003.aspx#reply1834