[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] Re: xhtml via xslt failure


Subject: Re: [xsl] Re: xhtml via xslt failure
From: Martin Holmes <mholmes@xxxxxxx>
Date: Tue, 17 Dec 2013 15:05:07 -0800

It looks like you didn't change this bit:

<xsl:apply-templates
                select='author'
                />

to

<xsl:apply-templates />

Cheers,
Martin

On 13-12-17 01:48 PM, e-letter wrote:

You might want to try changing the match to:


<xsl:template match="bookstore/book/author">


Tried and the (undesired) result:


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML Basic 1.1//EN"
"http://www.w3.org/TR/xhtml-basic/xhtml-basic11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"
lang="en"><head><meta content="xhtml document created by xml
transformation" name="notice" /><title>Test output web
page</title></head><body>
	
		Everyday Italian
		<p />
		2005
		30.00
	
	
		Harry Potter
		<p />
		2005
		29.99
	
	
		XQuery Kick Start
		<p>
				 and
			</p>
		<p>
				 and
			</p>
		<p>
				 and
			</p>
		<p>
				 and
			</p>
		<p />
		2003
		49.99
	
	
		Learning XML
		<p />
		2003
		39.95
	
</body></html>
.


-- Martin Holmes University of Victoria Humanities Computing and Media Centre (mholmes@xxxxxxx)


Current Thread
Keywords