Network because the number of domestic network companies are not many, the definition of medium-sized refers to have more than one full-time programmer, capable of making most of the dynamic Web site network companies.
Here does not discuss the customer relations, the demand analysis aspect content, only discusses the company to the website and the B/s application software direction development Strategic framework and the simple technology realization.
Now the technology of making dynamic websites has been very mature, many small companies and even individuals can complete many powerful dynamic websites. But most of the Web site architecture is still the structure of the previous static Web site, the production of a new site is basically starting from scratch, and are isolated, and other sites and less contact, is basically the way of friendship, there is no data sharing, there is no interactive operation. Therefore, I conceived the following Web site framework, which can achieve the largest data sharing, but also can be modular development, reduce development costs, improve development efficiency. At the same time also improve the site as an information platform function. This is: the main database based on the main station as the core, based on the Web Service Ideas network architecture. Overall, the development direction of the company's technology architecture is that all public data (such as regional information, industry classification) are stored in the underlying database, provide XML-formatted data calls, and other Web sites can be converted using XSLT after the data is invoked. This ensures the unity of the data, but also provides a variety of forms of expression. More than a few in a swoop.
Further, BBS, information Publishing system can use multi-user version, so that the basic functions of the site can be implemented through the background management system, the production of a site as long as the design of its page style can be. And the production company can unify some of the customer's needs, to provide better services, such as companies have to recruit content, production companies if they have their own recruitment site or in the recruitment site has good relations of cooperation, can be in the customer's Web site management inside the integrated recruitment system, so that customers convenient, The motivation for recruiting information has also increased and both sides have benefited.
The following is a further technical perspective to explain the implementation of the method:
First, the release of XML data This framework is the basis of the release of XML data, in order to SQL server2000, there can be two ways to publish, one is the database of its own XML release, the contents of the database can be directly published into XML documents, so that the resulting data update more timely, generally not error, But the control of the data is not very free, not convenient query, the second is to use ASP and other server-side programming language to generate XML documents, so it is more free, but to ensure that the database updates in time to update. The following is a detailed introduction to using ASP to generate XML documents: For example, to generate the following document
<?xml version= "1.0" encoding= "gb2312"?>
<catalogs>
<fatherid id= "Name=" "Machine" >
<catalog id= "102" name= "Notebook"/>
</fatherid>
<fatherid id= "Name= Peripherals" >
<catalog id= "302" name= "digital Camera"/>
<catalog id= "304" name= "Laser Printer"/>
<catalog id= "305" name= "Inkjet printer"/>
<catalog id= "306" name= "Stylus Printer"/>
<catalog id= "309" name= "projection device"/>
<catalog id= "311" name= "Scanner"/>
</fatherid>
<fatherid id= "name=" office equipment >
<catalog id= "601" name= "fax machine"/>
<catalog id= "602" name= "Copier"/>
</fatherid>
</catalogs>
The first step is to establish a database connection, generating a recordset by the specified SQL statement, where the generated content can be customized by passing parameters.
Dim Xmlstr
Xmlstr = "<?xml version=" "1.0" "encoding=" "gb2312" "?>"
Xmlstr = xmlstr & "<catalogs>"
Call loops that traverse the recordset ...
Xmlstr = xmlstr & "<fathered id=" & RS ("id") & "" Name= "" & RS ("name") & "/>"
......
Xmlstr = xmlstr & "</catalogs>"
Note Before you output XML, it is best to add:
Response.ContentType = "Text/xml"
response.encoding = "gb2312" is changed here as required, the most commonly used is UTF-8
Finally, it can be stored as a file or directly with the connection:
Response.Write (XMLSTR)
Second, the client's XSLT transformation here is nothing to say, if not XSLT can be used to parse the XML document directly to implement, but there is no way to define the style arbitrarily, so or according to the layout of content and style classification, using XML to implement, detailed information please refer to the XSLT tutorial, An example is provided below:
<?xml version= "1.0" encoding= "gb2312"?>
<xsl:stylesheet version= "1.0" xmlns:xsl= http://www.w3.org/1999/XSL/Transform "xmlns:fo=" http://www.w3.org/ 1999/xsl/format ">
<xsl:output encoding= "gb2312" method= "html"/>
<xsl:template match= "/catalogs" >
<xsl:element name= "Table" >
<xsl:element name= "TR" >
<xsl:element name= "TD" >
<xsl:apply-templates select= "Fatherid"/>
</xsl:element>
</xsl:element>
</xsl:element>
</xsl:t
[1] [2] [3] [4] [5] Next page