xsl-list
[Top] [All Lists]

Re: Insert a tag inside a text

2005-09-12 06:25:45
2005/9/12, David Carlisle <davidc(_at_)nag(_dot_)co(_dot_)uk>:

XSLT never processes tags, but it is possible to insert element nodes.
You just need to use a replace template (from the faq) and replace
a by <span class="accesskey">a</span>. (It's even easier in xslt2 where
you could use xsl:analyze-string for this).

David



Thanks for your reply.

a) Yes, I meant element nodes but I expressed it wrongly.
b) Yes but notice that I don't want to insert a span node with an "a"
always. That letter is dependent on the accesskey attribute of the
label, and I want to place only *one* span node, not 'n' number of
elements if the text contains many 'a' letters. Is this possible with
that replace template you mention?

Thanks in advance again.

  Andrew        [  knocte  ]

--

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>