Generating HTM pages with XML and XSLT is what I always want to do,
After all, instead of making the ASPX page access the database every time it accesses the database, open the data connection, and close the data connection,
It is better to save data as an HTM static page.
I have been searching for this information on the Internet. I also went to msdn to look at the class library, one method and one method, and finally managed to gain a glimpse.Co
In the recent project development process, the mentor asked me to make an RSS subscription function. After several hard work, I finally got it, however, it is disappointing that when using IE6 for browsing, it is not as shown in IE8, and IE6 contains all XML code. Finally, we finally found the best solution: using XSLT to convert XML into XHTML. Let's see how to escape ....
The content in the XML file is:
Lt; RSS version = "2.0" gt;
Add this sent
Using PHP+XSLT on the Windows platform
1. Download PHP 4.0.6 to Http://www.php.net
2. Unzip the Php-4.0.6-win32.zip to the c:php
3. Configure PHP on the Web server
3. Copy the following four files under the DLLs directory to Windowssystem (32)
Expat.dll
Sablot.dll
Xmlparser.dll
Xmltok.dll
4. Modify PHP.ini
Modify Extension_dir point to the correct extension directory
Extension_dir = C:/php/extensions
and find the following line.
; Extension=php_sablot
Using PHP+XSLT on the Windows platform
1. Download PHP 4.0.6 to Http://www.php.net
2. Unzip the Php-4.0.6-win32.zip to the c:\php
3. Configure PHP on the Web server
3. Copy the following four files under the DLLs directory to Windows\System (32)
Expat.dll
Sablot.dll
Xmlparser.dll
Xmltok.dll
4. Modify PHP.ini
Modify Extension_dir point to the correct extension directory
Extension_dir = C:/php/extensions
and find the following line.
; Extensio
XML on the network can often see the background color by row alternately set table, more beautiful. But not necessarily what advanced Server technology, with simple xsl+xml still can be very good to achieve them.
For example, we have an XML document that records the URL:
Now, I would like to classify him as a table with two colors alternating in rows. As shown in the following illustration:
XSL can write this,
Xmlns:xsl= "Http://www.w3.org/1999/XSL/Transform" >
Packageobject;//shift up-down transformation Public classUp_down_convert {/*Move up * 1. On the transformation object can use and manipulate subclasses to inherit or override the method * 2. The action and use of "new member" or "new method" of the child class is lost on the previous transformation*/ Public voidUpconvert () {Father father_a=NewSon ();
SharpGL learning notes (3) Projection Transformation and viewpoint transformation, sharpgl learning notes
Starting from this section, we use the VS2010 extension of SharpGL to directly generate the SharpGL project.
If you do not see the following SharpGL project when creating a project, find a directory named "SharpGL 2.0 Visual Studio Extension" in the source code of SharpGL and install the directory name
Recently to use some of the graphics to learn things, naturally unavoidable involves the concept of affine transformation and perspective transformation, unfortunately, the past textbooks and online interpretation of a large number of consensus is still not clear concept, the following quote "Learning OpenCV" a picture, simple and clear explanation:Visible:Affine transf
Let's review the Java basics: In Java, the value of any object variable is a reference to an object stored in another place. An object variable does not actually contain an object, but simply refers to an object.A = new A ();The expression new A () constructs an object of type A, whose return value is also a reference and a reference to the newly created object. We store this reference in variable a of type A.Upward transformation: Assigns a reference
Css3 transition and 2d transformation-Review and css32d transformation Review
1. transitionSyntax: transition: property duration timing-function delay;Transition-property: Specifies the css attribute name of the transition effect.Syntax: transition-property: none | all | propertyIf none has no attribute, it will get an excessive effect.All attributes will be overly effective.Property defines the list of css
Set the original image to f (x, y), and the distorted image to f (x ', y ') to restore to f (x, y), you need to find the Conversion Relationship Between the (x', y') Coordinate and (x, y) Coordinate. This Conversion Relationship is called coordinate transformation, (x, y) = T (x', y ').
The distortion of a scene during imaging may cause the image to be out of proportion. The affine transform can be used to correct various distortion. First, calculat
Image processing-chamfer distance transformation and image processing-chamfer Transformation
Corner width and Distance Transformation for image processing
Chamfer Distance Transform in image processing is often used in object matching and recognition,
The algorithm generates the distance value of each pixel based on a 3x3 window, which is divided into two steps t
Common operators in XSLT programming are as follows:
! = Not equal"" (Literal) Text''(Literal) Text() (Grouping) Group* (All nodes) All nodes* (Multiplication) wildcard+ Add-Subtraction-(Unary minus). (Self axis short form) Current element... (Parent axis short form) parent Element/(Step separator) Select child element// (Descendant-or-self axis short form) Select the child element, no matter how deep: (Axis specifier) (I don't know how to translate i
elements. Each XML file must have only one element. Elements can be divided into simple elements and composite elements (with lower-level elements ).(3) attributes can be included in an element (attributes)
4. What is a Cascading Style Sheet?The description structure of the common flag language, rather than the format. The style sheet adds the display format without damaging the document structure.
5. What is XSL? What is the relationship with CSS? What is the relationship with
I mentioned some basic XSLT conversion XML knowledge in my previous article. Here I will give a systematic summary. The purpose of learning is to be practical.
Let's talk about the project requirements.Project requirements: 1) The display mode of the page changes frequently, but the data is relatively small. 2) The page displays different places and displays different results. But the data remains unchanged. 3) It is difficult to select data on the p
After reading w3school documents, you can see that XSLT provides two system functions to convert string case formats: upper-case () and lower-case (). However, these two functions are for analyticdb 1.0 and later versions. Microsoft uses XSLT, so when youCodeWhen these two functions are used, the system prompts that they are invalid. Here is an alternative solution, which can be solved by using the translat
:
In the enterprise EP development process, the use of RSS is very common.
In the above example, two webparts are used in Moss (content editing webpart + RSS webpart)
We will not introduce the content editing webpart. Very easy
For RSS webpart, you only need to configure RSS link on the toolbar panel.
For example, http: // 10.5.16.16/ACD/EFG/abcdeff/rss_ldjh.jsp is a standard RSS source.
The RSS style is as follows:
A certain degree of XSL is required.
Version = "1.0" exclude-result-prefixes =
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.