Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - Re: testing for special characters >Thread Next - Re: testing for special characters Re: testing for special charactersTo: NULL Date: 8/19/2009 6:24:00 PM Figured it out. I changed the statement to: <xsl:if test=". != ' 				'"> It turns out that the XML processor will change all CR and CR/LF to LF. It works fine now. Tom "tshad" <toms@p...> wrote in message news:eKt453SIKHA.4436@T...... > Not sure why I was using $ when I should have been using &. But it still > didn't help. > > I tried: > > <xsl:if test=". != '
				'"> > > and it still doesn't work. > > Tom > > "tshad" <toms@p...> wrote in message > news:%239H4$xSIKHA.4168@T...... >>I also tried: >> >> <xsl:if test=". != '$#13;$#10;$#9;$#9;$#9;$#9;'"> >> >> Also didn't work. >> >> Tom >> "tshad" <toms@p...> wrote in message >> news:uWPMHwSIKHA.3736@T...... >>>I tried: >>> >>> <xsl:if test=". != '$#13$#10$#9$#9$#9$#9'"> >>> >>> But that didn't work. >>> >>> Tom >>> >>> "tshad" <toms@p...> wrote in message >>> news:Oy4rSiSIKHA.1340@T...... >>>>I just ran into an issue where my xml files have a carriage return, line >>>>feed and 6 tabs inside my tags. >>>> >>>> Normally I would see something like: >>>> >>>> <address></address> >>>> >>>> but now I seem to be seeing: >>>> >>>> <address>0D0A09090909</address> >>>> >>>> Where 0D is a carriage return, 0A is a line feed and 09 is a tab. >>>> >>>> I normally test for a blank fiield like so: >>>> >>>> <xsl:when test=". != ''"> >>>> >>>> but this doesn't work for this. How would I test for these special >>>> characters? >>>> >>>> I am trying to get the people who create the form to fix it, but until >>>> then I still need to process the xml files. >>>> >>>> Thanks, >>>> >>>> Tom >>>> >>> >>> >> >> > > | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
