<?xml version="1.0"?>

<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>

<!DOCTYPE window [
  <!ENTITY enterURI.label "Visual XSLT:">
  <!ENTITY start.label "Start">
  <!ENTITY sourceTab.label "Source">
  <!ENTITY headerTab.label ".h View">

  <!ENTITY createExample.label "Create Testcase">
  <!ENTITY createExample.accesskey "t">

  <!ENTITY serviceView.label "Service View">  
  
  <!ENTITY types.label "Types">    
  
]>

<window id="" title="Spengler - WSDL Viewer"
        xmlns:html="http://www.w3.org/1999/xhtml"
        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" 
        >
  <script src="vxslt.js" />        
  








<hbox>
<label value="Visual XSLT" style="font-size:16px;font-weight:bold" /><label value="version 0.2"  />
</hbox>




  
<hbox flex="1">

	<tabbox flex="1">
	  <tabs>
	    <tab label="Source Documents"/>
	 
	  </tabs>
	  <tabpanels flex="1">
	    <tabpanel>

	<vbox flex="1">

	             <hbox >
			    <label control="url" value="Input XML" />
			    <menulist flex="1" id="xmlurl" editable="true">
			      <menupopup>
			        <menuitem label="data.xml"/>
		
			     </menupopup>
			   </menulist>
	  		  <button oncommand="importXML()" label="import"/>
		</hbox>
	

		<tabbox flex="1">
			  <tabs>
		    <tab label="&sourceTab.label;"/>
		    <tab label="tree"/>
		  </tabs>
		  <tabpanels flex="1">
		    <tabpanel>
		<textbox id="xmlsource" flex="1" multiline="true" />
		 <!--	     
		 <html:iframe id="sourceIFrame" flex="1"></html:iframe>
		 -->
		    </tabpanel>
		    <tabpanel>
	    
		<popupset id="contextMenus">
		    <popup id="serviceViewPopup" oncommand="" onpopupshowing="handlePopup(event,this)">
		      <menuitem id="createExample" label="&createExample.label;" accesskey="&createExample.accesskey;"/>
		    </popup>
		  </popupset>  
	    
		<tree id="treeView" flex="1" seltype="single" hidecolumnpicker="true" context="serviceViewPopup">
		  <treecols>
		      <treecol id="serviceView" label="&serviceView.label;" primary="true" flex="3" />
		  </treecols>
		
		  <treechildren>
		
		    <treeitem container="true" open="false">
		      <treerow>
		        <treecell id="typeCell" label="&types.label;"/>
		      </treerow>
		
		      <treechildren id="typeChildren">
		      </treechildren>
		    </treeitem>  
	  
	
		    <treeitem container="true" open="true">
		      <treerow>
		        <treecell id="serviceCell" label="aa" />
		      </treerow>
		      <treechildren id="serviceChildren">
		      </treechildren>
		    </treeitem>
		    
		
		  </treechildren>
		</tree>
		
	
		    </tabpanel>    
		  </tabpanels>
		</tabbox>
	</vbox>
	






	 <splitter collapse="before" resizeafter="farthest">
	    <grippy/>
	  </splitter>
	




	<vbox flex="1">
	
             <hbox >
	    <label control="url" value="Input XSL" />
	    <menulist flex="1" id="xslurl" editable="true">
	      <menupopup>
	        <menuitem label="transform.xsl"/>
	     </menupopup>
	   </menulist>
	

    <button oncommand="importXSL()" label="import"/>

	</hbox>
	

	
	
	<tabbox flex="1">
	  <tabs>
	    <tab label="&sourceTab.label;"/>
	    <tab label="tree"/>
	  </tabs>
	  <tabpanels flex="1">
	    <tabpanel>
<textbox id="xslsource" flex="1" multiline="true" />
<!--
	      <html:iframe id="sourceIFrame" flex="1"></html:iframe>
-->
	    </tabpanel>
	    <tabpanel>
	
	<popupset id="contextMenus">
	    <popup id="serviceViewPopup" oncommand="" onpopupshowing="handlePopup(event,this)">
	      <menuitem id="createExample" label="&createExample.label;" accesskey="&createExample.accesskey;"/>
	    </popup>
	  </popupset>  
	    
	<tree id="treeView" flex="1" seltype="single" hidecolumnpicker="true" context="serviceViewPopup">
	  <treecols>
	      <treecol id="serviceView" label="&serviceView.label;" primary="true" flex="3" />
	  </treecols>
	
	  <treechildren>
	
	    <treeitem container="true" open="false">
	      <treerow>
	        <treecell id="typeCell" label="&types.label;"/>
	      </treerow>
	
	      <treechildren id="typeChildren">
	      </treechildren>
	    </treeitem>  
	  
	
	    <treeitem container="true" open="true">
	      <treerow>
	        <treecell id="serviceCell" label="aa" />
	      </treerow>
	      <treechildren id="serviceChildren">
	      </treechildren>
	    </treeitem>
	    
	
	  </treechildren>
	</tree>
	
	

	       </tabpanel>    
	  </tabpanels>
	</tabbox>
	


  </vbox>

	    </tabpanel>
  
	  </tabpanels>
	</tabbox>
</hbox>
 



 <splitter collapse="before" resizeafter="farthest">
	    <grippy/>
  </splitter>


<hbox>

<label control="url" value="Generate Output" />

    <button oncommand="command_start()" label="Start Processing"/>     <button oncommand="command_clear()" label="Clear"/>

</hbox>
<hbox flex="1">
	<tabbox flex="1">
	  <tabs>
	    <tab label="Output"/>
	 
	  </tabs>
	  <tabpanels flex="1">
	    <tabpanel>
	      <html:iframe id="container-output" src="about:blank" flex="1"></html:iframe>
	    </tabpanel>
  
	  </tabpanels>
	</tabbox>


</hbox>	


</window>

