View Single Post
Old 03-31-2011, 04:20 PM   #1
janneman
Member
janneman ought to be getting tired of karma fortunes by now.janneman ought to be getting tired of karma fortunes by now.janneman ought to be getting tired of karma fortunes by now.janneman ought to be getting tired of karma fortunes by now.janneman ought to be getting tired of karma fortunes by now.janneman ought to be getting tired of karma fortunes by now.janneman ought to be getting tired of karma fortunes by now.janneman ought to be getting tired of karma fortunes by now.janneman ought to be getting tired of karma fortunes by now.janneman ought to be getting tired of karma fortunes by now.janneman ought to be getting tired of karma fortunes by now.
 
Posts: 13
Karma: 2136218
Join Date: Jan 2010
Device: BEBOOK
XML files and XSD file to EPUB

I have downloaded documentation in an XML format from the siemens website.

It is zip folder with:
- XML file
Code:
<?xml version="1.0" encoding="utf-8"?>

<export version="1.0" type="xml" xmlns:child="http://www.schema.de/2002/ST4/Transformation/child" xmlns:attribute="http://www.schema.de/2002/ST4/Transformation/attribute" xmlns:outgoinglink="http://www.schema.de/2002/ST4/Transformation/outgoinglink" xmlns:incominglink="http://www.schema.de/2002/ST4/Transformation/incominglink" xmlns:parentlink="http://www.schema.de/2002/ST4/Transformation/parentlink" xmlns:stobject="http://www.schema.de/2002/ST4/Transformation/stobject" xmlns:external="http://www.schema.de/2002/ST4/Transformation/external">
  <metadata>
    <documentid>0ef014e9-7e5d-4afe-8924-232b265888bb</documentid>
    <title>MDM - WinCC: Working with WinCC</title>
    <creationdate>3/31/2011 1:58:00 PM</creationdate>
    <created_by>XXXXXXXXXXXX</created_by>
    <url>
    </url>
  </metadata>
  <node title="Working with Projects">
    <topic title="Working with Projects" href="datavalues/en-US/T_2350636427_16484426123_en-US_3.xml" />
    <topic title="Opening WinCC Explorer" href="datavalues/en-US/T_10393969035_16484426123_en-US_4.xml" />

AND SO ON ....

  <node title="Source documents">
    <topic title="&#xA;                  " href="datavalues/T_documentList.xml" />
  </node>
</export>
- an XSD file
Code:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<!--
 
**********************************************************

     Siemens AuD My Documentation Manager XML Export Structure SCHEMA DEFINITION (XMLExport.xsd) 
     Copyright© 2007 SIEMENS AG   
     

**********************************************************

    Version 1.00 2007-11-27

**********************************************************

Aenderungen:

**********************************************************
    
-->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" version="1.0">
	<xs:element name="created_by">
		<xs:simpleType>
			<xs:restriction base="xs:string"/>
		</xs:simpleType>
	</xs:element>
	<xs:element name="creationdate">
		<xs:simpleType>
			<xs:restriction base="xs:string"/>
		</xs:simpleType>
	</xs:element>
	<xs:element name="documentid">
		<xs:simpleType>
			<xs:restriction base="xs:string"/>
		</xs:simpleType>
	</xs:element>
	<xs:element name="export">
		<xs:complexType>
			<xs:sequence>
				<xs:element name="metadata" type="metadataType"/>
				<xs:element name="structure" type="structureType" maxOccurs="unbounded"/>
			</xs:sequence>
			<xs:attribute name="version" use="required">
				<xs:simpleType>
					<xs:restriction base="xs:decimal"/>
				</xs:simpleType>
			</xs:attribute>
			<xs:attribute name="type" use="required">
				<xs:simpleType>
					<xs:restriction base="xs:string"/>
				</xs:simpleType>
			</xs:attribute>
		</xs:complexType>
	</xs:element>
	<xs:complexType name="metadataType">
		<xs:sequence>
			<xs:element ref="documentid"/>
			<xs:element ref="title"/>
			<xs:element ref="creationdate"/>
			<xs:element ref="created_by"/>
			<xs:element ref="url"/>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="nodeType">
		<xs:attribute name="title" use="required">
			<xs:simpleType>
				<xs:restriction base="xs:string"/>
			</xs:simpleType>
		</xs:attribute>
		<xs:attribute name="href" use="required">
			<xs:simpleType>
				<xs:restriction base="xs:string"/>
			</xs:simpleType>
		</xs:attribute>
	</xs:complexType>
	<xs:complexType name="structureType">
		<xs:sequence maxOccurs="unbounded">
			<xs:element name="topic" type="nodeType" minOccurs="0" maxOccurs="unbounded"/>
			<xs:element name="structure" type="structureType" minOccurs="0" maxOccurs="unbounded"/>
		</xs:sequence>
		<xs:attribute name="title" use="required">
			<xs:simpleType>
				<xs:restriction base="xs:string"/>
			</xs:simpleType>
		</xs:attribute>
	</xs:complexType>
	<xs:element name="title">
		<xs:simpleType>
			<xs:restriction base="xs:string"/>
		</xs:simpleType>
	</xs:element>
	<xs:element name="url">
		<xs:simpleType>
			<xs:restriction base="xs:anyURI"/>
		</xs:simpleType>
	</xs:element>
</xs:schema>

- a subfolder 'datavalues' with all the chapters in XML format




How can I convert this zipfile to an epub file?

I tried calibre, but it won't accept the zip file.

thanks

Last edited by janneman; 03-31-2011 at 04:24 PM.
janneman is offline   Reply With Quote