Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Changing labels with CssSelector #1236

Open
fanf opened this Issue · 0 comments

4 participants

Francois Armand David Pollak Antonio Salazar Cardozo Matt Farmer
Francois Armand

This ticket follows the discussion on the mailing list about rewrapping Elem:
https://groups.google.com/d/topic/liftweb/uVW4xOPgnk8/discussion

For example:

    <people version="1" otherProp="prop">
      <name>foo</name>
      <friends><name>bar</name></name><name>baz</name></friends>
    </people>
Into:
    <user version="2" otherProp="prop">
      <login>foo</login>
      <knows><name>bar</name></name><name>baz</name></knows>
    </user>

Proposed solution:

"people" #> ((ns: NodeSeq) => <user version="2">{
  val kids = ns.asInstanceOf[Elem].child
  ("name" #> ((ns: NodeSeq) => <login>{ns.asInstanceOf[Elem].child}</login>)).apply(kids)
}</user>)

But should be simpler.

David Pollak dpp was assigned
Antonio Salazar Cardozo Shadowfiend added this to the 3.0-M1 milestone
David Pollak dpp was unassigned by Shadowfiend
Antonio Salazar Cardozo Shadowfiend self-assigned this
Matt Farmer farmdawgnation modified the milestone: 3.0-M2, 3.0-M3
Antonio Salazar Cardozo Shadowfiend modified the milestone: 3.0-M3, 3.0-M4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.