Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Changing labels with CssSelector #1236

Open
fanf opened this Issue · 0 comments

5 participants

@fanf

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.

@dpp dpp was assigned
@Shadowfiend Shadowfiend added this to the 3.0-M1 milestone
@dpp dpp was unassigned by Shadowfiend
@Shadowfiend Shadowfiend self-assigned this
@farmdawgnation farmdawgnation modified the milestone: 3.0-M2, 3.0-M3
@Shadowfiend Shadowfiend modified the milestone: 3.0-M3, 3.0-M4
@fmpwizard fmpwizard modified the milestone: 3.0-M4, 3.0-M6
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.