OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Re: small problem

[ Lists Home | Date Index | Thread Index ]
  • From: "Frank Boumphrey" <bckman@ix.netcom.com>
  • To: <xsl-list@mulberrytech.com>, <xml-dev@ic.ac.uk>
  • Date: Tue, 23 Mar 1999 09:20:44 -0500

Can we make single XML file which contains the data and also style of
>that data( How to display in the  browser ) with out having another XSL

Yes it is possible, use CSS

Frank

----- Original Message ----- 
From: Jayadeva Babu Gali <jayadeva@lgsi.co.in>
To: <xsl-list@mulberrytech.com>; <xml-dev@ic.ac.uk>
Sent: Tuesday, March 23, 1999 4:43 AM
Subject: small problem


>Hi,
>
>Can we make single XML file which contains the data and also style of
>that data( How to display in the  browser ) with out having another XSL
>if its possible can u please correct the attaching file with this mail.
>
>/*****  xml file with style sheet *****/
><?xml version="1.0"?>
><xsl:stylesheet
>       xmlns:xsl="http://www.w3.org/TR/WD-xsl"
>       xmlns="http://www.w3.org/TR/REC-html40"
>       result-ns="">
>
>         <xsl:template match="/">
>         <HTML>
>          <HEAD>
>           <TITLE>Test</TITLE>
>          </HEAD>
>          <BODY>
>             <xsl:apply-templates/>
>          </BODY>
>        </HTML>
>        </xsl:template>
>        <xsl:template match="*">
>        <xsl:apply-templates/>
>        </xsl:template>
>
><xsl:template match="persons">
><xsl:for-each select="person[1]">
>   <h1><xsl:value-of select="firstname"/></h1>
>   <h1><xsl:value-of select="lastname"/></h1>
></xsl:for-each>
>        </xsl:template>
>        <xsl:template match="textnode()">
>        <xsl:value-of select="."/>
>        </xsl:template>
>
></xsl:stylesheet>
>
>
><persons>
>   <person>
>     <firstname>jayadev</firstname>
>     <lastname>gali</lastname>
>   </person>
>   <person>
>       <firstname>shekar</firstname>
>       <lastname>ksirsagar</lastname>
>   </person>
></persons>
>
>
>
>
>
> XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
>


xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@ic.ac.uk
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ and on CD-ROM/ISBN 981-02-3594-1
To (un)subscribe, mailto:majordomo@ic.ac.uk the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@ic.ac.uk the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@ic.ac.uk)





 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS