[qooxdoo-commit] SF.net SVN: qooxdoo: [11045] branches/legacy_0_7_x/qooxdoo/frontend/ framework/too
Brought to you by:
ecker,
martinwittemann
From: <wp...@us...> - 2007-12-21 18:53:16
|
Revision: 11045 http://qooxdoo.svn.sourceforge.net/qooxdoo/?rev=11045&view=rev Author: wpbasti Date: 2007-12-21 10:53:11 -0800 (Fri, 21 Dec 2007) Log Message: ----------- Cleanup of unused stuff Removed Paths: ------------- branches/legacy_0_7_x/qooxdoo/frontend/framework/tool2/impl/compat/graph.py branches/legacy_0_7_x/qooxdoo/frontend/framework/tool2/impl/compat/qx-xml.dtd branches/legacy_0_7_x/qooxdoo/frontend/framework/tool2/impl/compat/qx-xml.rnc branches/legacy_0_7_x/qooxdoo/frontend/framework/tool2/impl/compat/qx-xml.rng branches/legacy_0_7_x/qooxdoo/frontend/framework/tool2/impl/compat/qx-xml2qx-json.xsl Deleted: branches/legacy_0_7_x/qooxdoo/frontend/framework/tool2/impl/compat/graph.py =================================================================== --- branches/legacy_0_7_x/qooxdoo/frontend/framework/tool2/impl/compat/graph.py 2007-12-21 18:51:30 UTC (rev 11044) +++ branches/legacy_0_7_x/qooxdoo/frontend/framework/tool2/impl/compat/graph.py 2007-12-21 18:53:11 UTC (rev 11045) @@ -1,109 +0,0 @@ -################################################################################ -# -# qooxdoo - the new era of web development -# -# http://qooxdoo.org -# -# Copyright: -# 2006-2007 1&1 Internet AG, Germany, http://www.1and1.org -# -# License: -# LGPL: http://www.gnu.org/licenses/lgpl.html -# EPL: http://www.eclipse.org/org/documents/epl-v10.php -# See the LICENSE file in the project's top-level directory for details. -# -# Authors: -# * Fabian Jakobs (fjakobs) -# -################################################################################ - -# Write dependencies to a Graphviz compatible file (http://www.graphviz.org/) - -## -#<h2>Module Description</h2> -#<pre> -# NAME -# module.py -- module short description -# -# SYNTAX -# module.py --help -# -# or -# -# import module -# result = module.func() -# -# DESCRIPTION -# The module module does blah. -# -# CAVEATS -# -# KNOWN ISSUES -# There are no known issues. -#</pre> -## - - -import os -import math -import filetool - -## -# Some nice short description of foo(); this can contain html and -# {@link #foo Links} to items in the current file. -# -# @param a Describe a positional parameter -# @keyparam b Describe a keyword parameter -# @def foo(name) # overwrites auto-generated function signature -# @param name Describe aliased parameter -# @return Description of the things returned -# @defreturn The return type -# @exception IOError The error it throws -# -def foo(a,b): - - ## - # This comment provides documentation for the following - # variable. - variable = value -def dotLine(fileDb, fileId, depEntry, largetFileSize): - file = fileId.split(".") - dep = depEntry.split(".") - weight = 1 - - for i in range(len(file)): - if file[i] == dep[i]: - weight += 1 - else: - break - - size = os.path.getsize(fileDb[fileId]["path"]) - - content = ' "%s" [color="%s %s 1.000"];\n' % (fileId, math.log(size)/math.log(largetFileSize), math.log(size)/math.log(largetFileSize)) - content += ' "%s" -> "%s" [weight=%s];\n' % (fileId, depEntry, weight) - - return content - - -def store(fileDb, sortedIncludeList, options): - content = '''digraph "qooxdoo" { -node [style=filled]; -''' - - largest = 0 - for fileId in sortedIncludeList: - size = os.path.getsize(fileDb[fileId]["path"]) - if size > largest: - largest = size - - for fileId in sortedIncludeList: - if len(fileDb[fileId]["loadtimeDeps"]) > 0: - for depEntry in fileDb[fileId]["loadtimeDeps"]: - content += dotLine(fileDb, fileId, depEntry, largest) - - if len(fileDb[fileId]["runtimeDeps"]) > 0: - for depEntry in fileDb[fileId]["runtimeDeps"]: - content += dotLine(fileDb, fileId, depEntry, largest) - - content += '}' - filetool.save(options.depDotFile, content) Deleted: branches/legacy_0_7_x/qooxdoo/frontend/framework/tool2/impl/compat/qx-xml.dtd =================================================================== --- branches/legacy_0_7_x/qooxdoo/frontend/framework/tool2/impl/compat/qx-xml.dtd 2007-12-21 18:51:30 UTC (rev 11044) +++ branches/legacy_0_7_x/qooxdoo/frontend/framework/tool2/impl/compat/qx-xml.dtd 2007-12-21 18:53:11 UTC (rev 11045) @@ -1,101 +0,0 @@ -<!-- Doctree --> -<!ELEMENT doctree (packages*)> -<!ATTLIST doctree - hasWarning (true|false) #IMPLIED -> -<!ELEMENT packages (package*)> -<!ELEMENT package (packages* | (classes?, functions?))> -<!ATTLIST package name CDATA #REQUIRED - packageName CDATA #REQUIRED - fullName CDATA #REQUIRED - hasWarning (true|false) #IMPLIED -> -<!ELEMENT classes (class*)> -<!ELEMENT functions (function*)> - -<!-- Class --> -<!ELEMENT class (deprecated?, superInterfaces?, superMixins?, constants?, - constructor?, methods-static?, events?, properties?, methods?) -> -<!ATTLIST class name CDATA #REQUIRED - packageName CDATA #REQUIRED - fullName CDATA #REQUIRED - type (class|interface|mixin) #IMPLIED - isStatic (true|false) #IMPLIED - isAbstract (true|false) #IMPLIED - childClasses CDATA #IMPLIED - superClass CDATA #IMPLIED - implementations CDATA #IMPLIED - interfaces CDATA #IMPLIED - mixins CDATA #IMPLIED - includer CDATA #IMPLIED - hasWarning (true|false) #IMPLIED -> -<!ELEMENT superInterfaces (interface*)> -<!ELEMENT superMixins (interface*)> -<!ELEMENT constants (constant*)> -<!ELEMENT constructor (method)> -<!ELEMENT methods-static (method*)> -<!ELEMENT events (event*)> -<!ELEMENT properties (property*)> -<!ELEMENT methods (method*)> - -<!-- Interface --> -<!ELEMENT interface EMPTY> -<!ATTLIST interface name CDATA #REQUIRED> - -<!-- Constant --> -<!ELEMENT constant (deprecated?, desc?, types?)> -<!ATTLIST constant name CDATA #REQUIRED - value CDATA #REQUIRED - type CDATA #REQUIRED -> - -<!-- Property --> -<!ELEMENT property (deprecated?, errors?)> -<!ATTLIST property name CDATA #REQUIRED - hasError (true|false) #IMPLIED - docFrom CDATA #IMPLIED - overriddenFrom CDATA #IMPLIED - hasWarning (true|false) #IMPLIED - defaultValue CDATA #IMPLIED - type CDATA #IMPLIED - isMixin (true|false) #IMPLIED -> - -<!-- Method --> -<!ELEMENT method (deprecated?, params?, desc?, return?, errors?) -> -<!ATTLIST method overriddenFrom CDATA #IMPLIED - name CDATA #IMPLIED - hasError (true|false) #IMPLIED - isCtor (true|false) #IMPLIED - isStatic (true|false) #IMPLIED - isInternal (true|false) #IMPLIED - isMixin (true|false) #IMPLIED -> -<!ELEMENT params (param*)> -<!ELEMENT param (desc?, types?)> -<!ATTLIST param name CDATA #REQUIRED> -<!ELEMENT return (desc?, types?)> - -<!-- Errors --> -<!ELEMENT errors (error*)> -<!ELEMENT error EMPTY> -<!ATTLIST error msg CDATA #REQUIRED - column NMTOKEN #REQUIRED - line NMTOKEN #REQUIRED -> - -<!-- Misc --> -<!ELEMENT deprecated (desc?)> -<!ELEMENT desc (text*)> -<!ELEMENT text (#PCDATA)> -<!ELEMENT types (entry*)> -<!ELEMENT entry EMPTY> -<!ATTLIST entry type CDATA #REQUIRED> -<!ELEMENT event (errors?, types?, deprecated?)> -<!ATTLIST event name CDATA #REQUIRED - hasError (true|false) #IMPLIED -> - Deleted: branches/legacy_0_7_x/qooxdoo/frontend/framework/tool2/impl/compat/qx-xml.rnc =================================================================== --- branches/legacy_0_7_x/qooxdoo/frontend/framework/tool2/impl/compat/qx-xml.rnc 2007-12-21 18:51:30 UTC (rev 11044) +++ branches/legacy_0_7_x/qooxdoo/frontend/framework/tool2/impl/compat/qx-xml.rnc 2007-12-21 18:53:11 UTC (rev 11045) @@ -1,145 +0,0 @@ -# Doctree - -doctree = element doctree { attlist.doctree, packages* } -attlist.doctree &= attribute hasWarning { "true" | "false" }? -packages = element packages { attlist.packages, package* } -attlist.packages &= empty -package = - element package { - attlist.package, - (packages* | (classes?, functions?)) - } -attlist.package &= - attribute name { text }, - attribute packageName { text }, - attribute fullName { text }, - attribute hasWarning { "true" | "false" }? -classes = element classes { attlist.classes, class* } -attlist.classes &= empty -functions = element functions { attlist.functions, function* } -attlist.functions &= empty - -# Class - -class = - element class { - attlist.class, - (deprecated? - & superInterfaces? - & superMixins? - & constants? - & constructor? - & methods-static? - & events? - & properties? - & methods?) - } -attlist.class &= - attribute name { text }, - attribute packageName { text }, - attribute fullName { text }, - attribute type { "class" | "interface" | "mixin" }?, - attribute isStatic { "true" | "false" }?, - attribute isAbstract { "true" | "false" }?, - attribute childClasses { text }?, - attribute superClass { text }?, - attribute implementations { text }?, - attribute interfaces { text }?, - attribute mixins { text }?, - attribute includer { text }?, - attribute hasWarning { "true" | "false" }? -superInterfaces = - element superInterfaces { attlist.superInterfaces, interface* } -attlist.superInterfaces &= empty -superMixins = element superMixins { attlist.superMixins, interface* } -attlist.superMixins &= empty -constants = element constants { attlist.constants, constant* } -attlist.constants &= empty -constructor = element constructor { attlist.constructor, method } -attlist.constructor &= empty -methods-static = - element methods-static { attlist.methods-static, method* } -attlist.methods-static &= empty -events = element events { attlist.events, event* } -attlist.events &= empty -properties = element properties { attlist.properties, property* } -attlist.properties &= empty -methods = element methods { attlist.methods, method* } -attlist.methods &= empty - -# Interface - -interface = element interface { attlist.interface, empty } -attlist.interface &= attribute name { text } - -# Constant - -constant = - element constant { attlist.constant, deprecated?, desc?, types? } -attlist.constant &= - attribute name { text }, - attribute value { text }, - attribute type { text } - -# Property - -property = element property { attlist.property, deprecated?, errors? } -attlist.property &= - attribute name { text }, - attribute hasError { "true" | "false" }?, - attribute docFrom { text }?, - attribute overriddenFrom { text }?, - attribute hasWarning { "true" | "false" }?, - attribute defaultValue { text }?, - attribute type { text }?, - attribute isMixin { "true" | "false" }? - -# Method - -method = - element method { - attlist.method, (deprecated? & desc? & params? & return? & errors?) - } -attlist.method &= - attribute overriddenFrom { text }?, - attribute name { text }?, - attribute hasError { "true" | "false" }?, - attribute isCtor { "true" | "false" }?, - attribute isStatic { "true" | "false" }?, - attribute isInternal { "true" | "false" }?, - attribute isMixin { "true" | "false" }? -params = element params { attlist.params, param* } -attlist.params &= empty -param = element param { attlist.param, desc?, types? } -attlist.param &= attribute name { text } -return = element return { attlist.return, desc?, types? } -attlist.return &= empty - -# Errors - -errors = element errors { attlist.errors, error* } -attlist.errors &= empty -error = element error { attlist.error, empty } -attlist.error &= - attribute msg { text }, - attribute column { xsd:NMTOKEN }, - attribute line { xsd:NMTOKEN } - -# Misc - -deprecated = element deprecated { attlist.deprecated, desc? } -attlist.deprecated &= empty -desc = element desc { attlist.desc, \text* } -attlist.desc &= empty -\text = element text { attlist.text, text } -attlist.text &= empty -types = element types { attlist.types, entry* } -attlist.types &= empty -entry = element entry { attlist.entry, empty } -attlist.entry &= attribute type { text } -event = element event { attlist.event, errors?, types?, deprecated? } -attlist.event &= - attribute name { text }, - attribute hasError { "true" | "false" }? -function |= notAllowed -start = package Deleted: branches/legacy_0_7_x/qooxdoo/frontend/framework/tool2/impl/compat/qx-xml.rng =================================================================== --- branches/legacy_0_7_x/qooxdoo/frontend/framework/tool2/impl/compat/qx-xml.rng 2007-12-21 18:51:30 UTC (rev 11044) +++ branches/legacy_0_7_x/qooxdoo/frontend/framework/tool2/impl/compat/qx-xml.rng 2007-12-21 18:53:11 UTC (rev 11045) @@ -1,564 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<grammar xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"> - <!-- Doctree --> - <define name="doctree"> - <element name="doctree"> - <ref name="attlist.doctree"/> - <zeroOrMore> - <ref name="packages"/> - </zeroOrMore> - </element> - </define> - <define name="attlist.doctree" combine="interleave"> - <optional> - <attribute name="hasWarning"> - <choice> - <value>true</value> - <value>false</value> - </choice> - </attribute> - </optional> - </define> - <define name="packages"> - <element name="packages"> - <ref name="attlist.packages"/> - <zeroOrMore> - <ref name="package"/> - </zeroOrMore> - </element> - </define> - <define name="attlist.packages" combine="interleave"> - <empty/> - </define> - <define name="package"> - <element name="package"> - <ref name="attlist.package"/> - <choice> - <zeroOrMore> - <ref name="packages"/> - </zeroOrMore> - <group> - <optional> - <ref name="classes"/> - </optional> - <optional> - <ref name="functions"/> - </optional> - </group> - </choice> - </element> - </define> - <define name="attlist.package" combine="interleave"> - <attribute name="name"/> - <attribute name="packageName"/> - <attribute name="fullName"/> - <optional> - <attribute name="hasWarning"> - <choice> - <value>true</value> - <value>false</value> - </choice> - </attribute> - </optional> - </define> - <define name="classes"> - <element name="classes"> - <ref name="attlist.classes"/> - <zeroOrMore> - <ref name="class"/> - </zeroOrMore> - </element> - </define> - <define name="attlist.classes" combine="interleave"> - <empty/> - </define> - <define name="functions"> - <element name="functions"> - <ref name="attlist.functions"/> - <zeroOrMore> - <ref name="function"/> - </zeroOrMore> - </element> - </define> - <define name="attlist.functions" combine="interleave"> - <empty/> - </define> - <!-- Class --> - <define name="class"> - <element name="class"> - <ref name="attlist.class"/> - <interleave> - <optional> - <ref name="deprecated"/> - </optional> - <optional> - <ref name="superInterfaces"/> - </optional> - <optional> - <ref name="superMixins"/> - </optional> - <optional> - <ref name="constants"/> - </optional> - <optional> - <ref name="constructor"/> - </optional> - <optional> - <ref name="methods-static"/> - </optional> - <optional> - <ref name="events"/> - </optional> - <optional> - <ref name="properties"/> - </optional> - <optional> - <ref name="methods"/> - </optional> - </interleave> - </element> - </define> - <define name="attlist.class" combine="interleave"> - <attribute name="name"/> - <attribute name="packageName"/> - <attribute name="fullName"/> - <optional> - <attribute name="type"> - <choice> - <value>class</value> - <value>interface</value> - <value>mixin</value> - </choice> - </attribute> - </optional> - <optional> - <attribute name="isStatic"> - <choice> - <value>true</value> - <value>false</value> - </choice> - </attribute> - </optional> - <optional> - <attribute name="isAbstract"> - <choice> - <value>true</value> - <value>false</value> - </choice> - </attribute> - </optional> - <optional> - <attribute name="childClasses"/> - </optional> - <optional> - <attribute name="superClass"/> - </optional> - <optional> - <attribute name="implementations"/> - </optional> - <optional> - <attribute name="interfaces"/> - </optional> - <optional> - <attribute name="mixins"/> - </optional> - <optional> - <attribute name="includer"/> - </optional> - <optional> - <attribute name="hasWarning"> - <choice> - <value>true</value> - <value>false</value> - </choice> - </attribute> - </optional> - </define> - <define name="superInterfaces"> - <element name="superInterfaces"> - <ref name="attlist.superInterfaces"/> - <zeroOrMore> - <ref name="interface"/> - </zeroOrMore> - </element> - </define> - <define name="attlist.superInterfaces" combine="interleave"> - <empty/> - </define> - <define name="superMixins"> - <element name="superMixins"> - <ref name="attlist.superMixins"/> - <zeroOrMore> - <ref name="interface"/> - </zeroOrMore> - </element> - </define> - <define name="attlist.superMixins" combine="interleave"> - <empty/> - </define> - <define name="constants"> - <element name="constants"> - <ref name="attlist.constants"/> - <zeroOrMore> - <ref name="constant"/> - </zeroOrMore> - </element> - </define> - <define name="attlist.constants" combine="interleave"> - <empty/> - </define> - <define name="constructor"> - <element name="constructor"> - <ref name="attlist.constructor"/> - <ref name="method"/> - </element> - </define> - <define name="attlist.constructor" combine="interleave"> - <empty/> - </define> - <define name="methods-static"> - <element name="methods-static"> - <ref name="attlist.methods-static"/> - <zeroOrMore> - <ref name="method"/> - </zeroOrMore> - </element> - </define> - <define name="attlist.methods-static" combine="interleave"> - <empty/> - </define> - <define name="events"> - <element name="events"> - <ref name="attlist.events"/> - <zeroOrMore> - <ref name="event"/> - </zeroOrMore> - </element> - </define> - <define name="attlist.events" combine="interleave"> - <empty/> - </define> - <define name="properties"> - <element name="properties"> - <ref name="attlist.properties"/> - <zeroOrMore> - <ref name="property"/> - </zeroOrMore> - </element> - </define> - <define name="attlist.properties" combine="interleave"> - <empty/> - </define> - <define name="methods"> - <element name="methods"> - <ref name="attlist.methods"/> - <zeroOrMore> - <ref name="method"/> - </zeroOrMore> - </element> - </define> - <define name="attlist.methods" combine="interleave"> - <empty/> - </define> - <!-- Interface --> - <define name="interface"> - <element name="interface"> - <ref name="attlist.interface"/> - <empty/> - </element> - </define> - <define name="attlist.interface" combine="interleave"> - <attribute name="name"/> - </define> - <!-- Constant --> - <define name="constant"> - <element name="constant"> - <ref name="attlist.constant"/> - <optional> - <ref name="deprecated"/> - </optional> - <optional> - <ref name="desc"/> - </optional> - <optional> - <ref name="types"/> - </optional> - </element> - </define> - <define name="attlist.constant" combine="interleave"> - <attribute name="name"/> - <attribute name="value"/> - <attribute name="type"/> - </define> - <!-- Property --> - <define name="property"> - <element name="property"> - <ref name="attlist.property"/> - <optional> - <ref name="deprecated"/> - </optional> - <optional> - <ref name="errors"/> - </optional> - </element> - </define> - <define name="attlist.property" combine="interleave"> - <attribute name="name"/> - <optional> - <attribute name="hasError"> - <choice> - <value>true</value> - <value>false</value> - </choice> - </attribute> - </optional> - <optional> - <attribute name="docFrom"/> - </optional> - <optional> - <attribute name="overriddenFrom"/> - </optional> - <optional> - <attribute name="hasWarning"> - <choice> - <value>true</value> - <value>false</value> - </choice> - </attribute> - </optional> - <optional> - <attribute name="defaultValue"/> - </optional> - <optional> - <attribute name="type"/> - </optional> - <optional> - <attribute name="isMixin"> - <choice> - <value>true</value> - <value>false</value> - </choice> - </attribute> - </optional> - </define> - <!-- Method --> - <define name="method"> - <element name="method"> - <ref name="attlist.method"/> - <interleave> - <optional> - <ref name="deprecated"/> - </optional> - <optional> - <ref name="desc"/> - </optional> - <optional> - <ref name="params"/> - </optional> - <optional> - <ref name="return"/> - </optional> - <optional> - <ref name="errors"/> - </optional> - </interleave> - </element> - </define> - <define name="attlist.method" combine="interleave"> - <optional> - <attribute name="overriddenFrom"/> - </optional> - <optional> - <attribute name="name"/> - </optional> - <optional> - <attribute name="hasError"> - <choice> - <value>true</value> - <value>false</value> - </choice> - </attribute> - </optional> - <optional> - <attribute name="isCtor"> - <choice> - <value>true</value> - <value>false</value> - </choice> - </attribute> - </optional> - <optional> - <attribute name="isStatic"> - <choice> - <value>true</value> - <value>false</value> - </choice> - </attribute> - </optional> - <optional> - <attribute name="isInternal"> - <choice> - <value>true</value> - <value>false</value> - </choice> - </attribute> - </optional> - <optional> - <attribute name="isMixin"> - <choice> - <value>true</value> - <value>false</value> - </choice> - </attribute> - </optional> - </define> - <define name="params"> - <element name="params"> - <ref name="attlist.params"/> - <zeroOrMore> - <ref name="param"/> - </zeroOrMore> - </element> - </define> - <define name="attlist.params" combine="interleave"> - <empty/> - </define> - <define name="param"> - <element name="param"> - <ref name="attlist.param"/> - <optional> - <ref name="desc"/> - </optional> - <optional> - <ref name="types"/> - </optional> - </element> - </define> - <define name="attlist.param" combine="interleave"> - <attribute name="name"/> - </define> - <define name="return"> - <element name="return"> - <ref name="attlist.return"/> - <optional> - <ref name="desc"/> - </optional> - <optional> - <ref name="types"/> - </optional> - </element> - </define> - <define name="attlist.return" combine="interleave"> - <empty/> - </define> - <!-- Errors --> - <define name="errors"> - <element name="errors"> - <ref name="attlist.errors"/> - <zeroOrMore> - <ref name="error"/> - </zeroOrMore> - </element> - </define> - <define name="attlist.errors" combine="interleave"> - <empty/> - </define> - <define name="error"> - <element name="error"> - <ref name="attlist.error"/> - <empty/> - </element> - </define> - <define name="attlist.error" combine="interleave"> - <attribute name="msg"/> - <attribute name="column"> - <data type="NMTOKEN"/> - </attribute> - <attribute name="line"> - <data type="NMTOKEN"/> - </attribute> - </define> - <!-- Misc --> - <define name="deprecated"> - <element name="deprecated"> - <ref name="attlist.deprecated"/> - <optional> - <ref name="desc"/> - </optional> - </element> - </define> - <define name="attlist.deprecated" combine="interleave"> - <empty/> - </define> - <define name="desc"> - <element name="desc"> - <ref name="attlist.desc"/> - <zeroOrMore> - <ref name="text"/> - </zeroOrMore> - </element> - </define> - <define name="attlist.desc" combine="interleave"> - <empty/> - </define> - <define name="text"> - <element name="text"> - <ref name="attlist.text"/> - <text/> - </element> - </define> - <define name="attlist.text" combine="interleave"> - <empty/> - </define> - <define name="types"> - <element name="types"> - <ref name="attlist.types"/> - <zeroOrMore> - <ref name="entry"/> - </zeroOrMore> - </element> - </define> - <define name="attlist.types" combine="interleave"> - <empty/> - </define> - <define name="entry"> - <element name="entry"> - <ref name="attlist.entry"/> - <empty/> - </element> - </define> - <define name="attlist.entry" combine="interleave"> - <attribute name="type"/> - </define> - <define name="event"> - <element name="event"> - <ref name="attlist.event"/> - <optional> - <ref name="errors"/> - </optional> - <optional> - <ref name="types"/> - </optional> - <optional> - <ref name="deprecated"/> - </optional> - </element> - </define> - <define name="attlist.event" combine="interleave"> - <attribute name="name"/> - <optional> - <attribute name="hasError"> - <choice> - <value>true</value> - <value>false</value> - </choice> - </attribute> - </optional> - </define> - <define name="function" combine="choice"> - <notAllowed/> - </define> - <start> - <ref name="package"/> - </start> -</grammar> Deleted: branches/legacy_0_7_x/qooxdoo/frontend/framework/tool2/impl/compat/qx-xml2qx-json.xsl =================================================================== --- branches/legacy_0_7_x/qooxdoo/frontend/framework/tool2/impl/compat/qx-xml2qx-json.xsl 2007-12-21 18:51:30 UTC (rev 11044) +++ branches/legacy_0_7_x/qooxdoo/frontend/framework/tool2/impl/compat/qx-xml2qx-json.xsl 2007-12-21 18:53:11 UTC (rev 11045) @@ -1,96 +0,0 @@ -<?xml version="1.0"?> -<!-- - - qooxdoo - the new era of web development - - http://qooxdoo.org - - Copyright: - 2007 1&1 Internet AG, Germany, http://www.1and1.org - - License: - LGPL: http://www.gnu.org/licenses/lgpl.html - EPL: http://www.eclipse.org/org/documents/epl-v10.php - See the LICENSE file in the project's top-level directory for details. - - Authors: - * Thomas Herchenroeder (thron7) - ---> - -<!-- - NAME - qx-xml2qx-json.xsl - transform qooxdoo APIViewer XML to qooxdoo APIViewer - JSON - - SYNTAX - xsltproc qx-xml2qx-json.xsl <file>.xml - - <file>.xml - An XML file of the format as generated by the - -api-documentation-xml-file option of generator.py - - DESCRIPTION - This XSLT forms XML as would be generated by the - -api-documentation-xml-file option of the generator.py into the JSON format - that is accepted by qooxdoo's APIViewer application (named "apidata.js" in - the app). This way, all XML sources that conform to the APIViewer schema can - be used as input for the APIViewer. - - To validate the input XML use the qx-xml.rn[gc] RelaxNG schema. - - SEE ALSO - pydoc2qx-xml.xsl ---> - -<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> - - <xsl:output omit-xml-declaration="yes"/> - - <xsl:template match="/child::*"> - <xsl:call-template name="map"/> - </xsl:template> - - <xsl:template name="map"> - <xsl:param name="Indent"/> - <xsl:if test="not(name()='text')"> <!-- skip text nodes, see further --> - <xsl:text>
</xsl:text> - <xsl:value-of select="$Indent"/> - <xsl:text>{type:"</xsl:text> - <xsl:value-of select="name()"/> - <xsl:text>",attributes:{</xsl:text> - <xsl:call-template name="attribs"/> - <xsl:if test="name()='desc'"> <!-- lift <text> child into attribute --> - <xsl:text>"text":"</xsl:text> - <xsl:value-of select="normalize-space(string(text))"/> - <xsl:text>"</xsl:text> - </xsl:if> - <xsl:text>},children:[</xsl:text> - <xsl:for-each select="child::*"> - <xsl:call-template name="map"> - <xsl:with-param name="Indent" select="concat($Indent,' ')"/> - </xsl:call-template> - <xsl:if test="not(last()=position())"> - <xsl:text>,</xsl:text> - </xsl:if> - </xsl:for-each> - <xsl:text>
</xsl:text> - <xsl:value-of select="$Indent"/> - <xsl:text>]}</xsl:text> - </xsl:if> - </xsl:template> - - <xsl:template name="attribs"> - <xsl:for-each select="./attribute::*"> - <xsl:text>"</xsl:text> - <xsl:value-of select="name()"/> - <xsl:text>":"</xsl:text> - <xsl:value-of select="."/> - <xsl:text>"</xsl:text> - <xsl:if test="not(last()=position())"> - <xsl:text>,</xsl:text> - </xsl:if> - </xsl:for-each> - </xsl:template> - - -</xsl:stylesheet> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |