[prev in list] [next in list] [prev in thread] [next in thread]
List: taglibs-user
Subject: Re: str to replace tags
From: Glenn Nielsen <glenn () voyager ! apg ! more ! net>
Date: 2002-05-28 14:15:28
[Download RAW message or body]
You might try using the regexp taglib substitute tag.
Cliffano Subagio wrote:
>
> Hi Henri,
>
> Sorry about my mistake (forgot to type in the <foo> tag), your example is
> correct.
>
> Basically I want to replace a tag within a long string with another tag.
>
> At the moment, I have a workaround by replacing the name of the tag without the
> angled brackets.
> E.g.: <str:replace replace="foo" with="bar">
> while what it really needs is
> <str:replace replace="<foo>" with="<bar>"> which doesn't work
> or
> <str:replace replace="<foo>" with="<bar>"> which also failed
>
> <str:replace replace="foo" with="bar"> creates problem if the actual non-tag
> string includes the word 'foo'.
>
> --- Henri Yandell <bayard@generationjava.com> wrote: > Just to let you know
> Cliffano. Have read the email and need to go research
> > the idea. I'm assuming that rather than Kung Foo in your example, it
> > should be <kung><foo>KungFoo</foo></kung>??
> >
> > I need to figure out what it is the taglib engine passes to me. Maybe I
> > need a 'tagreplace' tag.
> >
> > Does anyone know if the xsl taglib would provide any support here? That
> > way <foo> and </foo> would both be handled nicely I guess.
> >
> > Hen
> >
> >
>
> =====
> Cliffano Subagio
>
> http://travel.yahoo.com.au - Yahoo! Travel
> - Plan and book your dream holiday online!
>
> --
> To unsubscribe, e-mail: <mailto:taglibs-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:taglibs-user-help@jakarta.apache.org>
--
----------------------------------------------------------------------
Glenn Nielsen glenn@more.net | /* Spelin donut madder |
MOREnet System Programming | * if iz ina coment. |
Missouri Research and Education Network | */ |
----------------------------------------------------------------------
--
To unsubscribe, e-mail: <mailto:taglibs-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:taglibs-user-help@jakarta.apache.org>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic