Re: [xsl] Finding list items in XHTML

Subject: Re: [xsl] Finding list items in XHTML
From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx>
Date: Tue, 12 Nov 2002 18:25:51 -0500
Hi Chris,

At 05:43 PM 11/12/2002, you wrote:
I'm trying to tackle the <p> -> <li> problem first, since that seemed to be easier.

Sounds good.


[stylesheet and source snipped]
This is unchanged by the transformation. Do you see the error of my ways?

Nope: when I ran your stylesheet over the snippet of source you gave (after a couple of tweaklets to form it well), I got:


<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE div
  PUBLIC "+//ISBN 0-9673008-1-9//DTD OEB 1.0.1 Document//EN" "oebdoc101.dtd">
<div>
<li>Everyone in a company should have a written job description that accurately
reflects their responsibilities and is related to their compensation.</li>
<a id="page-059"/>

<li>HR can help you deal with problem employees. Because most companies fear
wrongful termination suits, problem employees often require delicate handling.
Know your firm's procedures for these situations and work closely with HR to
resolve them quickly.</li>
</div>

So the <p> elements did get changed ... you're moving along.

For getting those <li> elements wrapped as proper lists, take a look at

http://www.dpawson.co.uk/xsl/sect2/flatfile.html

Cheers,
Wendell


====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================


XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list



Current Thread