Subject: RE: Finding list items in XHTML
From: "Conal Tuohy" <conalt@xxxxxxxxxxxxxxx>
Date: Wed, 13 Nov 2002 12:49:51 +1300
|
Chris: perhaps your templates don't match the <p> elements because of a
namespace? Does your input document have a default namespace? If so, you
should declare the namespace in your XSLT as well. Otherwise, your template
(below) should match, it seems to me.
> <xsl:template match="p[starts-with(.,'➤ ')]">
> <li><xsl:apply-templates /></li>
> </xsl:template>
I had to do something very like this just yesterday, and it worked fine.
Note, though, that for your eBook to be valid, you'll also have to introduce
a parent <ul> element for these <li> elements. To do this, you need to
consider the GROUP of paras that start with ➤ - there's information
about this in the FAQ.
Con
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
| Current Thread |
|
Michael Kay - Wed, 13 Nov 2002 03:00:37 -0500 (EST)
Jai Jeffryes - Thu, 14 Nov 2002 10:51:24 -0500 (EST)
|
|