1
<?xml version="1.0" encoding="UTF-8"?>
3
<transform xmlns="http://www.w3.org/1999/XSL/Transform"
4
xmlns:echo="http://docs.openstack.org/echo/api/v1.0"
6
<output method="text" encoding="UTF-8"/>
8
<template match="echo:echo">
9
<text>{ "echo" : { </text>
10
<apply-templates select="@*"/>
16
<template match="echo:content">
17
<text>"content" : {</text>
18
<apply-templates select="@*"/>
19
<text>, "value" : "</text>
25
<if test="position() != 1">
29
<value-of select="name()"/>
31
<value-of select="."/>
35
<template match="text()">
36
<variable name="noeol" select="translate(string(.),'
','')"/>
37
<variable name="noquote" select="translate($noeol,'"',"'")"/>
38
<value-of select="$noquote"/>