> Can anybody tell me how to translate a string (not a single character
> and not the whole text() of an element) into an element or an entity?
You can't create entities using XSLT because they aren't part of the data
model.
I'm not sure what you mean by "translating a string into an element".
Perhaps you mean that you want to markup the input text "bread and butter
and jam" as "bread <and/> butter <and/> jam"?
That kind of thing is done using recursive templates: see under "replace" in
the FAQ.
Michael Kay
Software AG
home: Michael.H.Kay@xxxxxxxxxxxx
work: Michael.Kay@xxxxxxxxxxxxxx
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
| Current Thread |
|
Michael Kay - Wed, 17 Apr 2002 05:25:34 -0400 (EDT) <=
|
|