Author DeveloperWorks Content Using IBM Rational Web

2y ago
30 Views
3 Downloads
1.01 MB
36 Pages
Last View : 17d ago
Last Download : 3m ago
Upload by : Mika Lloyd
Transcription

Author developerWorks content using IBM RationalWeb DeveloperA comprehensive guide for working with developerWorks XMLtemplatesSkill Level: IntroductoryAhmed Abbass (aabbass@eg.ibm.com)IT ArchitectIBM13 Jun 2006Updated 16 May 2007This tutorial guides you through the process of authoring articles and tutorials fordeveloperWorks. Using only IBM Rational Web Developer, you can edit, validate,preview, and export your work. Learn more about IBM Rational Software DevelopmentPlatform and how you can enjoy a hassle-free authoring experience.Section 1. Before you startAbout this tutorialThis tutorial describes the process of authoring content for developerWorks easily,with special focus on productivity. The process covers creating a template for yourarticle or tutorial, then editing, validating, previewing, and exporting it. Throughoutthe tutorial, you'll find relevant information on several features of IBM Rational WebDeveloper to give you a better understanding of the steps from a product standpoint.Although the tutorial mentions only IBM Rational Web Developer, other IBM RationalAuthor developerWorks content using IBM Rational Web Developer Copyright IBM Corporation 1994, 2008. All rights reserved.Page 1 of 36

developerWorks ibm.com/developerWorksSoftware Development Platform products, such as IBM Rational ApplicationDeveloper and IBM Rational Software Architect, provide the same functionality in thesame way.ObjectivesGot a great idea for content ondeveloperWorks?When you're ready to write a how-to article and share yourexpertise on a new topic, or your experience with a technology orIBM product, we invite you to submit content based on your ownideas or on the content wish list of our developerWorks editors.Upon completion of this tutorial, you will be comfortable with authoring articles andtutorials with developerWorks XML templates. You will also know some usefulcapabilities of IBM Rational Software Development Platform, represented by IBMRational Web Developer.PrerequisitesThis tutorial is good for authors who have general XML knowledge. More knowledgeof XML, Rational tools, and the IBM developerWorks author package will helpauthors get the most benefit of these three working together.System requirementsIn order to follow the steps described in this tutorial, you need to install Rational WebDeveloper for WebSphere Software, Rational Application Developer for WebSphereSoftware, or Rational Software Architect. Download a free trial version of RationalWeb Developer for WebSphere Software V6.0 or Rational Application Developer forWebSphere Software V6.0 if you don't have a copy of any of them already. Thehardware and software requirements for this software are located at Rational WebDeveloper for WebSphere Software System Requirements and Rational ApplicationDeveloper for WebSphere Software System Requirements.Section 2. How does it work out?Author developerWorks content using IBM Rational Web DeveloperPage 2 of 36 Copyright IBM Corporation 1994, 2008. All rights reserved.

ibm.com/developerWorksdeveloperWorks The diagram in Figure 1 represents the sequence of activities in the workflow of theauthoring process.Figure 1. The workflowThese activities are grouped in two sets:1.2.Prepare your environmentFollow these steps to prepare your machine for authoring the first time.Once you do this, you can reuse the same setup for your futuredeveloperWorks articles and tutorials.a.Create a workspace or use an existing one.b.Enable XML capabilities for the workspace.c.Switch to the Resource perspective.d.Download and import the author package project into theworkspace.Perform authoring activitiesYou need to go through these steps each time you write an article or atutorial for developerWorks. These steps cover how to edit, preview, andexport your work.a.Create an XML template for your article or tutorial.b.Edit the XML template to add your content, then validate that XMLagainst the schema and correct any errors.Author developerWorks content using IBM Rational Web Developer Copyright IBM Corporation 1994, 2008. All rights reserved.Page 3 of 36

developerWorks ibm.com/developerWorksc.Preview your article or tutorial in the built-in or external browser.d.Export your article or tutorial, as well as any resources used(images and files).The following two sections describe the details of each step. Based on yourfamiliarity with the tool, you can skip some or all of the "Prepare your environment"and "Perform authoring activities" sections. On the other hand, the "Useful featuresof IBM Rational Web Developer" section introduces you to several features that youcan use for better productivity.Section 3. 1. Prepare your environmenta. Create a workspaceWhat is a workspace?A workspace is a private work area (a directory) created for anindividual user to hold configuration information, temporary files,and project files. A workspace can contain several projects ofdifferent types.When you start Rational Web Developer, a Workspace Launcher dialog prompts youfor a workspace name. If you wish to use an existing workspace, you can provide itthere. Otherwise, you can provide a new name to create a new workspace.Figure 2. Create a workspaceAuthor developerWorks content using IBM Rational Web DeveloperPage 4 of 36 Copyright IBM Corporation 1994, 2008. All rights reserved.

ibm.com/developerWorksdeveloperWorks New workspaces display a Welcome view with shortcuts to different Rational WebDeveloper resources for first-time users. You can close that view and continue withthe article.b. Enable XML capabilitiesAbout capabilitiesThe IBM Rational Software Development Platform providesmultipurpose integrated development environments (IDEs) thathave a wide range of capabilities for different user roles usingdifferent technologies. Accordingly, you can disable capabilities thatare irrelevant to your type of usage to enhance performance and tolimit the options to the role and the type of technology you use. Thedefault setup doesn't enable a large proportion of the capabilitiessuch as XML development.To enable XML capabilities for the workspace, select Window Preferences, asillustrated in Figure 3.Figure 3. Open the Preferences dialogAuthor developerWorks content using IBM Rational Web Developer Copyright IBM Corporation 1994, 2008. All rights reserved.Page 5 of 36

developerWorks ibm.com/developerWorksFrom the left-side pane, expand the Workbench node and select Capabilities.Check XML Developer on the right-side pane and click OK.Figure 4. Enable XML capabilitiesAuthor developerWorks content using IBM Rational Web DeveloperPage 6 of 36 Copyright IBM Corporation 1994, 2008. All rights reserved.

ibm.com/developerWorksdeveloperWorks c. Switch perspectiveAbout perspectivesA perspective is a predefined set of views and editors that suit auser role for a specific set of technologies in a handy way. Userscan modify perspectives per their preferences. You can switchperspectives at run time without affecting the data by any means.Author developerWorks content using IBM Rational Web Developer Copyright IBM Corporation 1994, 2008. All rights reserved.Page 7 of 36

developerWorks ibm.com/developerWorksThis task is absolutely optional. It is included here only to ensure that you seemenus exactly as described in this article. To switch to the Resource perspective,click the highlighted button and select Other. If you already see Resource insteadof J2EE as in the Figure 5, you don't need to do this step.Figure 5. Open the Select Perspective dialogSelect Resource and click OK.Figure 6. Switch to Resource perspectived. Import the author package projectWhat is the author package project?The author package project is the author package that containsdeveloperWorks XML templates packaged in a project format readyfor you to import in Rational Web Developer. Basically, it's a simpleproject that contains the extracted contents of the developerWorksauthor package.Author developerWorks content using IBM Rational Web DeveloperPage 8 of 36 Copyright IBM Corporation 1994, 2008. All rights reserved.

ibm.com/developerWorksdeveloperWorks After downloading the author package project from developerWorks, you need toimport it into the workspace by selecting File Import.Figure 7. Import the fileSelect Project Interchange and click Next.Figure 8. Import dialogAuthor developerWorks content using IBM Rational Web Developer Copyright IBM Corporation 1994, 2008. All rights reserved.Page 9 of 36

developerWorks ibm.com/developerWorksBrowse your file system to enter the full path to the author package project you'vedownloaded from developerWorks. Check developerWorks Author Package andclick Finish.Author developerWorks content using IBM Rational Web DeveloperPage 10 of 36 Copyright IBM Corporation 1994, 2008. All rights reserved.

ibm.com/developerWorksdeveloperWorks Figure 9. Import Project Interchange Contents dialogSection 4. 2. Perform authoring activitiesa. Create a templateWhat is a developerWorks XML template?A developerWorks XML template is an XML file that provides askeleton for developerWorks authors to edit their articles andtutorials. The template also provides sample sections to illustratedifferent options available for authors. You can automate thecreation of these templates using new-article and new-tutorialscripts provided with the author package. These scripts generate atemplate with the name index.xml and place it in a folder namedwith the title of the article or tutorial.To create an XML template for your article or tutorial, expand developerWorksAuthor developerWorks content using IBM Rational Web Developer Copyright IBM Corporation 1994, 2008. All rights reserved.Page 11 of 36

developerWorks ibm.com/developerWorksAuthor Package and double-click new-article for the article template, ornew-tutorial for the tutorial template. Use .vbs files for the Microsoft Windows platform and .sh for UNIX -based operating systems.Figure 10. Template creation dialogReplace my-article or my-tutorial with the title of your article or tutorial.To see the folder created for your article or tutorial, right-click on thedeveloperWorks Author Package and select Refresh from the context menu.Otherwise, simply press F5 while selecting developerWorks Author Package.Author developerWorks content using IBM Rational Web DeveloperPage 12 of 36 Copyright IBM Corporation 1994, 2008. All rights reserved.

ibm.com/developerWorksdeveloperWorks Figure 11. Refresh to see the template folderFigure 12. The template folder appears after refreshmentAuthor developerWorks content using IBM Rational Web Developer Copyright IBM Corporation 1994, 2008. All rights reserved.Page 13 of 36

developerWorks ibm.com/developerWorksb. Edit and validate the XML templateThis activity is the playground for your creativity as an author. Fortunately, IBMRational Web Developer provides some useful features to let you focus on thecontent itself rather than how to write it. I list some of these features here:i.Different XML editorsii.Source formattingiii.Spell-checkingiv.Finding and replacingv.Comparing and replacing from local historyvi.Team developmentvii.Importing illustrationsviii. Source outliningix.Source code assistantAuthor developerWorks content using IBM Rational Web DeveloperPage 14 of 36 Copyright IBM Corporation 1994, 2008. All rights reserved.

ibm.com/developerWorksdeveloperWorks For more details on using each of these features, refer to "Useful features of IBMRational Web Developer."As you make modifications to the template, you need to verify that you made noXML mistakes. The first line of defense is the XML Source Page editor automaticvalidation, which underlines any incorrect tag and marks the line that contains it.Figure 13. A highlighted errorIf you miss this indication, you can simply right-click on the template file in theNavigator view and select Validate XML File or Run Validation.Figure 14. Run validationIf the file has any invalid tags, the error message in Figure 15 displays.Author developerWorks content using IBM Rational Web Developer Copyright IBM Corporation 1994, 2008. All rights reserved.Page 15 of 36

developerWorks ibm.com/developerWorksFigure 15. Error messageFurthermore, the Problems view displays a list of the errors found in the file. If youclick any item on the list, the editor shows the line of code that has the error.Figure 16. Problems listingc. Preview your workTo preview your work, transform the XML file into HTML using the ExtensibleStylesheet Language (XSL) stylesheet provided with the author package. To do so,right-click on index.xml in the Navigator view and select Run XSLTransformation.Figure 17. Transform XML to HTML using built-in XSLTAuthor developerWorks content using IBM Rational Web DeveloperPage 16 of 36 Copyright IBM Corporation 1994, 2008. All rights reserved.

ibm.com/developerWorksdeveloperWorks As a result of this transformation, an index transform.html file is created under thesame folder with index.xml. Double-click that HTML file to open it in the defaultsystem browser or editor. Otherwise, you can browse it in the built-in Web browser:Right-click on the HTML file, then select Open With Web Browser.Figure 18. Preview your workAuthor developerWorks content using IBM Rational Web Developer Copyright IBM Corporation 1994, 2008. All rights reserved.Page 17 of 36

developerWorks ibm.com/developerWorksThe built-in browser can help you avoid the security warnings you might get if youuse the browser on your system, without having to change either of the two. If you'reworking off-line, the previewed page is slightly different from the final look, becauseit references resources on developerWorks' Web server. However, this shouldn'taffect your work.Figure 19. The page looks slightly different when displayed off-lined. Export your workAuthor developerWorks content using IBM Rational Web DeveloperPage 18 of 36 Copyright IBM Corporation 1994, 2008. All rights reserved.

ibm.com/developerWorksdeveloperWorks The developerWorks team needs the XML file, any illustrations, and any samplecode that you refer to in your article or tutorial. Select index.xml, as well as any otherimages that you refer to, then right-click and select Export from the context menu.Figure 20. Exporting filesSelect Zip file and click Next.Figure 21. Export dialogAuthor developerWorks content using IBM Rational Web Developer Copyright IBM Corporation 1994, 2008. All rights reserved.Page 19 of 36

developerWorks ibm.com/developerWorksVerify the selected files, specify the name of the zip file, and click Finish.Figure 22. Export to a zip fileAuthor developerWorks content using IBM Rational Web DeveloperPage 20 of 36 Copyright IBM Corporation 1994, 2008. All rights reserved.

ibm.com/developerWorksdeveloperWorks Section 5. Useful features of IBM Rational WebDeveloperi. Different XML editorsWhen you right-click on the XML template file index.xml and select Open With fromthe context menu, you'll see a list of built-in XML editors. If you already use anexternal XML editor, you can simply select System Editor from the context menu(provided that XML files are associated to that external editor at the operatingAuthor developerWorks content using IBM Rational Web Developer Copyright IBM Corporation 1994, 2008. All rights reserved.Page 21 of 36

developerWorks ibm.com/developerWorkssystem level). Of course, you can still use a plain-text editor if you prefer by selectingText Editor. You might like to take a look at each editor in the list to decide whichsuits you best.Figure 23. Different XML editors availableThis article uses the XML Source Page Editor, which provides a colored-tags viewfor better readability while editing. This editor gives clear error indication, as Imentioned in Editing and validating the XML template . Furthermore, it provides

Software, or Rational Software Architect. Download a free trial version of Rational Web Developer for WebSphere Software V6.0 or Rational Application Developer for WebSphere Software V6.0 if you don't have a copy of any of them already. The hardware and software requirements for this software are located at Rational Web

Related Documents:

Modi ed IBM IBM Informix Client SDK 4.10 03/2019 Modi ed IBM KVM for IBM z Systems 1.1 03/2019 Modi ed IBM IBM Tivoli Application Dependency Discovery Manager 7.3 03/2019 New added IBM IBM Workspace Analyzer for Banking 6.0 03/2019 New added IBM IBM StoredIQ Suite 7.6 03/2019 New added IBM IBM Rational Performance Test Server 9.5 03/2019 New .

IBM 360 IBM 370IBM 3033 IBM ES9000 Fujitsu VP2000 IBM 3090S NTT Fujitsu M-780 IBM 3090 CDC Cyber 205 IBM 4381 IBM 3081 Fujitsu M380 IBM RY5 IBM GP IBM RY6 Apache Pulsar Merced IBM RY7

Product Analysis for IBM Lotus Domino, IBM Lotus Notes, IBM Lotus iNotes, IBM Lotus Foundations, IBM Lotus Quickr, IBM Lotus Sametime, IBM Lotus Connections, and IBM LotusLive. This report is intended for Organizations, Vendors, and Investors who need to make informed decisions about the Email and Collaboration market. Figure 1: Worldwide IBM .

IBM Spectrum Protect Snapshot (formerly IBM Tivoli Storage FlashCopy Manager) For more details about IBM Spectrum Copy Data Management, refer to IT Modernization . A9000R snapshots, see IBM Hyper-Scale Manager for IBM Spectrum Accelerate Family: IBM XIV, IBM FlashSystem A9000 and A9000R, and IBM Spectrum Accelerate, SG24-8376.

IBM Developer Kit per Java IBM Developer Kit per Java è ottimizzato per l'utilizzo nell'ambiente IBM i. Esso utilizza la compatibilità della programmazione Java e delle interfacce utente consentendo così di sviluppare applicazioni IBM i. IBM Developer Kit per Java consente di creare ed eseguire programmi Java sul server IBM i. IBM

Organize content. Web content management systems typically present organized content as Web sites, but they may deliver it in other forms, such as Really Simple Syndication (RSS) news feeds. IBM Lotus Web Content Management software, formerly known as IBM Workplace Web Content Management software, is IBM's Web content manage-ment .

Capitolo 1. IBM i Access per Windows: Introduzione IBM i Access per Windows è un'offerta chiave in IBM i Access Family.Offre un'ampia serie di funzioni per la connessione dei PC alle piattaforme IBM i. IBM i Access per Windows è compatibile c

creating any warranties or representations from ibm (or its suppliers or licensors), or altering the terms and conditions of any agreement or license governing the use of ibm products and/or software. IBM, the IBM logo, ibm.com, InfoSphere, IBM InfoSphere Information Server, IBM InfoSphere