tags:

views:

18

answers:

1

I'm writing some XSLT to render the output of a Rich Text Box in an infopath form.

Occasionally I'll get something like this in the output:

"<span style="font-size: 11px" class="Apple-style-span" />"

And it breaks EVERYTHING. I can't use:

<xsl:if test="string(.) != '' or descendant-or-self::/@[string(.)]">

because technically it isn't empty. What are my options?

+2  A: 

If you're getting <span style="font-size: 11px" class="Apple-style-span" /> from xslt, you've got the xslt output mode set to xml instead of html.

Alohci