Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:xxforms="http://orbeon.org/oxf/xml/xforms" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:xs="http://www.w3.org/2001/XMLSchema"> <head> <title>Hierarchy with a single-level repeat</title> <xforms:model> <xforms:instance> <root> <element1> <element2> <element3> <element1> <element2> <element3/> </element2> </element1> </element3> </element2> </element1> </root> </xforms:instance> </xforms:model> </head> <body> <xforms:repeat nodeset="//*"> <xforms:output value="string-join(for $element in ancestor-or-self::* return '', ' → ')"/> <xforms:output value="name()"/> <br/> </xforms:repeat> </body> </html>
This paste will be private.
From the Design Piracy series on my blog: