Author: Daniel Mladek
Version: 1.0.0
Last update: 02.06.2004
Text Context Sensitive Completion Test
Open SampleProject-XML|Source Packages|sample|Books-II.xml document in the Text Editor.
Put cursor somewhere into document and type the first few characters of an XML tag.
Press Ctrl-spacebar, or pause after typing a portion of the XML tag. The code completion box is displayed. Choose one of the elements.
Write up at least one book per the Completion.
Close the editor.
Check XML document
Open SampleProject-XML|Source Packages|sample|Books.xml document in the Text Editor.
Right-click the editor window and choose Check XML.
Delete '<' char from '<Product>' tag and Check XML again.
Put the '<' char back, save document and close the output window.
Validate XML document
Right-click the editor window and choose Validate XML.
Add element <Producer/> before the element Product and save the document.
Right-click the editor window and choose Validate XML.
Remove the element Producer, save document and close the editor and output windows.
Create New DTD document
In the Explorer, Projecs TAB, right click the "SampleProject-XML|Source Packages|sample.new" folder and choose "New|File..."
In the New File Wizard choose XML as "Categories:" and as "File Types:" select DTD Entity and click Next > button
Name it DTD-Entity
Check DTD document
In the Explorer, right click the SampleProject-XML|Source Packages|sample|simpleDTD.dtd document node and choose Edit. The simpleDTD.dtd is opened in the Text Editor.
Right-click the editor window and choose Check DTD.
Add element-declaration <!ELEMENT x (#PCDATA|ANY)+> before the element-declaration Books and save the document. Right-click the editor's window and choose Check DTD.
Remove the element-declaration x, save document and close the editor and output windows.
Create New CSS document
In the Explorer, Projecs TAB, right click the "SampleProject-XML|Source Packages|sample.new" folder and choose "New|File..."
In the New File Wizard choose XML as "Categories:" and as "File Types:" select Cascading Style Sheet and click Next > button
Name it CSSdocument and click Finish button
Check CSS document
Open SampleProject-XML|Source Packages|sample|netbeans.css document in the Text Editor.
Right-click the netbeans.css node in the Explorer and choose Check CSS.
Duplicate 1st appearance of '{' char and Check CSS again.
Remove the '{' char back, save document and close the output window.
Copy XML Style
Right click the CSSdocument node in the Explorer and choose Copy XML Style
Paste the style in a XML document
Copy HTML Style
Right click the CSSdocument node in the Explorer and choose Copy HTML Style
Paste the style in a HTML document.
Generate DTD from XML
In the Explorer, right click the SampleProject-XML|Source Packages|ssample|PhoneBook.xml node and choose Generate DTD.
Supply a name for the DTD (e.g. phones) to the dialog that appears and click on OK.
Generate documentation
In the Explorer, right click the the SampleProject-XML|Source Packages|ssample|simple.DTD node and choose Generate Documentation.... Supply a name for the HTML file in the dialog that appears and click on OK.
Generate CSS
n the Explorer, right click the the SampleProject-XML|Source Packages|ssample|simpleDTD.dtd node and choose Generate CSS... Supply a name for the CSS file in the dialog that appears and click on OK.
Check Settings nodes
Choose the Main Menu -> Tools -> Options, the Options dialog should appeare.
Check exist nodes: Editing, Editor Settings, DTD Editor, XML Editor, CSS Editor , Indentation Engines, XML Indentation Engine.
XML, General Settings
Create XML Schema Constrained Document
In the Explorer, select the the SampleProject-XML|Source Packages|sample.new node and press Ctrl+N
In the New File Wizard choose XML as "Categories:" and as "File Types:" select XML Document and click Next > button
Name it as XML-Constrain-Schema and click Next button
On the third panel of the Wizard, select XML Schema-Constrained Document and click Next button
Click Browse button and find $Project_Location/src/sample/schema/employee-schema.xsd
As "Root Element:" select employee and click Finish.
Validate XML Schema Constrained Document
Open employee-sample.xml document, new Source Editor pane appears.
Right click the document's node and choose Validate XML. Output Window without any error message should appeare.
Rename salary element on fee.
Right-Click the document's node and choose Validate XML.
Rollback the previous change and close the document.
Create XSL Stylesheet Document
In the Explorer, select the the SampleProject-XML|Source Packages|sample.new node and press Ctrl+N
In the New File Wizard choose XML as "Categories:" and as "File Types:" select XSL Stylesheet.
Specify a name and click Finish button.
Check XSL Stylesheet
Open SampleProject-XML|Source Packages|sample.xslt|doc2html.xsl document in the Text Editor.
Right click the document's node and choose Check XML.Output Window without any error message should appeare.
Remove root's element start tag.
Right click the document's node and choose Check XML.
Rollback the previous change and close the document.
XSL Transformation Action
Right click SampleProject-XML|Source Packages|sample.xslt|doc2html.xsl node in the Explorer and choose XSL Transformation, XSL Transformation dialog should appeare.
Browse xsl/document.xml as XML Source .
Change the "Output:" to value "document_output.html"
Set "Process Output:" to value "Open in Browser"
and click OK button.
Mount NetBeans Catalog
Press Ctrl+5 to open and switch to RunTime TAB in the Explorer Window.
Expand the XML Entity Catalog node.
If the node doesn't contain Netbeans Catalog then right click on the XML Entity Catalog node and select from popup-menu "Mount Catalog...".
In the Mount Catalog dialog choose as "Catalog Type:" the "Netbeans Catalog" and click OK button.
Click the Project Tab and right click the "SampleProject-XML|Source Packages|sample|Standard.xml" node and choose Validate XML.
Unmount NetBeans Catalog
Click the Runtime Tab then right click on the XML Entity Catalogs|Netbeans Catalog node and choose Unmount Catalog.
Click the Filesystems Tab then right click "SampleProject-XML|Source Packages|sample|Standard.xml" node and choose Validate XML.