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

Re: Another Beginner's Question

Subject: Re: Another Beginner's Question
From: Dan Morrison <dman@xxxxxxxx>
Date: Tue, 28 Mar 2000 10:23:40 +1200
Re: Another Beginner's Question
Laurie Mann wrote:
> 
> I'm trying to learn XSL so I can convert XML documents to HTML.

.. figures :-)

Off the top of my head I see two issues here. 

A: 

> 
>    <refentry>
>    <refnamediv>
>       <refname>Test</refname>

+

>         <xsl:template match="refentry">
>            <h1><xsl:value-of select="refname" /></h1>


... refname is not a child of refentry, so that simple select won't
work.
You might try <xsl:value-of select="refnamediv/refname" /> 

B:

>         <xsl:template match="refentry">
>        ...
>         <xsl:template match="refentry">
>        ...

What's with this?

According to WC3 XSLT 5.5 it's downright illegal to have two templates
matching exactly. What's a poor parser supposed to do with instructions
like that?


Just my reactions...

.dan.

:=====================:====================:
: Dan Morrison        : The Web Limited    :
:  http://here.is/dan :  http://web.co.nz  :
:  dman@xxxxxxxx      :  danm@xxxxxxxxx    :
:  04 384 1472        :  04 495 8250       :
:  021 115 7339       :                    :
:.....................:....................:
: If ignorance is bliss, why aren't more people happy?
:.........................................:


 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.