473,405 Members | 2,171 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

accent in --stringparam (xsltproc)


Hello,

How to pass parameter with acute accent to xsltproc ?

example : (été (french) = summer)

$ xsltproc --stringparam ch été fichier.xsl fichier.xml

It is written in the xsltproc man that the string --stringparam must
be in utf-8

But how to pass it ?

TYWM

OS : linux

--
Philippe Monroux
55.3W -21.5S
Aug 18 '06 #1
2 2271
Ramon wrote:
Hello,

How to pass parameter with acute accent to xsltproc ?

example : (été (french) = summer)

$ xsltproc --stringparam ch été fichier.xsl fichier.xml

It is written in the xsltproc man that the string --stringparam must
be in utf-8

But how to pass it ?
What is the encoding of the terminal window in which you run the thing?
I think the LANG env. var. specifies that, but I'm not too sure (that
penguin never really got serious about Unicode -- W****** is much better
npwadays).

Or, alternatively, try to write your string été into a file, and be sure
to save that in UTF-8 (encoding under Save As in GEdit, or CTRL-x
<RETURNc utf-8 <RETURNCTRL-x CTRL-w <RETURNin EMACS; I am not
responsible if you break any fingers). Then, try cat the file -- if that
comes out OK, your terminal should use utf-8, and xsltproc should not
complain.

Soren
Aug 18 '06 #2
Le Sat, 19 Aug 2006 02:04:32 +0200,
Dans le forum comp.text.xml,
Soren Kuula a écrit :
Ramon wrote:
>Hello,

How to pass parameter with acute accent to xsltproc ?

example : (été (french) = summer)

$ xsltproc --stringparam ch été fichier.xsl fichier.xml

It is written in the xsltproc man that the string --stringparam must
be in utf-8

But how to pass it ?

What is the encoding of the terminal window in which you run the thing?
I think the LANG env. var. specifies that, but I'm not too sure (that
penguin never really got serious about Unicode -- W****** is much better
npwadays).

Or, alternatively, try to write your string été into a file, and be sure
to save that in UTF-8 (encoding under Save As in GEdit, or CTRL-x
<RETURNc utf-8 <RETURNCTRL-x CTRL-w <RETURNin EMACS; I am not
responsible if you break any fingers). Then, try cat the file -- if that
comes out OK, your terminal should use utf-8, and xsltproc should not
complain.
OK thanks

--
Philippe Monroux
55.3W -21.5S
Aug 19 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

114
by: muldoon | last post by:
Americans consider having a "British accent" a sign of sophistication and high intelligence. Many companies hire salespersons from Britain to represent their products,etc. Question: When the...
0
by: yzzzzz | last post by:
Hi, I'm outputting XML to XHTML using xsltproc. There happens to be a few empty tags in the output (such as <div></div>) but xsltproc outputs them as <div/>. This causes compatibility problems...
1
by: Loudin | last post by:
Hello, I`ve got Problems with Xpath and xsltproc/libxslt. I have got a variable with tags in my Style sheet and later in the same Style sheet i want to work with this tags using a...
1
by: Fabrice | last post by:
Hello, I have encountered a deep problem with accent and I don't understand why. I m preparing a multi-language website. French and English so far. With french, we have accents and ......
0
by: Fabrice | last post by:
Hello, (Alain) Tis is a part of my code to retrieve text from hastable in memory cache, by reading (befor) a resources file. Thanks for your help. /1/ The resources file * I have create a...
5
by: Darel Finkbeiner | last post by:
This may be the wrong group, so let me know. My "problem" is this: I am writing my commentary in DocBook 5 and using the program xsltproc and the docbook5 XSL stylesheets to produce XHTML...
1
by: Arndt Jonasson | last post by:
I have this xslt transform ex.xsl and an instance document ex.xml: <?xml version="1.0" encoding="ISO-8859-1"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> ...
1
by: Arndt Jonasson | last post by:
The way I read the XPath 1.0 specification, queries like "//*/ text()/.." and "//*/child::text()" should be valid. xmllint seems to agree with me, but xsltproc gives syntax errors for those...
2
by: A. W. Dunstan | last post by:
I'm trying to figure out how XPath expressions work, and how I can use them to extract data into a particular format. I can extract the data I want using an XPath expression, but not with an XSLT...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.