mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-31 11:01:40 +00:00
Checking in initial tests for the first XSL prototype.
This commit is contained in:
parent
7a8631dcf7
commit
a6036fc264
2
content/xsl/tests/book.css
Normal file
2
content/xsl/tests/book.css
Normal file
@ -0,0 +1,2 @@
|
||||
title {font-style: bold;}
|
||||
author {font-style: italic;}
|
5
content/xsl/tests/book.xml
Normal file
5
content/xsl/tests/book.xml
Normal 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
content/xsl/tests/book.xsl
Normal file
18
content/xsl/tests/book.xsl
Normal 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>
|
2
layout/xsl/tests/book.css
Normal file
2
layout/xsl/tests/book.css
Normal file
@ -0,0 +1,2 @@
|
||||
title {font-style: bold;}
|
||||
author {font-style: italic;}
|
5
layout/xsl/tests/book.xml
Normal file
5
layout/xsl/tests/book.xml
Normal 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
18
layout/xsl/tests/book.xsl
Normal 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>
|
Loading…
x
Reference in New Issue
Block a user