Uploaded image for project: 'XalanJ2'
  1. XalanJ2
  2. XALANJ-1077

Problem in XSL Transformation

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Resolution: Won't Fix
    • 2.0.0
    • None
    • None
    • Operating System: Windows NT/2K
      Platform: Other
    • 10579

    Description

      I have one javascript function which I am calling in XSL template. For calling
      the function I need to pass the params to the function
      in single quotes ('param'). After the XSL Transformations with Xalan, When the
      HTML page is generated the quote is outputted as (') so I am getting a
      script error.

      My XSL is written like this :

      <form name="dateJump" method="post">
      <xsl:attribute name="action">RequestDispatcher?ReqId=4</xsl:attribute>
      <input type="text" name="CpitDate" size="8" readonly=""/>
      <a>
      <xsl:attribute name="href"> javascript:show_calendar('dateJump.CpitDate');
      </xsl:attribute>
      <img src="HTMLandImages/show-calendar.gif" width="24" height="22" border="0"/>
      </a> </form>

      Please help me so that the single quote (') is outputted as ('). Shall I use
      entities. What is the entity for single quote('). If i use ' also for
      single quote(') that also in output shows as '.

      If i use the XSL Transformation with MSXML processor it works fine.

      Attachments

        Activity

          People

            Unassigned Unassigned
            naveen_jaidayal@satyam.com Naveen J
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: