Checking in initial tests for the first XSL prototype.

This commit is contained in:
nisheeth%netscape.com 1998-12-27 08:25:54 +00:00
parent 7a8631dcf7
commit a6036fc264
6 changed files with 50 additions and 0 deletions

View File

@ -0,0 +1,2 @@
title {font-style: bold;}
author {font-style: italic;}

View File

@ -0,0 +1,5 @@
<?xml version='1.0'?>
<?xsl:stylesheet href="book.xsl" type="text/xsl"?>
<doc>
<title>Nisheeth's Document</title>
</doc>

View File

@ -0,0 +1,18 @@
<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">
<xsl:template pattern="doc">
<HTML>
<HEAD>
<TITLE>A Document</TITLE>
</HEAD>
<BODY>
<xsl:process-children/>
</BODY>
</HTML>
</xsl:template>
<xsl:template pattern="title">
<H1>
<xsl:process-children/>
</H1>
</xsl:template>
</xsl:stylesheet>

View File

@ -0,0 +1,2 @@
title {font-style: bold;}
author {font-style: italic;}

View File

@ -0,0 +1,5 @@
<?xml version='1.0'?>
<?xsl:stylesheet href="book.xsl" type="text/xsl"?>
<doc>
<title>Nisheeth's Document</title>
</doc>

18
layout/xsl/tests/book.xsl Normal file
View File

@ -0,0 +1,18 @@
<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">
<xsl:template pattern="doc">
<HTML>
<HEAD>
<TITLE>A Document</TITLE>
</HEAD>
<BODY>
<xsl:process-children/>
</BODY>
</HTML>
</xsl:template>
<xsl:template pattern="title">
<H1>
<xsl:process-children/>
</H1>
</xsl:template>
</xsl:stylesheet>