Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > xml and purpose of ccs xsl

Reply
Thread Tools

xml and purpose of ccs xsl

 
 
Bill Cunningham
Guest
Posts: n/a
 
      02-02-2004
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! =-----
 
Reply With Quote
 
 
 
 
Tripredacus-X
Guest
Posts: n/a
 
      02-11-2004

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 xmlnssl="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


 
Reply With Quote
 
 
 
Reply

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
floating images in CCS and extending the height of the columns to match scmulqueen@netzero.com HTML 2 07-25-2007 05:09 AM
CCS's issue. AM Cisco 0 04-10-2006 12:53 PM
CCS question bricarroll@gmail.com Cisco 2 02-09-2006 10:03 AM
XSL Question tp xsl:for-each and xsl:variable schaf@2wire.ch XML 1 05-27-2005 09:25 PM
Web.xml default mapping is breaking external CCS link. Ron Brennan HTML 0 01-14-2004 02:32 PM



Advertisments