Wesley Mitchell
Wesley Mitchell

Reputation: 1

XSLT Self Closing Tags WITH style

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?

Upvotes: 0

Views: 359

Answers (1)

Alohci
Alohci

Reputation: 82976

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.

Upvotes: 2

Related Questions