The moose likes XML and Related Technologies and the fly likes charSet parameter set using java XSL API Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "charSet parameter set using java XSL API" Watch "charSet parameter set using java XSL API" New topic

charSet parameter set using java XSL API

satya pandre

Joined: Oct 30, 2003
Posts: 3
How to set the charSet parameter using the java XSLT api ?
When I use
<xsl utput method="html" indent="yes" encoding="iso-8859-1"/>
in the XSL file, I am always getting
<META http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
in the output HTML.
I want to set the value using the java XSL api for different languages.
1. Can I set the encoding parameter dynamically by taking the parameter value from one of the XML element.
2. Is there anyway to set the value using the XSL java API ?
I am using org.apache.xalan.xslt.* classes to transfor XML to HTML based on the XSL file passed.
jason adam
Chicken Farmer ()
Ranch Hand

Joined: May 08, 2001
Posts: 1932
Welcome to JavaRanch! We don't have many rules at JavaRanch, but we do have our naming policy which asks people to have a first and last name (the last name cannot be an initial, either). Please head overhere and change your display name to fit with our policy. Thanks!
wood burning stoves
subject: charSet parameter set using java XSL API
Similar Threads
Request Attribute confusion
parameter to xsl from java
jsp redirections if session is null
handling multiple languages using XSL
can't able to run <jsp:useBean> in jsp page