XslTransform - Unicode question

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Pasan

    XslTransform - Unicode question

    Hello everyone. I am trying to generate a document using a XML document and
    a XSLT stylesheet. There are unicode elements in the XSL style-sheet
    (Japanese) as seen below:

    <xsl:template match="delegate ">
    <xsl:call-template name="type">
    <xsl:with-param
    name="type">âfâ èâQü[âg</xsl:with-param>
    </xsl:call-template>
    </xsl:template>

    Is there a way of doing the transformation correctly in the presence of the
    Unicode data?. ie. how do I tell the <XslTransform instance>.Trans form(...)
    method which elements are plain ASCII and which are unicode?. If not, is
    there a different way of accomplishing this task?..

    Thanks guys. Any help would be appreciated as to how I can solve this
    problem!..

    -Pasan




  • Oleg Tkachenko

    #2
    Re: XslTransform - Unicode question

    Pasan wrote:
    [color=blue]
    > Is there a way of doing the transformation correctly in the presence of the
    > Unicode data?[/color]

    Everything in XML is unicode. Usually you have to do nothing.
    When transforming though make sure output encoding declared in your
    stylesheet (xsl:output encoding="...") is appropriate one.
    --
    Oleg Tkachenko
    XML Insider


    Comment

    Working...