Condition-clause in XSLT using .Net System.Xml

  • Thread starter Thread starter Magus
  • Start date Start date
M

Magus

Hi.

I'm trying to execute a simple <xsl:if>-clause with a
condition that reads: a<1
In MSXML 4 the clause <xsl:if test="a &lt; 1">do
something...</xsl:if> works fine.
But in .Net Xml it just doesn't work. I can't use the real
character (<) because the XSLT wont be a valid XML.
And if I use the encoded representation (&lt;) it wont
compute at all.

Anybody got a clue what to do???

// Magus - Il Dottore
 
Magus said:
I'm trying to execute a simple <xsl:if>-clause with a
condition that reads: a<1
In MSXML 4 the clause <xsl:if test="a &lt; 1">do
something...</xsl:if> works fine.
But in .Net Xml it just doesn't work. I can't use the real
character (<) because the XSLT wont be a valid XML.
And if I use the encoded representation (&lt;) it wont
compute at all.

Sounds weird. &lt; is exactly the same as < and of course works. Show us
reporoducible sample.
 
Back
Top