xTxT Documentation

XmlHtmlElement

This is a non-XSL transform, based on simple

/xmlhtmltemplate
$xml=url
$select= .. xpath ..

Passing Params into XML

/param foo
bar
/xmlhtmltemplate
$xml=url{{foo}}
$select=//item
$limit=10
...

Options

xml (required)

select (required)

limit (optional)

XML Namespaces

The default namespace xmlns="" is automatically stripped to simplify element referencing

/xmlhtmltemplate
$xml=http://picasaweb.google.com/data/feed/base/user/104445279755405735308/albumid/6049494112877008257?alt=rss&kind=photo&authkey=Gv1sRgCPTA9YW-0NXw0QE&hl=en_US&prettyprint=true&imgmax=1600u&thumbsize=800c
$select=//item
@atom=http://www.w3.org/2005/Atom
@gphoto=http://schemas.google.com/photos/2007
@media=http://search.yahoo.com/mrss/
@openSearch=http://a9.com/-/spec/opensearchrss/1.0/
<li><a data-rel="prettyphoto[]" href="{{title}}">
<img src="{{media:group/media:content/@url}}" alt=""></a></li>

Example

/xmlhtmltemplate
$xml=http://www.youtube.com/rss/user/mikew7/videos.rss
$select=//item
$limit=6
<li>{{//title}}</li>