This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: translation string to element


> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]