Here:
scala> import net.liftweb.util.Helpers._
import net.liftweb.util.Helpers._
scala> val myxml= <div class="parent">
| <div class="first">1</div>
| <div class="second">2</div>
| </div>
myxml: scala.xml.Elem =
<div class="parent">
<div class="first">1</div>
<div class="second">2</div>
</div>
scala> def common = ".parent" #> (".first *" #> "first")
common: net.liftweb.util.CssSel
scala> def additional= ".parent ^^" #> "ignore" & ".second *" #> "second"
additional: net.liftweb.util.CssSel
scala> def test1 = common & additional
test1: net.liftweb.util.CssSel
scala> test1(myxml)
res8: scala.xml.NodeSeq =
NodeSeq(<div class="parent">
<div class="first">first</div>
<div class="second">2</div>
</div>)
scala> def test1 = common andThen additional
test1: (scala.xml.NodeSeq) => scala.xml.NodeSeq
scala> test1(myxml)
res9: scala.xml.NodeSeq =
NodeSeq(<div class="parent">
<div class="first">first</div>
<div class="second">second</div>
</div>)
scala>
Regards,
Diego
> --
> You received this message because you are subscribed to the Google Groups
> "Lift" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/liftweb/-/4WrW6Dsklx0J.
> To post to this group, send email to lif...@googlegroups.com.
> To unsubscribe from this group, send email to
> liftweb+u...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/liftweb?hl=en.
>
--
Diego Medina
Web Developer
(305) 788-4954
di...@fmpwizard.com
http://www.fmpwizard.com
--
You received this message because you are subscribed to the Google Groups "Lift" group.
To view this discussion on the web visit https://groups.google.com/d/msg/liftweb/-/OVGK2YcJ5uoJ.
To post to this group, send email to lif...@googlegroups.com.
To unsubscribe from this group, send email to liftweb+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.
Hi!Now i see. It makes sense. Thank you for your answer!
--
You received this message because you are subscribed to the Google Groups "Lift" group.
To view this discussion on the web visit https://groups.google.com/d/msg/liftweb/-/muER6ZQ4aj8J.
To post to this group, send email to lif...@googlegroups.com.
To unsubscribe from this group, send email to liftweb+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.