perfectxml.com
 Basic Search  Advanced Search   
Topics Resources Free Library Software XML News About Us
  You are here: home Info Bank Tips » Page 4 Friday, 16 November 2007
 

Info Bank » Tips


Page 1

Page 2

Page 3

Page 4







XML Tips from perfectxml.com [Page 4]

  • How does DSML relate to XML?
    XML (for eXtensible Markup Language) is widely considered to be the core language of e-business. It is a syntax that standardizes how task-focused information is shared across the Internet. XML provides for both context and inter-operability of data, thereby enabling dynamic activities. Also, since XML is self-describing, specific XML-based applications can interact with each other without special programming to integrate them DSML is an XML-Schema for representing Directory Services content and structure. An XML-Schema is a format for specifying rules covering the structure and content of XML documents. DSML will be defined using a Document Content Description (DCD) (see W3C-DCD spec at External linkhttp://www.w3.org/TR/NOTE-dcd ).


  • XML and CSS, An Example
    HTML tells how the data should look, but XML tells what data means. An XML document focuses on data rather than presentation. XML document has various custom tags which identify the content inside those tags. In order to "present" the XML document, you can use transformation language like XSL or you can use CSS (Cascading Style Sheets).
    In this tip we'll show you how you can link an CSS file with an XML document.
    Here's the XML document: test.xml <?xml version="1.0" encoding="ISO8859-1" ?>
    <?xml-stylesheet type="text/css" href="test.css"?>
    <XMLLINKS>
    <WEBLINKS>
    <SITE>
    <ID>1</ID>
    <URL>http://www.perfectxml.com</URL>
    <DESCRIPTION>The best site to learn XML and related technologies.</DESCRIPTION>
    </SITE>
    </WEBLINKS>
    </XMLLINKS>

    Here's the CSS file for the above XML document: test.css
    XMLLINKS
    {
    display: block;
    margin-bottom: 30pt;
    margin-left: 0;
    }
    SITE
    {
    color: #FF0000;
    font-size: 20pt;
    }
    ID
    {
    color: #0000FF;
    font-size: 10pt;
    }
    URL
    {
    color: #FF0000;
    font-size: 12pt;
    }
    DESCRIPTION
    {
    color: #000000;
    font-size: 20pt;
    }

    Demo

  Contact Us | E-mail Us | Site Guide | About PerfectXML | Advertise ©2004 perfectxml.com. All rights reserved. | Privacy