You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by "sarajit ghosh (JIRA)" <xa...@xml.apache.org> on 2005/12/05 11:10:30 UTC

[jira] Created: (XALANJ-2243) disable-output-escaping="yes" is not working

<input type="text" SIZE="62" name="text1" value="{$temp} " /> disable-output-escaping="yes" is not working
----------------------------------------------------------------------------------------------------------

         Key: XALANJ-2243
         URL: http://issues.apache.org/jira/browse/XALANJ-2243
     Project: XalanJ2
        Type: Bug
  Components: Xalan  
    Reporter: sarajit ghosh


<xsl:variable name="temp"><xsl:text  disable-output-escaping="yes"><![CDATA[&#1578;&#1606;&#1606;]]></xsl:text></xsl:variable>
<input type="text" SIZE="62" name="text1" value="{$temp} " />

disable-output-escaping="yes" is not working when we are assigning a unicode value to a text box.
here processor parse &#1578;&#1606;&#1606;

So in browser desired output should be تنن
But it is coming &#1578;&#1606;&#1606;


Can any one help me in this regard.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org


[jira] Commented: (XALANJ-2243) disable-output-escaping="yes" is not working

Posted by "David Bertoni (JIRA)" <xa...@xml.apache.org>.
    [ http://issues.apache.org/jira/browse/XALANJ-2243?page=comments#action_12359339 ] 

David Bertoni commented on XALANJ-2243:
---------------------------------------

You seem to be misunderstanding what CDATA sections are, and what disable-output-escaping accomplishes.  By placing what looks like numeric character references in a CDATA section, you are telling the parser that they are not markup.  Given that, it's not surprising you're not getting the characters you expect.

Since you haven't provided a complete example, it's hard to tell what output you are expecting, but Xalan-J is behaving correctly from what I can see.  If you really want the three characters U+062A (Arabic Letter Teh), U+0646 (Arabic Letter Noon), and U+0646 (Arabic Letter Noon), then don't use a CDATA section:

<xsl:variable name="temp" select ="&#1578;&#1606;&#1606;"/>

Unless you can provide more information, I believe this is not a bug, and should be marked invalid. In the future, you should ask questions on the user mailing list, rather than create Jira issues.

> <input type="text" SIZE="62" name="text1" value="{$temp} " /> disable-output-escaping="yes" is not working
> ----------------------------------------------------------------------------------------------------------
>
>          Key: XALANJ-2243
>          URL: http://issues.apache.org/jira/browse/XALANJ-2243
>      Project: XalanJ2
>         Type: Bug
>   Components: Xalan
>     Reporter: sarajit ghosh

>
> <xsl:variable name="temp"><xsl:text  disable-output-escaping="yes"><![CDATA[&#1578;&#1606;&#1606;]]></xsl:text></xsl:variable>
> <input type="text" SIZE="62" name="text1" value="{$temp} " />
> disable-output-escaping="yes" is not working when we are assigning a unicode value to a text box.
> here processor parse &#1578;&#1606;&#1606;
> So in browser desired output should be ???
> But it is coming &#1578;&#1606;&#1606;
> Can any one help me in this regard.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org


[jira] Commented: (XALANJ-2243) disable-output-escaping="yes" is not working

Posted by "sarajit ghosh (JIRA)" <xa...@xml.apache.org>.
    [ http://issues.apache.org/jira/browse/XALANJ-2243?page=comments#action_12359406 ] 

sarajit ghosh commented on XALANJ-2243:
---------------------------------------



You are right that 
if  use <xsl:variable name="temp" select ="&#1578;&#1606;&#1606;"/> 
then desired output will come.
As i am working for multilingual feature.
For that input box if input is "&ab" then it will give parsing error. thats why i have used it like this <![CDATA[&#1578;&#1606;&#1606;]]>(This is coming from some xml file)
For <xsl:text disable-output-escaping="yes"><![CDATA[&#1578;&#1606;&#1606;]]></xsl:text>
and all it is working fine.
Only when i am assigning to <input type="text" SIZE="62" name="text1" value="{$temp} " /> 

then it is showing &#1578;&#1606;&#1606;  as output 

please help.


regards



> <input type="text" SIZE="62" name="text1" value="{$temp} " /> disable-output-escaping="yes" is not working
> ----------------------------------------------------------------------------------------------------------
>
>          Key: XALANJ-2243
>          URL: http://issues.apache.org/jira/browse/XALANJ-2243
>      Project: XalanJ2
>         Type: Bug
>   Components: Xalan
>     Reporter: sarajit ghosh

>
> <xsl:variable name="temp"><xsl:text  disable-output-escaping="yes"><![CDATA[&#1578;&#1606;&#1606;]]></xsl:text></xsl:variable>
> <input type="text" SIZE="62" name="text1" value="{$temp} " />
> disable-output-escaping="yes" is not working when we are assigning a unicode value to a text box.
> here processor parse &#1578;&#1606;&#1606;
> So in browser desired output should be ???
> But it is coming &#1578;&#1606;&#1606;
> Can any one help me in this regard.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org


[jira] Commented: (XALANJ-2243) disable-output-escaping="yes" is not working

Posted by "sarajit ghosh (JIRA)" <xa...@xml.apache.org>.
    [ http://issues.apache.org/jira/browse/XALANJ-2243?page=comments#action_12359410 ] 

sarajit ghosh commented on XALANJ-2243:
---------------------------------------

if use <xsl:variable name="temp" select ="&#1578;&#1606;&#1606;"/> 
then desired output will come. 
As i am working for multilingual feature. 
For that input box if input is "&ab" then it will give parsing error. thats why i have used it like this <![CDATA[&#1578;&#1606;&#1606;]]>(This is coming from some xml file) 
For <xsl:text disable-output-escaping="yes"><![CDATA[&#1578;&#1606;&#1606;]]></xsl:text> 
and all it is working fine. 
Only when i am assigning to <input type="text" SIZE="62" name="text1" value="{$temp} " /> 

then it is showing &#1578;&#1606;&#1606; as output 
for  "Windows-1256"
 
"äÊÊ"

<xsl:variable name="temp" select ="äÊÊ"/> 

<input type="text" SIZE="62" name="text1" value="{$temp} " /> is not working
but for 

<xsl:text disable-output-escaping="yes"><![CDATAäÊÊ]]></xsl:text>

it is working 
please help. 


regards 


> <input type="text" SIZE="62" name="text1" value="{$temp} " /> disable-output-escaping="yes" is not working
> ----------------------------------------------------------------------------------------------------------
>
>          Key: XALANJ-2243
>          URL: http://issues.apache.org/jira/browse/XALANJ-2243
>      Project: XalanJ2
>         Type: Bug
>   Components: Xalan
>     Reporter: sarajit ghosh

>
> <xsl:variable name="temp"><xsl:text  disable-output-escaping="yes"><![CDATA[&#1578;&#1606;&#1606;]]></xsl:text></xsl:variable>
> <input type="text" SIZE="62" name="text1" value="{$temp} " />
> disable-output-escaping="yes" is not working when we are assigning a unicode value to a text box.
> here processor parse &#1578;&#1606;&#1606;
> So in browser desired output should be ???
> But it is coming &#1578;&#1606;&#1606;
> Can any one help me in this regard.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org


[jira] Resolved: (XALANJ-2243) disable-output-escaping="yes" is not working

Posted by "Henry Zongaro (JIRA)" <xa...@xml.apache.org>.
     [ http://issues.apache.org/jira/browse/XALANJ-2243?page=all ]
     
Henry Zongaro resolved XALANJ-2243:
-----------------------------------

    Resolution: Cannot Reproduce

XSLT does not provide a mechanism for indicating that an attribute value should not be escaped.  The only way I can think of to do what you are trying to do what I think you are doing would be to construct a text node using disable-output-escaping that represents the entire input element tag, like this:

<xsl:text disable-output-escaping>&lt;input type="text" SIZE="62" name="text1" value="</xsl:text>
<xsl:value-of select="$temp" disable-output-escaping="yes"/>
<xsl:text disable-output-escaping>" /></xsl:text>

However, it's sitll not absolutely clear what you are trying to do, what you expect the output to look like, and what output you are actually seeing, so I'm marking this as "Cannot reproduce".  If feel there is a bug here, please provide a complete XSLT stylesheet, input XML document and expected output that demonstrates the problem, and reopen the bug report.

> <input type="text" SIZE="62" name="text1" value="{$temp} " /> disable-output-escaping="yes" is not working
> ----------------------------------------------------------------------------------------------------------
>
>          Key: XALANJ-2243
>          URL: http://issues.apache.org/jira/browse/XALANJ-2243
>      Project: XalanJ2
>         Type: Bug

>   Components: Xalan
>     Reporter: sarajit ghosh

>
> <xsl:variable name="temp"><xsl:text  disable-output-escaping="yes"><![CDATA[&#1578;&#1606;&#1606;]]></xsl:text></xsl:variable>
> <input type="text" SIZE="62" name="text1" value="{$temp} " />
> disable-output-escaping="yes" is not working when we are assigning a unicode value to a text box.
> here processor parse &#1578;&#1606;&#1606;
> So in browser desired output should be ???
> But it is coming &#1578;&#1606;&#1606;
> Can any one help me in this regard.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org


[jira] Commented: (XALANJ-2243) disable-output-escaping="yes" is not working

Posted by "Brian Minchau (JIRA)" <xa...@xml.apache.org>.
    [ http://issues.apache.org/jira/browse/XALANJ-2243?page=comments#action_12373109 ] 

Brian Minchau commented on XALANJ-2243:
---------------------------------------

Comments from JIRA bug Triage on Febrary 7, 2006: 
> Looks like the user wants the value of an attribute to have
  disable output escaping applied to it, but this only
  applies to text nodes.

> <input type="text" SIZE="62" name="text1" value="{$temp} " /> disable-output-escaping="yes" is not working
> ----------------------------------------------------------------------------------------------------------
>
>          Key: XALANJ-2243
>          URL: http://issues.apache.org/jira/browse/XALANJ-2243
>      Project: XalanJ2
>         Type: Bug

>   Components: Xalan
>     Reporter: sarajit ghosh

>
> <xsl:variable name="temp"><xsl:text  disable-output-escaping="yes"><![CDATA[&#1578;&#1606;&#1606;]]></xsl:text></xsl:variable>
> <input type="text" SIZE="62" name="text1" value="{$temp} " />
> disable-output-escaping="yes" is not working when we are assigning a unicode value to a text box.
> here processor parse &#1578;&#1606;&#1606;
> So in browser desired output should be ???
> But it is coming &#1578;&#1606;&#1606;
> Can any one help me in this regard.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org


[jira] Commented: (XALANJ-2243) disable-output-escaping="yes" is not working

Posted by "sarajit ghosh (JIRA)" <xa...@xml.apache.org>.
    [ http://issues.apache.org/jira/browse/XALANJ-2243?page=comments#action_12359533 ] 

sarajit ghosh commented on XALANJ-2243:
---------------------------------------

please help how to show  (charsat  "Windows-1256" )
  
"äÊÊ" (Arabic) character through xsl

please help
regards

sarajit



> <input type="text" SIZE="62" name="text1" value="{$temp} " /> disable-output-escaping="yes" is not working
> ----------------------------------------------------------------------------------------------------------
>
>          Key: XALANJ-2243
>          URL: http://issues.apache.org/jira/browse/XALANJ-2243
>      Project: XalanJ2
>         Type: Bug
>   Components: Xalan
>     Reporter: sarajit ghosh

>
> <xsl:variable name="temp"><xsl:text  disable-output-escaping="yes"><![CDATA[&#1578;&#1606;&#1606;]]></xsl:text></xsl:variable>
> <input type="text" SIZE="62" name="text1" value="{$temp} " />
> disable-output-escaping="yes" is not working when we are assigning a unicode value to a text box.
> here processor parse &#1578;&#1606;&#1606;
> So in browser desired output should be ???
> But it is coming &#1578;&#1606;&#1606;
> Can any one help me in this regard.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org


[jira] Commented: (XALANJ-2243) disable-output-escaping="yes" is not working

Posted by "David Bertoni (JIRA)" <xa...@xml.apache.org>.
    [ http://issues.apache.org/jira/browse/XALANJ-2243?page=comments#action_12359537 ] 

David Bertoni commented on XALANJ-2243:
---------------------------------------

As I said in my previous comment, a defect is _not_ the place to ask questions.  Please subscribe to the Xalan-J user list and post a _complete_ description of your problem and include a minimal sample stylesheet and source document.  Otherwise, no one will be able to help you.

> <input type="text" SIZE="62" name="text1" value="{$temp} " /> disable-output-escaping="yes" is not working
> ----------------------------------------------------------------------------------------------------------
>
>          Key: XALANJ-2243
>          URL: http://issues.apache.org/jira/browse/XALANJ-2243
>      Project: XalanJ2
>         Type: Bug
>   Components: Xalan
>     Reporter: sarajit ghosh

>
> <xsl:variable name="temp"><xsl:text  disable-output-escaping="yes"><![CDATA[&#1578;&#1606;&#1606;]]></xsl:text></xsl:variable>
> <input type="text" SIZE="62" name="text1" value="{$temp} " />
> disable-output-escaping="yes" is not working when we are assigning a unicode value to a text box.
> here processor parse &#1578;&#1606;&#1606;
> So in browser desired output should be ???
> But it is coming &#1578;&#1606;&#1606;
> Can any one help me in this regard.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org


[jira] Commented: (XALANJ-2243) disable-output-escaping="yes" is not working

Posted by "Henry Zongaro (JIRA)" <xa...@xml.apache.org>.
    [ http://issues.apache.org/jira/browse/XALANJ-2243?page=comments#action_12359437 ] 

Henry Zongaro commented on XALANJ-2243:
---------------------------------------

According to section 16.4 of XSLT 1.0 [1]

«It is an error for output escaping to be disabled for a text node that is used for something other than a text node in the result tree. Thus, it is an error to disable output escaping for an xsl:value-of or xsl:text element that is used to generate the string-value of a comment, processing instruction or attribute node... an XSLT processor may signal the error; if it does not signal the error, it must recover by ignoring the disable-output-escaping attribute.»

In your original example, the text node that you've constructed is used to produce string value of an attribute node in the result tree, which is an error according to section 16.4.

[1] http://www.w3.org/TR/xslt#disable-output-escaping

> <input type="text" SIZE="62" name="text1" value="{$temp} " /> disable-output-escaping="yes" is not working
> ----------------------------------------------------------------------------------------------------------
>
>          Key: XALANJ-2243
>          URL: http://issues.apache.org/jira/browse/XALANJ-2243
>      Project: XalanJ2
>         Type: Bug
>   Components: Xalan
>     Reporter: sarajit ghosh

>
> <xsl:variable name="temp"><xsl:text  disable-output-escaping="yes"><![CDATA[&#1578;&#1606;&#1606;]]></xsl:text></xsl:variable>
> <input type="text" SIZE="62" name="text1" value="{$temp} " />
> disable-output-escaping="yes" is not working when we are assigning a unicode value to a text box.
> here processor parse &#1578;&#1606;&#1606;
> So in browser desired output should be ???
> But it is coming &#1578;&#1606;&#1606;
> Can any one help me in this regard.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org