xml.KREN_CNTNT_TYP_T.xml Maven / Gradle / Ivy
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE dataset SYSTEM "ks-bundled-db.dtd"> <!-- Auto-generated by the Maven Impex Plugin --> <dataset> <KREN_CNTNT_TYP_T CNTNT_TYP_ID="1" CNTNT_TYP_VER_NBR="0" CUR_IND="T" DESC_TXT="Simple content type" NM="Simple" NMSPC_CD="notification/ContentTypeSimple" VER_NBR="1" XSD="<?xml version="1.0" encoding="UTF-8"?>
<!-- This schema describes a simple notification. It only contains a content
element which is a String...about as simple as one can get -->
<schema xmlns="http://www.w3.org/2001/XMLSchema"
 xmlns:c="ns:notification/common"
 xmlns:cs="ns:notification/ContentTypeSimple"
 targetNamespace="ns:notification/ContentTypeSimple"
 attributeFormDefault="unqualified" 
 elementFormDefault="qualified">
 <annotation>
 <documentation xml:lang="en">
 Simple Content Schema
 </documentation>
 </annotation>
 <import namespace="ns:notification/common" schemaLocation="resource:notification/notification-common" />
 <!-- The content element is just a String -->
 <element name="content">
 <complexType>
 <sequence>
 <element name="message" type="c:LongStringType"/>
 </sequence>
 </complexType>
 </element>
</schema>" XSL="<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet
 version="1.0" 
 xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
 xmlns:n="ns:notification/ContentTypeSimple" 
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
 xsi:schemaLocation="ns:notification/ContentTypeSimple resource:notification/ContentTypeSimple" 
 exclude-result-prefixes="n xsi">
 <xsl:output method="html" omit-xml-declaration="yes" />
 <xsl:template match="/n:content/n:message">
 <strong>
 <xsl:value-of select="." disable-output-escaping="yes"/>
 </strong>
 </xsl:template>
</xsl:stylesheet>"/> <KREN_CNTNT_TYP_T CNTNT_TYP_ID="2" CNTNT_TYP_VER_NBR="0" CUR_IND="T" DESC_TXT="Event content type" NM="Event" NMSPC_CD="notification/ContentTypeEvent" VER_NBR="1" XSD="<?xml version="1.0" encoding="UTF-8"?>
<!-- This schema defines an generic event notification type in order for it
to be accepted into the system. -->
<schema xmlns="http://www.w3.org/2001/XMLSchema" xmlns:c="ns:notification/common" xmlns:ce="ns:notification/ContentTypeEvent" targetNamespace="ns:notification/ContentTypeEvent" attributeFormDefault="unqualified" elementFormDefault="qualified">
 <annotation>
 <documentation xml:lang="en">Content Event Schema</documentation>
 </annotation>
 <import namespace="ns:notification/common" schemaLocation="resource:notification/notification-common" />
 <!-- The content element describes the content of the notification. It
 contains a message (a simple String) and a message element -->
 <element name="content">
 <complexType>
 <sequence>
 <element name="message" type="c:LongStringType"/>
 <element ref="ce:event"/>
 </sequence>
 </complexType>
 </element>
 <!-- This is the event element. It describes a simple event type containing a
 summary, description, location, and start/stop times -->
 <element name="event">
 <complexType>
 <sequence>
 <element name="summary" type="c:NonEmptyShortStringType" />
 <element name="description" type="c:NonEmptyShortStringType" />
 <element name="location" type="c:NonEmptyShortStringType" />
 <element name="startDateTime" type="c:NonEmptyShortStringType" />
 <element name="stopDateTime" type="c:NonEmptyShortStringType" />
 </sequence>
 </complexType>
 </element>
</schema>" XSL="<?xml version="1.0" encoding="UTF-8"?>
<!-- style sheet declaration: be very careful editing the following, the
 default namespace must be used otherwise elements will not match -->
<xsl:stylesheet
 version="1.0" 
 xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
 xmlns:n="ns:notification/ContentTypeEvent" 
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
 xsi:schemaLocation="ns:notification/ContentTypeEvent resource:notification/ContentTypeEvent" 
 exclude-result-prefixes="n xsi">
 <!-- output an html fragment -->
 <xsl:output method="html" indent="yes" />
 <!-- match everything -->
 <xsl:template match="/n:content" >
 <table class="bord-all">
 <xsl:apply-templates />
 </table>
 </xsl:template>
 <!-- match message element in the default namespace and render as strong -->
 <xsl:template match="n:message" >
 <caption>
 <strong><xsl:value-of select="." disable-output-escaping="yes"/></strong>
 </caption>
 </xsl:template>
 <!-- match on event in the default namespace and display all children -->
 <xsl:template match="n:event">
 <tr>
 <td class="thnormal"><strong>Summary: </strong></td>
 <td class="thnormal"><xsl:value-of select="n:summary" /></td>
 </tr>
 <tr>
 <td class="thnormal"><strong>Description: </strong></td>
 <td class="thnormal"><xsl:value-of select="n:description" /></td>
 </tr>
 <tr>
 <td class="thnormal"><strong>Location: </strong></td>
 <td class="thnormal"><xsl:value-of select="n:location" /></td>
 </tr>
 <tr>
 <td class="thnormal"><strong>Start Time: </strong></td>
 <td class="thnormal"><xsl:value-of select="n:startDateTime" /></td>
 </tr>
 <tr>
 <td class="thnormal"><strong>End Time: </strong></td>
 <td class="thnormal"><xsl:value-of select="n:stopDateTime" /></td>
 </tr>
 </xsl:template> 
</xsl:stylesheet>"/> </dataset>