{book := object(),
book.extendid := encode-for-uri(input/@name)
} |
{book.duedate := parse-date(., "dd.mm.yyyy")} |
{book.category := extract(text(), "\[(.*)\]", 1),
book.title := if (contains(text(), "]")) then extract(text(), "(\] )(.*)", 2) else text()}
{preid := text()}
{book.id := concat($preid,":",text())} |
{message := if (contains(., "- Stand")) then extract(deep-text(" "), "(.*)- Stand", 1) else deep-text(" ")}
|