XMLHttpRequest Origin null is not allowed Access-Control-Allow-Origin for file:/// to file:/// (Serverless)

For instances where running a local webserver is not an option, you can allow Chrome access to file:// files via a browser switch. After some digging, I found this discussion, which mentions a browser switch in opening post. Run your Chrome instance with: chrome.exe –allow-file-access-from-files This may be acceptable for development environments, but little else. … Read more

How to insert   in XSLT

Use the entity code   instead.   is a HTML “character entity reference”. There is no named entity for non-breaking space in XML, so you use the code  . Wikipedia includes a list of XML and HTML entities, and you can see that there are only 5 “predefined entities” in XML, but HTML has over … Read more

Error: The processing instruction target matching “[xX][mM][lL]” is not allowed

Xerces-based tools will emit the following error The processing instruction target matching “[xX][mM][lL]” is not allowed. when an XML declaration is encountered anywhere other than at the top of an XML file. This is a valid diagnostic message; other XML parsers should issue a similar error message in this situation. To correct the problem, check … Read more

Check if a string is null or empty in XSLT

test=”categoryName != ”” Edit: This covers the most likely interpretation, in my opinion, of “[not] null or empty” as inferred from the question, including it’s pseudo-code and my own early experience with XSLT. I.e., “What is the equivalent of the following Java?”: // Equivalent Java, NOT XSLT !(categoryName == null || categoryName.equals(“”)) For more details … Read more