Recently, I like XML programming, but it is not nice enough to find many books. Recently, I like XML programming, but it is not nice enough to find many books.
Xml is good, but it is not suitable for displaying data. (More query than HTML !)What the XML file makes does not look so beautiful, but you can still find a remedy.
XML can only focus on the description of data and file formats, and the display work is handed over to the typographical style sheet.Typographical style table: CSS and
Tutorials | client
Three. xsl--implementation in the client
1.JavaScript SolutionIn the previous section we have explained how XSL transforms XML into an HTML file. The method is to add an XSL stylesheet information to the header of the XML document, and then let the browser perform the conversion process.This approach is well done in most cases,
$ equality = or $ieq $ equality (case-insensitive)!= or $ne $ unequal $ine$ (case-insensitive) 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-mail of all the people who have web development skills is found in the above-structured personal resume as follows:
Description
1.[]── Indicates the sel
Original: Jan Egil Refsnes
Iii. XSL-implementation on the client
1. JavaScript Solution
In the previous section, we have explained how XSL converts XML into HTML files. The method is to add an XSL style table information to the header of the XML document, and then let the browser execute the conversion process.
This method works well in most cases, but it cannot
Recently, I like XML programming, but also suffer from its aesthetic degree and not enough, find a lot of books to finish.
It's good to use XML, but it's still not the right language for displaying data. (more than HTML to check!) )The XML file does not look so beautiful, but it can still find a way to fix it.
XML can only focus on the description of data and file formats, and the display aspect of the work is given to the typesetting style sheet.Layout style sheet: CSS and
Document directory
Question 1: using the Java namespace definition example mentioned above, I wrote an XSL file. What is the resolution effect in IE browser? Why is this effect?
XSL, Extensible Stylesheet Language, extensible style language.
You can say that he is a style. He said that he is a language because he supports expressions and execution logic;
You can say that he is a language. He can
xml| Conversion
Recently, I like XML programming, but also suffer from its aesthetic degree and not enough, find a lot of books to finish.
It's good to use XML, but it's still not the right language for displaying data. (more than HTML to check!) )The XML file does not look so beautiful, but it can still find a way to fix it.
XML can only focus on the description of data and file formats, and the display aspect of the work is given to the typesetting style sheet.Layout style sheet: CSS and
A common problem with Web service applications is that the real backend software does not support xml (or at least does not support the standardized XML used by your Web service ). To solve this problem, many architectures have implemented a translation phase to interpret the received XML and convert it into a more appropriate format that can be recognized by the backend system. Although there are many ways to translate XML into different formats, eXt
In-depth XSL (3)--- Template rules and modesTranslation: Sun YiTemplate rulesTemplate rules are defined by the xsl: template element. The "match" attribute identifies the source node (SET) of the rule application. xsl: template. For example, an XML document may contain the following content:This is an The following template rules match the elements of the emph ty
What is XSL
Full name Extensiblestylelanguage, Chinese translation extended style language, used to format XML documents, which consists of two parts.
1 (XSLT): Xsltransformationlanguage (XSLT), which converts an XML document from one format to another. such as converting to HTML, text, or text-based documents.
2 (XPath):
Original: A Egil refsnes translation: Atzie
IV: The implementation of XSL---on the server side
1. Compatible with all browsersIn the previous chapter we described the XML parser (parsing software) that can be used to invoke the browser through JavaScript to transform XML documents. But the solution still has a problem: if the browser doesn't have XMLWhat about the parser plugin? (Note: IE5 with XML parser)In order for our XML data to be displayed co
XML(Extensible Markup Language) may look like some sort of a world-standard, and there's no real impact right now, even if it comes in handy later. But in fact, it has now been applied. So don't wait until the XML has been added to your favorite HTML editor to start using it. It can now solve a variety of internal problems and business-to-business systems issues.
In sparks.com, we use XML to standardize data representations between different systems, from Java objects to HTML data displays.
In
Server | tutorials
IV: The implementation of XSL---on the server side
1. Compatible with all browsersIn the previous chapter we described the XML parser (parsing software) that can be used to invoke the browser through JavaScript to transform XML documents. But the solution still has a problem: if the browser doesn't have XMLWhat about the parser plugin? (Note: IE5 with XML parser)In order for our XML data to be displayed correctly by
Basic Tutorials
Client XSLIf the browser supports XML, you can use XSL to convert the document into HTML in the browser.A JavaScript solutionIn the previous article, we explained how to convert a document from XML to HTML using XSL. The trick is to add an XSL style sheet to the XML file and have the browser convert it. Even if this method works, including a styl
Summary: This article uses a simple example to illustrate the application of CSS + Div + XML + XSL.Div defines a form with the upper and lower structures. The middle part is divided into the left and right parts by the two divs.An XML file is used to store the data in the middle. The two XSL files are used to represent the data and the C # syntax is used to dynamically load the data.The DIV is shown in the middle, which is a form of presentation layer
page update easy (especially batch update banner, copyright, etc.).HTML or HTM is a static page format, there is no server-side script execution, so the server does not need to parse the script, and shtml based on SSI technology, when there is a server-side executable script as a dynamic programming language (such as php,jsp,asp) to see When shtml or shtm does not contain the server-side executable script, it is the same as HTML or HTM.The above is j
PHP is a weapon used by many warriors in the Web development field because it is a very intuitive programming language with powerful functions and good cross-platform compatibility, and it is free. PHP shadows can be seen from small online stores to websites of large enterprises.
One of the features of PHP is often overlooked, that is, the ability to work with XSL stylesheets to parse XML. Next let's take a look at how to set up an
returned"
|
Set operator, returns the union of two sets
Example 1:
Find the name and e-mail of the person with "Web development" skills from his/her resume. Assume that the document structure is as follows:
...
...
...
Find out the names of all persons with "Web development" skills and e-mail's XSL document structure from the above structure's resume:
Note:
1. [] ── indicating the selection criteria.
Grammar
Introduction to XSL SyntaxThe first thing to notice is that the XSL file itself is an XML file, so at the beginning of the XSL file there is the same declaration as the XML file. The standard organization for this XML has defined many tags (elements) for XSL, which is the combination of these tags and HTML tags
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.