Wednesday, November 17, 2010

Im Desperately trying to change the font type in XML ?!?

i am trying to change the font below where it says website name to the font type edwardian script but have no idea how.



%26lt;section name=';settings';%26gt;

%26lt;item name=';textSelectable';%26gt;true%26lt;/item%26gt;

%26lt;item name=';copyright';%26gt;%26lt;![CDATA[

Fashion Boutique 漏 2008 | %26lt;font color=';#2090c0';%26gt;%26lt;a href=';asfunction:_root.more_click_func, privacyPolicy';%26gt; %26lt;u%26gt;Privacy policy%26lt;/u%26gt;%26lt;/a%26gt;%26lt;/font%26gt; | %26lt;font color=';#2090c0';%26gt;%26lt;a href=';asfunction:_root.more_click_func, termsOfUse';%26gt; %26lt;u%26gt;Terms of use%26lt;/u%26gt;%26lt;/a%26gt;%26lt;/font%26gt;

]]%26gt;%26lt;/item%26gt;

%26lt;item name=';companyName';%26gt;WEBSITE%26lt;/item%26gt;

%26lt;item name=';slogan';%26gt;NAME%26lt;/item%26gt;

%26lt;item name=';slogan2';%26gt;%26lt;![CDATA[

E-mail: %26lt;a href=';asfunction:link';%26gt; %26lt;font color=';#000000';%26gt;%26lt;u%26gt;info@thedomain.co.uk%26lt;?br>
]]%26gt;%26lt;/item%26gt;

%26lt;image imageUrl=';_logo.png'; link=';asfunction:link';/%26gt;

%26lt;/section%26gt;Im Desperately trying to change the font type in XML ?!?
You are mixing two different functions into XML. XML is for structured storage. You should not be placing HTML tags or other display and rendering options in the XML.



You should have an XML translator XSLT or something similar that converts the XML to HTML. This translator will hold your display options such as font selection. This translator will have options for something like settings/companyName %26lt;font=whatever%26gt;item data %26lt;/font%26gt;.



By separating data and formatting, you can more easily change one without affecting the other. In your case, you should be able to change the display font without changing the XML that stores the company website URL.Im Desperately trying to change the font type in XML ?!?
I'm not really into XML, but XML is for storage and not for the presentation. You can store and instruct others to display with certain fonts, but XML itself is not able to display it like HTML.



That's how I understand XML, but I could be wrong.

Please, someone, enlighten us.
I ask a question for advice, did not want a pitch to by something.
Edwardian Script is not a font everyone has on his computer, so most people wouldn't see it anyway. (The user can only see fonts HE has installed, not fonts you call for.) If you want a particular font you'll have to make a picture of the text and use the picture on the page.



For XML:



%26lt;section name=';font';%26gt;

%26lt;font name=';Edwardian Script'; /?

%26lt;/font%26gt;



the same as any other data. (Your copyright data - the whole section - doesn't belong in XML.)

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.