This week's book giveaway is in the OCP forum.
We're giving away four copies of OCP Oracle Certified Professional Java SE 11 Developer Practice Tests and have Scott Selikoff and Jeanne Boyarsky on-line!
See this thread for details.
Win a copy of OCP Oracle Certified Professional Java SE 11 Developer Practice Tests this week in the OCP forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Ron McLeod
  • Tim Cooke
Sheriffs:
  • Devaka Cooray
  • paul wheaton
  • Mark Herschberg
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Frits Walraven
  • Jj Roberts
Bartenders:
  • Carey Brown
  • salvin francis
  • Piet Souris

charSet parameter set using java XSL API

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Chicken Farmer ()
Posts: 1932
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!
 
This will take every ounce of my mental strength! All for a tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic