Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > Re: NEED HELP ON XML COLOR

Thread Tools


Bob Johnson
Posts: n/a
Hi Bill,
Thanks for your help. I found out that basically internet explorer
uses a default.xsl file to display an xml. For instance,
I wrote an xml file, and when I click on it with explorer, it shows a
default display with expanding and collapsing with a default.xsl.
I wanted to customize that display with my own display instead of the
default. That was basically what I wanted to do.


On Sun, 22 Jun 2003 21:12:35 -0400, Bill Sneddon <(E-Mail Removed)>

>Not quite sure what you are trying to do.
>You can use XSL to format XML any way you please.
>Here is an simple answer It meet the criteria above.
>I would need more details of what you are trying to
>acomplish to help more.
><!-- start of XML file -->
><?xml version="1.0"?>
><?xml-stylesheet type="text/xsl" href="dumb.xsl"?>
><paragraph>hello world</paragraph>
><!--start of XSL file should be called dumb.xsl and in same directory as
>XML to work -->
><xsl:stylesheet version="1.0"
><xsl:template match="/">
><font color="red">
><xsl:value-of select="."/>
>Bob Johnson wrote:
>> In internet explorer. I can view an xml file in a .xml format.
>> My question is. Say, I have <paragraph>hello world</paragraph>.
>> But, I want to have hello world to have say the color red. How can I
>> do that in an xml file. I want to be able to have the tags there at
>> the same time make the "hello world" red. I can do it in html, but
>> then I won't have the <paragraph></paragraph> tags there. I want to
>> be able to have the tags and make the text red. Can anyone tell me
>> how you can do that? And if not, why you can't do that? My first
>> guess is that I would need to write a plug-in to have that feature.
>> Thanks,
>> Bob

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Not able to display color in excel not able to display color in excel using xml sed_y XML 0 02-15-2012 09:46 PM
Changing font color from current font color to black color Kamaljeet Saini Ruby 0 02-13-2009 04:58 PM
Different results parsing a XML file with XML::Simple (XML::Sax vs. XML::Parser) Erik Wasser Perl Misc 5 03-05-2006 10:09 PM
Help! Need Help Adjusting Color on Computer Just Me Computer Information 8 11-14-2003 06:51 AM
Re: NEED HELP ON XML COLOR Bob Johnson XML 0 06-25-2003 05:05 AM