Texy syntaxe: oprava chyby – ztrácely se konce řádků (problém u elementů s atributy).
1 <?xml version="1.0" encoding="UTF-8"?>
2 <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page"
3 xmlns:c="http://java.sun.com/jsp/jstl/core"
4 xmlns:fmt="http://java.sun.com/jsp/jstl/fmt"
6 <jsp:directive.page contentType="application/atom+xml"/>
9 <c:if test="${param.jazyk != null}">
10 <fmt:setLocale value="${param.jazyk}" scope="session"/>
12 <fmt:setBundle basename="cz.frantovo.nekurak.preklady" scope="application"/>
13 <!-- </lokalizace> -->
15 <jsp:useBean id="atom" class="cz.frantovo.nekurak.web.Atom" scope="request"/>
17 <feed xmlns="http://www.w3.org/2005/Atom">
18 <title><fmt:message key="nazev"/></title>
19 <subtitle><fmt:message key="popis"/></subtitle>
20 <link href="http://nekurak.net/atom/" rel="self"/>
21 <link href="http://nekurak.net/"/>
23 <fmt:formatDate value="${atom.datumAktualizace}" pattern="yyyy-MM-dd'T'HH:mm:ss'Z'"/>
26 <name>František Kučera</name>
27 <email>franta_nechci_spam@frantovo.cz</email>
29 <id>urn:uuid:0663f9ab-e289-47b3-893f-5bafcf8dc110</id>
32 <c:forEach var="podnik" items="${atom.podniky}">
34 <title><c:out value="${podnik.nazev}"/></title>
35 <link href="http://nekurak.net/podnik/${podnik.id}"/>
36 <id>urn:NekurakNET:podnik:${podnik.id}</id>
38 <fmt:formatDate value="${podnik.datum}" pattern="yyyy-MM-dd'T'HH:mm:ss'Z'"/>
40 <summary><c:out value="${podnik.popis}"/></summary>