[ http://issues.apache.org/jira/browse/XALANJ-1943?page=all ]
     
Brian Minchau resolved XALANJ-1943:
-----------------------------------

    Fix Version: 2.7
     Resolution: Invalid

Resolving as invalid.  The CharInfo class is not a public API.

There are two ways to do this. See 
http://xml.apache.org/xalan-j/usagepatterns.html

There is a public, documented API, You can set the xalan:entities attribute of 
an xsl:output element in your stylesheet, e.g.
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" 
                xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
                xmlns:xalan="http://xml.apache.org/xalan";>
                
  <xsl:output method="xml" 
              encoding="UTF-8"
              indent="yes" 
              xalan:entities="MyEntities"
              xalan:indent-amount="2"/>

Or alternately another public, documented API is to use JAXP in your java code.
Once you have a transformer object in Java code, you can set the JAXP property:

  transformer.setProperty("{http://xml.apache.org/xalan}entities";, 
"MyEntities");



> jre1.4.2_05 and XML_ENTITIES_RESOURCE
> -------------------------------------
>
>          Key: XALANJ-1943
>          URL: http://issues.apache.org/jira/browse/XALANJ-1943
>      Project: XalanJ2
>         Type: Bug
>   Components: Serialization
>     Versions: 2.4
>  Environment: WIN 2000, JRE1.4.2_05
>     Reporter: amit arora
>      Fix For: 2.7

>
> Hi 
> I am currently working on a problem to make my code compatible with 
> jre1.4.2_05, I am getting an exception (illegal access) on this line --- 
>  
>   org.apache.xalan.serialize.CharInfo.XML_ENTITIES_RESOURCE = codeBaseStr;
>  
> As jre is not allowing me to assign any value to XML_ENTITIES_RESOURCE 
> variable.
> I am not using xalan 2.6.0.
> I have gone through your changes in xalan 2.6. 0, if I use xalan 2.6.0, still 
> I have to put new xalan in jre directory which I can't do.
>  
> Committed by [EMAIL PROTECTED] on 2003/04/06
> Modified: xml-xalan/java/src/org/apache/xml/serializer CharInfo.java 
> HTMLEntities.properties output_html.properties output_xml.properties 
> XMLEntities.properties xml-xalan/java/xdocs/sources/xalan usagepatterns.xml
> Committer's log entry: Patch from Christine Li ([EMAIL PROTECTED]). Changed 
> Char Info so that it allows descriptions of entities to be specified as a 
> properties file in addition to a Xalan-specific resource file format. The 
> code previously always assumed a Xalan-specific resource file format, for 
> both user-supplied descriptions of entities, and for those supplied with 
> Xalan-J. The security restrictions of applets are such that an applet that 
> relies on a copy of Xalan-J in the Java run-time would find that Xalan-J 
> would be unable to read the default entities file that is packaged with the 
> JRE on the applet's behalf - it can only do so with a properties, via 
> Resource Bundle .
>  
> Can you give me any idea to solve this problem? 
>  
>  

-- 
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to