not looking for a house in a particular geographic area as much as they are

Lisa asks you to design another style sheet for her. Many of her clients are not looking for a house in a particular geographic area as much as they are looking for one of a particular style. She wants you to create a new style sheet based on her property data that groups the property report by housing style. She has already created the style sheet for the property report, but she needs your help in grouping the properties. The property report should also contain information on the real estate agencies and agents handling the properties. Since working on her last project, Lisa has placed all of this information within a single file.You have to extract information from this second source document to complete the report. 1. Using your editor, open homestxt.xml and homestxt.xsl files. Enter your name and the date in the comment section of each file, and save them as homes.xml and homes.xsl , respectively. 2. Go to the homes.xml file in your editor. Add a processing instruction after the comment section that attaches the homes.xsl style sheet to the document. Close the file, saving your changes. 3. Go to the homes.xsl file in your editor, and review the content of the style sheet and the different templates it contains. At the top of the file, directly below the opening tag, do the following: a. Create a variable named agencies that selects the agencies.xml file. b. Create a key named agentID that matches the

💡 Buy the answer for only $12 Get it now →

agent element, using values of the agentNum attribute to generate the key index. c. Create a key named firmID that matches the firm element, using values of the firmNum attribute to generate the key index. d. Create a key named houseStyles that matches the property element, using values of the style element to generate the key index. 4. At the bottom of the style sheet, insert a template with a mode value of styleList that matches the property element. The purpose of this template is to create a list of the different housing styles associated with the properties in the style.xml document. Have the template write the following code: style (count) | where id is an ID value generated automatically by the XSLT processor using the generate-id() function, style is the value of the style element, and count is the number of properties that contain that style. ( nt : Use the key() function and the houseStyles key to retrieve the node set of properties belonging to a particular style, and use the count() function to calculate the number of properties in that node set.) 5. Go to the root template. Within the style_list section after the | character, apply a template of the styleList mode to the step pattern: “listings/property[not(style=preceding::property/style)]” in order to display a list of unique housing styles. Sort the application of the template by order of the style element. 6 Directly below the closing

💡 Buy the answer for only $12 Get it now →