This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: translation string to element
- From: "Michael Kay" <michael dot h dot kay at ntlworld dot com>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Wed, 17 Apr 2002 10:31:45 +0100
- Subject: RE: [xsl] translation string to element
- Reply-to: xsl-list at lists dot mulberrytech dot com
> 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@ntlworld.com
work: Michael.Kay@softwareag.com
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list