This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package org.greeneyed.xslt.demo.controllers; | |
| import static org.hamcrest.CoreMatchers.equalTo; | |
| import static org.hamcrest.CoreMatchers.instanceOf; | |
| import static org.junit.Assert.assertNotNull; | |
| import static org.junit.Assert.assertThat; | |
| import static org.mockito.Mockito.doReturn; | |
| import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get; | |
| import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.content; | |
| import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package org.greeneyed.xslt.demo.controllers; | |
| import org.greeneyed.summer.config.XsltConfiguration.XsltModelAndView; | |
| import org.greeneyed.xslt.demo.model.App; | |
| import org.greeneyed.xslt.demo.services.PojoService; | |
| import org.springframework.beans.factory.annotation.Autowired; | |
| import org.springframework.web.bind.annotation.RequestMapping; | |
| import org.springframework.web.bind.annotation.RestController; | |
| import org.springframework.web.servlet.ModelAndView; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" ?> | |
| <xsl:stylesheet | |
| xmlns:xsl="http://www.w3.org/1999/XSL/Transform" | |
| xmlns:xs="http://www.w3.org/2001/XMLSchema" | |
| xmlns:math="http://www.w3.org/2005/xpath-functions/math" | |
| xmlns:xd="http://www.oxygenxml.com/ns/doc/xsl" | |
| xmlns:emp="http://www.semanticalllc.com/ns/employees#" | |
| xmlns:h="http://www.w3.org/1999/xhtml" | |
| xmlns:fn="http://www.w3.org/2005/xpath-functions" | |
| xmlns:j="http://www.w3.org/2005/xpath-functions" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package org.greeneyed.xslt.demo; | |
| import org.greeneyed.summer.config.enablers.EnableSummer; | |
| import org.springframework.boot.SpringApplication; | |
| import org.springframework.boot.autoconfigure.SpringBootApplication; | |
| @SpringBootApplication | |
| @EnableSummer(xslt_view = true, log4j = false) | |
| public class XsltDemoApplication { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <dependency> | |
| <groupId>org.greeneyed</groupId> | |
| <artifactId>summer</artifactId> | |
| <version>0.10.7</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>net.sf.saxon</groupId> | |
| <artifactId>Saxon-HE</artifactId> | |
| <version>9.9.1-4</version> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="UTF-8"?> | |
| <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
| xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" | |
| > | |
| <modelVersion>4.0.0</modelVersion> | |
| <parent> | |
| <groupId>org.springframework.boot</groupId> | |
| <artifactId>spring-boot-starter-parent</artifactId> | |
| <version>1.5.21.RELEASE</version> | |
| <relativePath /> <!-- lookup parent from repository --> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <app id="Listing"> | |
| <pojos> | |
| <pojo id="anId" name="aName"/> | |
| <pojo id="anotherId" name="anotherName"/> | |
| </pojos> | |
| </app> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package org.greeneyed.xslt.demo.model; | |
| import java.util.List; | |
| import javax.xml.bind.annotation.XmlAccessType; | |
| import javax.xml.bind.annotation.XmlAccessorType; | |
| import javax.xml.bind.annotation.XmlAttribute; | |
| import javax.xml.bind.annotation.XmlElement; | |
| import javax.xml.bind.annotation.XmlElementWrapper; | |
| import javax.xml.bind.annotation.XmlRootElement; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package org.greeneyed.xslt.demo.model; | |
| import javax.xml.bind.annotation.XmlAccessType; | |
| import javax.xml.bind.annotation.XmlAccessorType; | |
| import javax.xml.bind.annotation.XmlAttribute; | |
| import javax.xml.bind.annotation.XmlRootElement; | |
| import lombok.AllArgsConstructor; | |
| import lombok.Data; | |
| import lombok.NoArgsConstructor; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package org.greeneyed.xslt.demo.services; | |
| import java.util.Arrays; | |
| import java.util.List; | |
| import org.greeneyed.xslt.demo.model.MyPojo; | |
| import org.springframework.stereotype.Service; | |
| @Service | |
| public class PojoService { |
NewerOlder