Subject: Re: Another Beginner's Question From: Dan Morrison <dman@xxxxxxxx> Date: Tue, 28 Mar 2000 10:23:40 +1200 |
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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Another Beginner's Question, Laurie Mann | Thread | Re: Another Beginner's Question, Mike Brown |
testing an attribut, Franz Figl | Date | Re: Tutorials on XSL, violet wright |
Month |