RE: [xsl] Selecting First Letter

Subject: RE: [xsl] Selecting First Letter
From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx>
Date: Tue, 30 Sep 2003 15:52:07 -0400
Hi Jeff,

At 03:28 PM 9/30/2003, you wrote:
The second match criteria you gave was able to pick off the first
bit of text successfully.  However (and this has been the crux of
my issue) if I include a template that tries to copy-of the
contents of the <content> node, the text selection template
never gets matched.

Yes, that's correct; you need to copy the element and attribute nodes with the stepwise identity transform that copies one node at a time, rather than copy-of.


Ask again if you don't know the transform to which I am referring ... it's in the spec and appears frequently on this list.

The second match will work, but it's not foolproof: if your source has

<content><p><a href="gohere.com">Special</a> pages are on <i>Special</i> this month!</p></content>

...both the text node in the <a> and the one in the <i> will match...

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