velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bill Burton <bi...@progress.com>
Subject Re: DVSL - replace tags inside unknown parent tags
Date Fri, 06 Dec 2002 00:25:18 GMT
Hello,

You need to read up on XPath.  A good tutorial can be found at 
http://www.zvon.org/xxl/XPathTutorial/General/examples.html.

Also, in the examples, you can see the #match directive being used on 
the <section> and other elements.  So you would probably do this:

     #match("tag-to-replace")
     ...
     #end

Hope this helps,
-Bill

Wido Hillmann wrote:
> My DVSL problem:
> 
> <variable-tag>
> 	<foo/><bar/>
> 	<tag-to-replace>other elements</tag-to-replace>
> 	<etc/>
> </variable-tag>
> 
> How can I replace the <tag-to-replace> - tag without knowledge about the
> surrounding tags?
> 
> -wido



--
To unsubscribe, e-mail:   <mailto:velocity-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:velocity-user-help@jakarta.apache.org>


Mime
View raw message