[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|