We are creating a new Fixed-Layout "outer xsl" so we can use Fixed-Layouts and generate HTML that is more friendly for the Bootstrap framework.
Got everything to work perfectly - EXCEPT...
The XML that I have to work with starts with:
<Page>
<Page_Display_Properties ...>...</Page_Display_Properties>
<ComponentData>
<Component ID="xxxxxxxxx">...</Component>
<Component ID="xxxxxxxxx">...</Component>
<Component ID="xxxxxxxxx">...</Component>
<Component ID="123456789">
bsBody:addClass[some-class]
</Component>
</ComponentData>
<Layout>...</Layout>
</Page>
My XSL (in part):
<xsl:variable name="content" select="/Page/ComponentData/Component[@ID='123456789']"/>
the value of content is: "<xsl:value-of disable-output-escaping='no' select="$content"/>"
<xsl:choose>
<xsl:when test="contains($content,'bsBody')">Content does contain bsBody</xsl:when>
<xsl:when test="not(contains($content,'bsBody'))">Content does NOT contain bsBody</xsl:when>
<xsl
therwise>Content neither contains nor does not contain bsBody</xsl
therwise>
</xsl:choose>
The output is:
the value of content is: "bsBody:addClass[some-class]"
Content does NOT contain bsBody
In fact I can not "do" anything with the content within the <Component> tag except display it. No comparisons, no substring-before, no xpath (I had XML in there earlier).
It appears as though the content is in a different character encoding.
Any ideas?