Open-source database Fab-Transformation simple use of parsing, transformationReprinted, please indicate the path of the great ox from Wang Xiaoying
Similar to the IPhone's floating button operation, the operation is only fixed. Of course, after modification, it can also be changed. Here, we just want to give the party a sense of well-being and add some understanding of ourselves, let everyone use it. Once you read it, you can understand it. If you don
Notes:
0. Projection Transformation: describes how to specify the shape and direction of a visual object (Viewing Volume. View transform: explains how to control the transformation from 3D model coordinates to screen coordinates.
1. No matter perspective projection or parallel projection (orthogonal projection), only objects in the visual object can be seen.
2. Default point of view for OpenGL
(Eyex, eyey,
Transformation and memory allocation in Java inheritance, and transformation and allocation in java inheritance
When reading a book, a piece of code can be messy. The code is like this:
Package inheritance; abstract class People {public String tag = "Crazy Java handout"; // ① public String name = "Parent"; String getName () {return name ;}} class Student extends People {// defines a private tag instance var
Paging
ASP file Approximate structure:Cc=server. MapPath ("Trans.xml")Set Source=server. CreateObject ("Msxml2.domdocument")Source.async=falseSource.load (CC)
Xslfile=server. MapPath ("index.xsl")Set Style=server. CreateObject ("Msxml2.domdocument")Style.async=falseStyle.load (Xslfile)
"Response.Write Source.transformnode" (style)Response.Write gb_html (Source.transformnode (style))Response.End%>The XML data that comes in load is like this:------------------------------------The contents of th
Experience maybe the problem is very simple, but just looked at a lot of introductory tutorials are not involved, fortunately Hsower's introduction of the XSL syntax is described in detail.
value-of select= "element name/@ attribute name"/>For example, a piece of XML code is like this:www.wangshuo.com" > famous writer plus well-known critic Mr. Shuo We can use value-of select= "Wang Shuo/@ url"/> To get the value "www.wangshuo.com".
xml| Client | display
By passing parameters to the XSL + data island mode, the display of the sub frame of the client's individual XML is implemented.
For less data XML data, you can use one download all the data, will display all to the client complete, in the following example, an XML file is displayed to the left and right two frames, the left side of the item, display the content on the right-hand side. Can be done locally without having to be exp
items in the collection meet the criteria
$any $
Collection operator, returning true if any item in the collection satisfies the condition
|
Collection operator, which returns a union of two sets
Example one:
Look for the name and e-mail from your resume for people with "web development" skills. Suppose the document structure looks like this:
………
The XSL document structure for the names and e-mai
Upward and downward transformation, upward and downward TransformationDownward Transformation
There are two situations in the downward transformation process:
1 Father fh=new Father(); 2 if(fh instanceof Son) 3 { 4 Son son =(Son)fh; 5 }
Upward Transformation
1 Father fh=new Son();
When you need to call a funct
textbook conclusion:x0=| R|*cosa y0=| R|*sinax1 =| R|*cos (A +b) y1=| R|*sin (a+b)so the x1,y1 is expanded to include:x1=| r|* (COSACOSB-SINASINB) y1=| r|* (sinacosb+cosasinb) CosA = x0/| r| SinA = y0/| r| Substituting the above formula to get X1 = | r|* (x0*cosb/| r|-y0*sinb/| r|) Y1 = | r|* (y0*cosb/| r|+x0*sinb/| r|) Final Result: X1 = x0 * cosb-y0 * sinBy1 = x0 * sinb + y0 * COSB hehe, trigonometric method, code and principle are finished. Here is the matrix. Usually in two dimensions, we a
As we all know, the override of a method is a polymorphic representation of the derived class and the base class, which can be transformed upward into a base class when instantiated, but the disadvantage is that the upward transformation can only implement the methods defined in the base class, but these methods are enriched in the export class.In reality, we also need to extend the methods that are not in the base class in the export class, which is
A few days ago, there is a problem on the forum (see: http://community.csdn.net/Expert/topic/3237/3237160.xml? Temp =. 6712152)
To solve this problem, we mainly apply two functions in XPath: substring-before; substring-after
An example is as follows:
Test. xml:
-----------------------------------------------------------------------
Test. XSL:
--------------------------------------------------------------------------------
Conversion Result:
Use specific formats such as
The following XSL can be used to convert a value to uppercase or to RMB.
Copyright copyright ye jiansheng yjs_lh@sohu.com Co., yjs_lh@sina.com.@ Version 1.0 2005.03.26 on Nanping, Chongqing-->At least 16 integers can be processed without precision loss.-->
XML for testing:
Output result:
Original Value
Chinese value
RMB capital
1
Yi
Yuan 1
10
Yi pick
Yuan collection
After my multi-party queries and observations, the reason why my web serve encountered such a problemBefore. net framework 2.0 is installed with IIS,Specifically, I first installed iis, followed by. net framework 2.0.However, after testing, my iis cannot be used. It is said that this is a bug in ms, which has not been fixed for a long time,As a result, I uninstalled iis and reinstalled it again, so a new problem occurred."The XML page cannot be displayed. XML input cannot be viewed using the
When writing web pages that process XML, it is often a headache for browser compatibility. So I encapsulate common XML operations as functions. After a period of improvement, it is very stable and comfortable to use.
Functions have --
Xml_loadfile: XML synchronous/asynchronous loading.
Xml_transformnode: XSL conversion.
Xml_text: the node text.
Selectsinglenode: select a single node based on XPath.
Selectnodes: Select multiple nodes based on XPath.
define applications. XML can define new applications.
XML describe the thing itself
XSL modifies XML and allows it to install the specified format for display. Therefore, XML achieves data and display separation.
DTD and Schema are used to restrict legal tags in XML. If XML does not have any restrictions, tags can be defined at will. After adding DTD or schema, you can only use corresponding tags, it facilitates cross-platform data and cross-languag
Javascript client conversion [code] lt; html gt; lt; body gt; lt; scriptlanguage quot; javascript quot; gt; LoadXMLvarxmlnewActiveXObject ( quot; microsoft. XMLDOM quot;) xml. asyncfalsexml. load ( quot; cd_catalog.xml quot;) LoadtheXSLvar
Detailed introduction to the sample code of HTML output by XML and XSL conversion (javascript + asp)
The code is as follows:
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.