xsl-list
[Top] [All Lists]

Re: [xsl] Re: xhtml via xslt failure

2013-12-17 17:05:22
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(_at_)uvic(_dot_)ca)

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>