How to replace "<" or ">" in xsl stylesheet?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • santaji
    New Member
    • Jul 2009
    • 7

    How to replace "<" or ">" in xsl stylesheet?

    I am getting xml string in request attribute in following format
    &lt;files&gt ;
    &lt;file&gt;
    &lt;filename&gt ;somefile.ext&l t;/filename&gt;
    &lt;/file&gt;
    &lt;files&gt ;
    the above string I want to convert to tags.
    expected output after xsl transformation -
    <files>
    <file>
    <filename>somef ile.ext</filename>
    </file>
    <files>
  • jkmyoung
    Recognized Expert Top Contributor
    • Mar 2006
    • 2057

    #2
    dangerous method: use disable-output-escaping
    <xsl:value-of select="express ion" disable-output-escaping="yes"/>

    If the input string is not well-formed the output will not be either.

    Comment

    • santaji
      New Member
      • Jul 2009
      • 7

      #3
      thanks for immediate response
      solution suggested working fine.

      Comment

      Working...