Software und Dokumentation werden unter den Regeln der GNU LGPL LIzenz unter Ausschluss jeglicher Garantien und Gewährleistungen veröffentlicht.
2006-11-22
Table of Contents
Starten Sie Xalan vom Betriebssystem Prompt aus.
Verwenden Sie die style
task vom
ant
framework.
Verwenden Sie die eclipse Benutzerschnittstelle vom xsdTransformer
xsdTransformer for eclipse
.
CRUD ist die Abkürzung für Create(=Anlegen), Read(=Lesen), Update(=Modifizieren), Delete(=Löschen)
Für weitergehende Informationen bezüglich des Start von der command-line siehe:
entweder http://www.saxonica.com/documentation/using-xsl/commandline.html for using Saxon
oder http://xml.apache.org/xalan-j/commandline.html for using Xalan
Wenn Sie das Skript auf diese Weise ausführen lassen, wird die Eingabedatei auf Wohlgeformtheit, nicht aber auf Validität geprüft. Stellen Sie deshalb sicher, dass Sie nur mit validen XML Schemas arbeiten.
![]() |
<xs:element name="cost2" maxOccurs="unbounded"><xs:complexType> <xs:sequence>
<xs:element name="cost2Account" default="1002"> <xs:simpleType> <xs:restriction base="xs:integer">
. . </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="cost2Amount" type="xs:decimal" default="1"> </xs:element> </xs:sequence> </xs:complexType> </xs:element>
<xforms:groupid="xsd2crud.cost2GroupUI" appearance="full"> . . <xforms:repeat
id="xsd2crud.cost2RepeatUI" appearance="compact" bind="B01300"> <xforms:select1
id="xsd2crud.cost2AccountUI" xforms:bind="B01400" xforms:appearance="minimal"> . . <xforms:input id="cost2AmountUI" xforms:bind="B01500"> </xforms:input> </xforms:repeat> </xforms:group>
Zur Installation führen Sie bitte folgende Schritte aus:
Kopieren Sie die heruntergeladenen Verzeichnisse und Dateiern in ein installationDirectory
Näheres zur Benutzung der Xalan Command-Line Utility finden Sie unter:
http://www.saxonica.com/documentation/using-xsl/commandline.html für die Nutzung von Saxon
oder http://xml.apache.org/xalan-j/commandline.html für die Nutzung von Xalan
Wenn Sie die Generierung in dieser Weise betreiben, wird das Quell-XML-Schema zwar auf Wohlgeformtheit, nicht aber auf Valitität geprüft. Stellen Sie deshabl sicher, dass Sie nur valide XML Schemata verwenden.
For easy standalone usage xsd2fx comes with an ant script named xsdTransform.xml. If you want to use this script, ant must be installed. For details concerning ant see http://ant.apache.org/.
proceed the following steps:
change to <installation directory>.
run 'ant -f xsdTransform.xml xsd2xf1' on os prompt.
There process should terminate with the message 'BUILD SUCCESSFUL' and you should find two files - test1.xhtml and costVoucher.xhtml - in the output directory.
Running the transformation in this manner includes a well formed check but not a valid check. So make sure to use only valid schemata. (For details how to parse the input schema see 'Usage' -> 'Start with ant script'.)
![]() |
<xs:element name="cost2" maxOccurs="unbounded"><xs:complexType> <xs:sequence>
<xs:element name="cost2Account" default="1002"> <xs:simpleType> <xs:restriction base="xs:integer">
. . </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="cost2Amount" type="xs:decimal" default="1"> </xs:element> </xs:sequence> </xs:complexType> </xs:element>
<xforms:groupid="cost2GroupUI" appearance="full"> . . <xforms:repeat
id="cost2RepeatUI" appearance="compact" bind="B01300"> <xforms:select1
id="cost2AccountUI" xforms:bind="B01400" xforms:appearance="minimal"> . . <xforms:input id="cost2AmountUI" xforms:bind="B01500"> </xforms:input> </xforms:repeat> </xforms:group>
With the latter target within xsdtrans.xml script you can simply parse your schema.
xsdTranformer wird unter den Bedingungen der GNU LGPL Lizenz (see http://www.gnu.org/copyleft/lesser.html) unter Ausschluss jeglicher Garantien und Gewährleistungen veröffentlicht.
Copyright © 2006 joerg.moebius@hamburg.de