[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Namespace Jungle

Subject: RE: Namespace Jungle
From: Carlos Araya <elrond@xxxxxxxxxxxxxxxx>
Date: Mon, 27 Mar 2000 09:12:19 -0800 (PST)
xsl for each namespace
On Mon, 27 Mar 2000, Linda van den Brink wrote:

Linda:

Thanks for your reply, but now I have the following question. I have an
XSL stylesheet that works OK with INternet explorer and the old DTD
("http://www.w3.org/TR/WD-xsl"). What would I need to do to change it to
be compliant with the second DTD?

This is the XSL stylesheet

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

<xsl:template match="/">
	<xsl:apply-templates select="BIBLIOGRAPHY"/>
</xsl:template>

<xsl:template match="BIBLIOGRAPHY">        
	<html xmlns="http://www.w3.org/TR/REC-html40">
	
	<head>
		<title>Annotated bibliography</title>
		<link rel="stylesheet" type="text/css"
href="bibliography.css"/>
	</head>

	<body>
		<h1>Annotated Bibliography</h1>
             	<xsl:apply-templates select="BOOK|ARTICLE"/>
		<hr></hr>		
		<p>if you have any questions about this page, please
contact Carlos Araya (<A
HREF="mailto:araya@xxxxxxxx";>araya@xxxxxxxx</A>)</p>
	</body>
	</html>
</xsl:template>

<xsl:template match="BOOK">
	Title: 
		<i><xsl:value-of select="TITLE"/><br/></i>		
	Author(s):
		<xsl:for-each select="AUTHOR">		
			<xsl:value-of select="."/><br/>	
		</xsl:for-each>	

	ISBN:
		<xsl:value-of select="ISBN"/><br/>
	Date Entered:
	<xsl:value-of select="DATE-ENTERED"/><br/>

        Related Materials (books, articles, etc):<br/>
		<xsl:for-each select="RELATED-MATERIAL">
<xsl:value-of select="."/><br/>
        	</xsl:for-each>	

	Available online: 
		<xsl:value-of select="ONLINE"/><br/>	
	Publisher:
		<xsl:value-of select="PUBLISHER"/><br/>	
	Year of publication:
		<xsl:value-of select="YEAR"/><br/>
	Comments:
	        <xsl:for-each select="COMENT">
                <xsl:value-of select="."/><br/>
       	</xsl:for-each>

<p></p>
</xsl:template>

<xsl:template match="ARTICLE">
	Title: <i><xsl:value-of select="TITLE"/></i><br/>

	Author(s):
		<xsl:for-each select="AUTHOR">
			<xsl:value-of select="."/><br/>
		</xsl:for-each>	

	ISBN: <xsl:value-of select="ISBN"/><br/>
	Date Entered: <xsl:value-of select="DATE-ENTERED"/><br/>

        Related Material (book, articles, etc)<br/>
		<xsl:for-each select="RELATED-MATERIAL">
                	<xsl:value-of select="."/><br/>
        	</xsl:for-each>	

	Available online: <xsl:value-of select="ONLINE"/><br/>	
	Available at: <xsl:value-of select="LOCATION"/><br/>
	Publisher: <xsl:value-of select="PUBLISHER"/><br/>
	Year of publication: <xsl:value-of select="YEAR"/><br/>

        Comments:<br/> 
		<xsl:for-each select="COMENT">
                	<xsl:value-of select="."/><br/>
        	</xsl:for-each>
<p></p>
</xsl:template>

</xsl:stylesheet>

Any help is appreciated,
Carlos

--
Carlos E. Araya
WebCT Project Coordinator - New Media Specialist
Alquist Center for Instrucctional Development
San Jose State University
1 Washington Square
San Jose, Ca 95192-0026

email	: araya@xxxxxxxx (prefered)		| Phone (408) 924 2859
	  elrond@xxxxxxxxxxxxxxxx		| Pager (408) 308 1793
Web	: http://www.sjsu.edu/depts/alquist/	| Fax   (408) 924 2437
	  http://valinor.sjsu.edu/~elrond/	

finger elrond@xxxxxxxxxxxxxxxx for PGP key
-- 
Solid stone is just sand and water, baby/ Sand and water, and a million
years gone by. -- Beth Nielsen Chapman -- Sand and Water
                                              
"Be conservative in what you do, be liberal in what you accept from
others," --John B. Postel


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.