Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

https://github.com/zavr/erlxslt

Erlang xslt processor with pool and lightweight xml serializer (from lists and proplists).
https://github.com/zavr/erlxslt

Last synced: 3 months ago
JSON representation

Erlang xslt processor with pool and lightweight xml serializer (from lists and proplists).

Lists

README

        

# Erlang Xslt & Xml (Что это)

Простой многопоточный xslt-преобразователь.
В комлекте прилагается сериализатор в xml.

# Requirements (Что нужно)

* libxml2
* libxslt
* gcc
* gnumake
* erlang
* rebar

# Options (Настройка)

* В `./rebar.conf` (`DRV_LDFLAGS`) можно стереть `-DDEBUG`
тем самым вы включите кеширование шаблонов.write_cmd

# Example (Пример)

## Xslt

Xml = ""
""
""
"Empire Burlesque"
"Bob Dylan"
"USA"
"Columbia"
"10.90"
"1985"
""
"",

xslt:start_link(),
xslt:apply("priv/xsl/template.xsl", Xml).

## Xml

### Seq

>>> xml:encode_seq({data, "some data"}).
"some data"
>>> xml:encode_seq({data, [a, b, c]})
"abc",
>>> xml:encode_seq({data,{more, 1}})
"1"

### Para

>>> xml:start_link().
>>> xml:encode({data, "some data"}).
"some data"
>>> xml:encode({data, [a, b, c]})
"abc",
>>> xml:encode({data,{more, 1}})
"1"

# Credis (Кто это натворил)

* Сергей Кожевников (Serge Kozhevnikov aka cff, 2011);
* Илья w-495 Никитин (w-495, 2012).

# TODO

* Документировать код.
* Перевести xml на xmerl.
* Оформить в виде отдельной ноды.