The <xsl:value-of> element's select attribute must be an expression, not a
text string . The expression is an XPath expression that selects nodes
. You might want to make more of an effort to learn XSLT, guessing at
syntax is a slow and frustrating method not guaranteed to succeed.
The < and > characters are special to XML , and XSLT is XML. If you want
to use < as a character, rather than as a XML markup delimiter, you need to
use the character entity reference < or learn about CDATA sections in XML
To output a < character, use < as content instead of trying to use it as
a select expression, as in
You can also use the <xsl:text> element to explicitly indicate that you are
generating text content in the result tree, as in <xsl:text><</xsl:text>.
A word to the wise: if you are trying to generate the < and > symbols to be
used as markup delimiters in the result of an XSLT transform, then you are
definitely heading in the wrong direction. For example,
is unquestionably not what you want to do. And do not resort to
disable-output-escaping to try to make this work.
Stuart Celarier, Fern Creek, www.ferncrk.com
Consultant on .NET, Win32, C#, C++, COM, XML, XSLT and more.