You are not logged in.
Pages: 1
I was wondering if there is a way to put color into an xslt file? I mean, the output of the file not the file contents. I have this script for conky that gathers weather information from weather.com and I would like to ass color to the output of the script. I can't use conky to colorize it because then the whole output would be colored and I just want to colorize some aspects of the output. Thanks for any help.
Offline
XSLT is about transforming data - XML data to what ever you want.
You choose how it outputs. If you're outputting as an html file, then you put the appropriate tags/CSS.
What is your output? Raw text? HTML?
Offline
XSLT is about transforming data - XML data to what ever you want.
You choose how it outputs. If you're outputting as an html file, then you put the appropriate tags/CSS.
What is your output? Raw text? HTML?
It outputs text.
Offline
In that case you need to pick an alternative output format because text is just text.
If you were printing directly to a console, then it's possible to add escape sequences which can add colour. These strings won't appear in the output, but it's ultimately a kind of markup.
You need to decided what formats are available for you.
Offline
If you decide about mark up console codes, visit
man console_codes
and search for Graphics Rendition.
E.g. try in your console
echo -e 'I am e[31;1mrede[m! and I am e[34;1mbluee[m!'
Offline
I think he should just use the conky color escapes.
Offline
sorry for the stupid question, what the conky color escapes are?
Offline
I think he should just use the conky color escapes.
This sounds like a great idea, I will give it a try later on and report back on whether it works or not. Thanks for the replies.
Offline
Pages: 1