I am writing an xml-to-json converter using xslt. I convert

```
<raw>
    <id>0</id>
    <type>label</type>
    <title>Test</title>
    <uri>...</uri>
</raw>

```

to

```
{ "id" = "0", "type"="label", "title" = "Test", "uri" = "..." }

```

using an `<xsl:for-each>` iterating over the child nodes of tag `<raw>`, and adding commas with `<xsl:if test="following-sibling::*">, </xsl:if>`.

However, if I want to change the above xml to use attributes instead of child nodes:

```
<raw id="0" type="label" title="Test" uri="..." />

```

the `following-sibling::*` test fails and no commas are added. Is there an equivalent of `following-sibling::*` that works for attributes? If not, is it possible to do what I intend here?