This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Another Beginner's Question
- To: xsl-list at mulberrytech dot com
- Subject: Re: Another Beginner's Question
- From: Dan Morrison <dman at es dot co dot nz>
- Date: Tue, 28 Mar 2000 10:23:40 +1200
- Organization: Disorganised
- References: <7D70697C0E38D111B4FF080036B39A0301A1AA1B@ntdevexc.ansys.com>
- Reply-To: xsl-list at mulberrytech dot com
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@es.co.nz : danm@web.co.nz :
: 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