[xsl] Transforming portions of content or values

Subject: [xsl] Transforming portions of content or values
From: "C Baines" <cbaines@xxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 7 May 2003 09:08:17 +0100
Hi

1.    How do I transform a portion of text in an XML document so that I can
nest it within hyperlink tags in an XSL stylesheet for HTML display, as
follows?

a.    Content:

<experience>Worked for XYZ Inc.</experience>

transformed to HTML (where [XYZ] = hyperlink to www. xyz.com):

Worked for  [XYZ] Inc.

b.    Values:

<experience dates="1990 - 2000" company="Worked for XYZ Inc."/>

transformed to HTML (where [XYZ] = hyperlink to www. xyz.com):

1990 - 2000    Worked for [XYZ] Inc.

2.    Which throws up another question: is it possible to insert a
non-breaking space between text during the transformation e.g. between the
2000 and the 'Worked' as above?


Thanks

Charles


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


Current Thread