rdanner wrote:If you are looking for an XML editor that uses a schema to generate a form then this is may be of interest to you.
I have been working on a tutorial for adding an inline editor to alfresco. I need to go back and finish that.
in the mean time the source for the work can be found at
http://www.posit-group.org/cache/xml-editor.zipThis is only an example. There are a number of issues.
First the example uses a applet (that costs money).
Second the example uses an applet (that causes browsers to flake)
Third,
I used this as an oppertunity to demonstrate how we can put most of the code in alfresco in to uber-configurable patterns.
In the checkinCheckoutbean method editFile you will notice the code has been pulled out and replace with a "pipeline invokation"
The pipeline definition can be found in checkinCheckoutPipelineChains.xml
and the components used by the pipeline in pipeline-context.xml
more on this later... gotta run
Ok so if you want to take a look at this thing, here is how
o Download the version 1 Alfresco Source
o Expand it somewhere
o Download the xml-editor.zip from (
http://www.posit-group.org/cache/xml-editor.zip)
o Unzip it inside the projects folder of the alfresco source code (it should be right aside the other projects like repository)
o go inside of the xml-editor project and run build.bat. Build.bat doesnt actual build anything. It just copies the files from the xml-editor over top of the existing projects.
o build afresco war as usual
o upload the sample documents in to a space.
o each file should be "inlineeditable" and of the mimetype XML
o add the Validated XML aspect to the salesreport.xml
o edit the salesreport.xml (properties panel). You will see it has properties for a schema and a xsl. edit them by selecting the xsl and xsd file you just uploaded.
when you click on the pencil for the xsl and xsd you should get the inline text editor. when you click on the pencil for HTML you should get the html editor. When you click on the pencil for the salesreport.xml you should see an applet load, then have a form you can edit which will do validation.