Subject:non breaking space in element breaking my stylesheet Author:Dana Pearson Date:10 Feb 2014 04:03 PM
I created a stylesheet that can be used with a XML file that has been converted from an MS Excel spreadsheet. My client does the spreadsheet conversion.
One of the created XML elements is called bisacsubjectcode. The client has sent me a file that breaks portions of my stylesheet with respect to this element.
Some of these elements contain non breaking spaces,   and sometimes an additional normal space, ie, 20; sometimes at the start of the string, sometimes at the end. Only a dozen or so in a file of 140 or so.
It didn't seem a difficult problem. But using strip-space element=bisacsubjectcode does not work.
I then created a character map to replace the   with nothing.
The   is not in the output but it still subverts the object of my constructor. It seems to still effect using substring function.