Skip to content
Snippets Groups Projects
Commit 94b5e9dd authored by miesma's avatar miesma
Browse files

add stylesheet, schema, database

parent b89b7141
No related branches found
No related tags found
No related merge requests found
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" >
<xsl:template match="/">
<planes xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="file:///C:/Users/Julian/Desktop/xml/xml_database_v3_schema.xsd">
<xsl:apply-templates/>
</planes>
</xsl:template>
<xsl:template match="/*">
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="/*">
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="/*">
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="/*">
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="result">
<plane><xsl:apply-templates/></plane>
</xsl:template>
<xsl:template match="binding[@name='strname']">
<name><xsl:copy-of select="node()/text()"/></name>
</xsl:template>
<xsl:template match="binding[@name='stueck']">
<stueck><xsl:copy-of select="node()/text()"/></stueck>
</xsl:template>
<xsl:template match="binding[@name='erstflug']">
<erstflug><xsl:copy-of select="node()/text()"/></erstflug>
</xsl:template>
<xsl:template match="binding[@name='Flugzeug']">
<uri><xsl:copy-of select="node()/text()"/></uri>
</xsl:template>
<xsl:template match="binding[@name='abstract']">
<beschreibung><xsl:copy-of select="node()/text()"/></beschreibung>
</xsl:template>
<xsl:template match="binding[@name='thumbnail']">
<bild><xsl:copy-of select="node()/text()"/></bild>
</xsl:template>
<xsl:template match="binding[@name='Hersteller']">
<herstellerURI><xsl:copy-of select="node()/text()"/></herstellerURI>
</xsl:template>
<xsl:template match="URL[@xml:space='preserve']">
<herstellerURL><xsl:copy-of select="node()/text()"/></herstellerURL>
</xsl:template>
<xsl:template match="binding[@name='NHersteller']">
<herstellerName><xsl:copy-of select="node()/text()"/></herstellerName>
</xsl:template>
<xsl:template match="Url">
<herstellerUrl><xsl:copy-of select="text()"/></herstellerUrl>
</xsl:template>
<xsl:template match="Description">
<herstellerBeschreibung><xsl:copy-of select="text()"/></herstellerBeschreibung>
</xsl:template>
<xsl:template match="Query">
</xsl:template>
<xsl:template match="Text">
</xsl:template>
</xsl:stylesheet>
\ No newline at end of file
This diff is collapsed.
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
<xs:element name="planes">
<xs:complexType>
<xs:sequence>
<xs:element ref="plane" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="plane">
<xs:complexType mixed="true">
<xs:choice maxOccurs="unbounded">
<xs:element name="name" type="xs:string"/>
<xs:element name="stueck" type="xs:string"/>
<xs:element name="erstflug" type="xs:string"/>
<xs:element name="uri" type="xs:string"/>
<xs:element name="beschreibung" type="xs:string"/>
<xs:element name="bild" type="xs:string"/>
<xs:element name="herstellerURI" type="xs:string"/>
<xs:element name="herstellerUrl" type="xs:string"/>
<xs:element name="herstellerBeschreibung" type="xs:string"/>
<xs:element name="herstellerName" type="xs:string"/>
</xs:choice>
</xs:complexType>
</xs:element>
</xs:schema>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment