Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Font help in XML, please!

Status
Not open for further replies.

madHatter1

Technical User
Feb 27, 2003
54
GB
Hello

I am completely new to XML - as you will now gather!

I have an XML file which includes the following:

<picture>
<image>bed_1.jpg</image>
<text>Picture 1</text>
</picture>

When I try to add some font attributes to the <text></text> above like this:

<picture>
<image>bed_1.jpg</image>
<text><font style=&quot;verdana&quot; size=&quot;10&quot;>Picture 2</font></text>
</picture>

...it does nothing. Is this not the way to change attributes in XML? I have a file, in VBScript, which accompanies the XML file, and wonder if I need to change the font attributes in that?

Any guidance would be appreciated.

Thanks

Hatter

 
Hey!

XML is a mark-up language not an actual ]programming language. your problem i think, may lie in what ever is interacting with your xml file. what is actualy using that file? a browser? an editor? an application?

Jeff ;)

 
Hello Jeff

Thank you for your reply.

An asp file uses that.xml file, Jeff.

In it, the following may be relevant:

<HTML>
<HEAD>
<TITLE></TITLE>

<style type=&quot;text/css&quot;>
<!--
A {color: #9999CC;}
font-family: Verdana;
font-weight: Bold;
font-size: 10px; }
-->
</style>

</HEAD>

etc

But this doesn't seem to work, either!

At least I now know that there is no point in trying to change fonts, etc in the XML file.

Best wishes

Hatter
 
Hey Hatter!

the code snippet you supplied kinda tells me your working with xsl and asp trying to display something in a browser. the code snippet itself is describing how the html anchor tags will be displayed by default on that page...

if you want i could take a look at your asp page and maybe get a better picture of what you need to get the desired results.

good luck!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top