In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
This article mainly introduces the combination of XML and XSLT to make the website design integrated, with a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let the editor take you to understand it.
The conversion between xml and XSLT benefits Web design. With XML and XSLT transformations, you can store dynamic terms (dynamic verbiage) and website content in a database. You can transfer the database in XML and then convert it into a HTML script through XSLT conversion.
In the early days of the development of the network, cohesiveness is realized by the server, but it involves a lot of manual file management. Fortunately, with the increasing maturity of the network, network development tools are becoming more and more perfect. For example, under the .NET framework, you can create a variety of Web controls to unify the design.
When designing the user / data interaction function, how to realize the integrity of the data, the functionality of the user interface and the business rules. This article will provide an example of a website and show how XML and XSLT can integrate your website design.
The following is a reference clip:
The above code snippet completes the main functions, but it still needs to be beautified with XML and XSLT.
In XML, the code has opening and ending tags, but not in HTML. The INPUT and BR tags are special cases, and they don't need a closing tag. However, adding a forward slash before the closing tag ">" ensures that HTML conforms to the XML specification. If you follow these specifications when writing HTML scripts, you can convert XML/HTML (aka XHTML) into a good HTML page.
The following is a reference clip:
Run the following code to complete the XSLT conversion: This is the defined header This is the defined footer text color:blue text color:red height:30px;width:100px;font- size:18pt;font-weight:700
The above code cannot create namespaces, define XML tags, confirm DTD or schema for your implementation. It allows you to create viable HTML scripts that can be converted into complete new pages without worrying about design factors.
In the stylesheet, the transformation operation is driven by the transformation attribute of the HTML tag. I considered using a FORM form as a unit to define the user controls required for the conversion operation, because all controls for user input should be in a FORM. In this case, the output is a text INPUT with a blue color, and a button 20 pixels high and 100 pixels wide with a bold font at 18:00. We can change the color of the text in the text box by modifying the conversion properties.
There are several ways to add static content to a web page. In this case, only the simplest way is to add header and footer to the stylesheet.
Now, when you want to create a new form for user input, all you have to do is create a generic form. Once the generic forms pass the test, you can add them to the transformation to generate the HTML output of the theme. All you have to do is remember the input control type and add it as a conversion property.
Thank you for reading this article carefully. I hope the article "how to combine XML and XSLT to integrate website design" shared by the editor will be helpful to everyone. At the same time, I also hope that you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.