• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

charSet parameter set using java XSL API

 
satya pandre
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
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
Posts: 1932
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"satya",
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!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic