473,396 Members | 1,749 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,396 software developers and data experts.

xml and purpose of ccs xsl

I'm new to xml but I think It'll be the thing of the future. Hold data and
transfer it. Then give it form somehow. That's where I get stuck.

<?xml version="1.0" ?> //left out encoding
<data>
<name>peggy</name>
</data>

Short to demonstrate my point. I'm missing <!DOCTYPE etc.... I don't know if
it's required. How do you use ccs or xsl to make this data display like
html?

Bill

-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 100,000 Newsgroups - 19 Different Servers! =-----
Jul 20 '05 #1
1 1814

Bill Cunningham wrote:Short to demonstrate my point
I'm missing <!DOCTYPE etc.... I don't know if
it's required. How do you use ccs or xsl to make this data displa
like
html?

Bill


You do not need a DOCTYPE declaration on the XML file because the <?xm
version="1.0"?> does the same thing. You can reference the XSL as i
this example:

<?xml-stylesheet type="text/xsl" href="style.xsl"?>

The XSL will have a similar declaration after the initial XML one suc
as:

<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">

You may build the XSL as a HTML page. Within the HTML code you ca
reference the CSS just as would with an HTML page. For dynamic field
you use this code:

<xsl:value-of select="root/page_title"/>

where root is your root in the XML file and page_title is whatever ta
in the XML file you want to appear in that place. So generally, desig
the CSS as you would for an HTML page and design the XSL to be you
page layout. you can use this as your guide to building your XSL:

http://www.w3.org/TR/xslt

hope this helps

Tripredacus-
-----------------------------------------------------------------------
Posted via http://www.forum4designers.co
-----------------------------------------------------------------------
View this thread: http://www.forum4designers.com/message40467.htm
Jul 20 '05 #2

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

Similar topics

14
by: Mudge | last post by:
This thread is hereby dubbed PHP Purpose, or PHPP. It has the following purposes: 1. To bring together PHPers and programmers around the world to become organized. 2. To dicuss purposes of...
4
by: Dado | last post by:
I lost the point: What is purpose of putting objects to null: If I make a class, JFrame for example, with button which start connection dialog, which is class with connection and statement...
6
by: Maarten van Reeuwijk | last post by:
Hi group, I need to parse various text files in python. I was wondering if there was a general purpose tokenizer available. I know about split(), but this (otherwise very handy method does not...
14
by: copyco | last post by:
Can anyone tell me what the purpose is to adding items such as a VBScript file or HTML document to your VB.NET project? Once you have these things added, how to you access them and use them in...
0
by: Nak | last post by:
Hi there, I'm slightly confused regarding the purpose of this method "SetSaveLicenseKey" which is part of the LicenseContext object. I had first presumed that it was used to "cache" a license...
6
by: John Machin | last post by:
Hi, In general, I'm mainly interested in a template engine for dynamic web pages but would like a general purpose one to avoid learning yet another package for generating e-mail messages, form...
5
by: vapour | last post by:
Hi, Quick question here, and wondering if anyone can help. I often see the hash character ('#') in regular expressions and am wondering what purpose it is supposed to serve. Example: ...
0
by: Irfy | last post by:
Could someone elaborate on the purpose and concrete usage scenarios of references to functions. What can references to functions do that pointers to functions cannot. Why are they in C++? A swap...
6
by: parag_paul | last post by:
hi All, I have no idea why I need to learn a new scripting language, nothing much to the sytnax, I need to understand what could be the prupose of another scripting language Cna you please...
8
by: parag_paul | last post by:
I saw an implementaiton with protected constrcutors. What could be use of this construct be?
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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...

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.