Deep XSL (1)
---Constructing a result tree overview
Translation: Sun Yizhong
XSL is the language that expresses the style sheet (stylesheet). Each stylesheet describes the rules that render a class of XML source documents. The process of rendering consists of two parts: first, the resulting tree is created by the source tree; second, the resulting tree is interpreted and displayed in the display, Paper or
Xml
The previous article talked about how XSL and XML are browsed on the client side. It is also a form of content publishing for CMS content management systems, i.e. XSL (template) +xml (content).
But the reality is not supported by the client browser, this will also give the server a certain amount of load, the best way to reduce the server service load is to fully implement the static content access mech
dom| data Java extracts data from any JDBC-compliant database, converts the data into a DOM object, and then formats the data into the desired form using XSL. In the previous article, we demonstrated how to programmatically extract data from a database. Now, let's talk about how to build a DOM object and format the data with an XSL style sheet. As a result, the final output is available to any application a
This article describes how to edit XML document data online through a detailed example. Due to Netscape's weak support for XML, data must be processed on the server to implement cross-platform data exchange. This article describes how to edit XML document data online through a detailed example. Due to Netscape's weak support for XML, data must be processed on the server to implement cross-platform data exchange. To edit the XML document, the first thing to do is to extract and display the data t
Style sheet Depth xsl (2)
---style sheet structure
Translation: Sun Yizhong
In an XML file, a style sheet is represented by an element xsl:stylesheet. The XSL processor must use the XML name Domain (Namespace) mechanism [the Global XML Names] When processing source files and style sheets. All XSL-defined elements (with prefix
xml| online In this paper, a detailed example is presented to illustrate the method of online editing of XML document data. Because Netscape has a weaker support for XML, data processing must be done on the server side to achieve Cross-platform data interchange. To edit an XML document, the first thing to do is to extract and display the data to the visitor, and XSL provides a good solution for us to display the XML file. The following example uses an
Original article: JanEgilRefsnes translation: Ajie III. XSL-implementation in the client's real 1. JavaScript solution in the previous chapter we have explained how XSL converts XML into HTML files. The method is to add an XSL style table in the header of the XML document.
Original: Jan Egil RefsnesIII. XSL-implementat
XSL: script
>
VaR v = new activexobject ("msscriptcontrol. scriptcontrol.1 ");V. Language = "VBScript ";VaR ret = V. eval ('msgbox ("Press OK to print all projects with fixed assets as 1; otherwise, projects with fixed assets as 0 are printed. ", 65," Print confirmation dialog box ")');Function getconfirm (){VaR retvalue = (ret = 1 )? True: false;Return retvalue;}
XSL: script
>
If you wowould like to generate the DOCTYPE specification in the html output when using xslt transformation, you can not write the code as following:
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->Xmlns: xsl = "http://www.w3.org/1999/XSL/Transform">
It is because we can not write the DOCTYPE element in the xslt file, it's not a well-formed xml element. To a
Original: A Egil refsnes translation: Atzie
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 m
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 XSL. Where XSL is well-suited for XML.
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 dat
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
A small program that used python to process XML Conversion the other day to convert XML and XSL to HTML.
Libxml2 is used. Therefore, libxml2 must be installed first.
#-*-Coding: MBCS -*-#! /Usr/bin/Python
Import libxml2, libxslt
Class compoundxml:Def _ init _ (Self ):Self. _ result = noneSelf. _ XSL = noneSelf. _ xml = noneDef do (self, xml_file_name, pai_file_name ):Self. _ xml = libxml2.parsefile (xml_fil
Template Depth xsl (4)
---template
Translation: Sun Yizhong
1 overview
When a rule applied to a source element is determined, the template for that rule is implemented. A template can contain the elements of a literal result, character data, and instructions that produce a tree portion of the result. Directives are represented by elements in the XSL Name field and can be processed by selecting descendant
Test. xml
XML version = "1.0" encoding = "gb2312"
?>
XML-stylesheet href = "test. XSL" type = "text/XSL"
?>
Entry
>
Title
>
Entry with images
Title
>
Date
>
August 09,200 3
Date
>
Author
>
Kevin
Author
>
Idnum
>
000033
Idnum
>
Permalink
>
Http://alazanto.org/xml/archives/000033.xml
Permalin
xml| Online
A detailed example is presented to illustrate the method of editing XML document data online. Because Netscape has a weaker support for XML, data processing must be done on the server side to achieve Cross-platform data interchange. To edit an XML document, the first thing to do is to extract and display the data to the visitor, and XSL provides a good solution for us to display the XML file. The following example uses an
A detailed example is presented to illustrate the method of editing XML document data online. Because Netscape has a weaker support for XML, data processing must be done on the server side to achieve Cross-platform data interchange. To edit an XML document, the first thing to do is to extract and display the data to the visitor, and XSL provides a good solution for us to display the XML file. The following example uses an
js|xml| asynchronous 1. Create a new VS2003 Web project, named Xmltest
2. Delete all the contents of the WebForm1.aspx in the engineering catalogue, leaving only one statement at the top:
3. Modify the contents of the WebForm1.aspx.cs and add in Page_Load:
XmlDocument doc=new XmlDocument ();
String xmlfile=string. Empty;
xmlfile=context.request.physicalapplicationpath+ (request.querystring["sel"). ToString () = = "xml"? \\hello.xml ":" \\hello.xsl ");
Doc. Load (xmlfile);
Response.Write (Do
Prerequisites: Install libxml2 libxstl
Http://xmlsoft.org/XSLT/index.html
Installation Package download: http://xmlsoft.org/sources/
Download the exe Installation File on windows:
Http://xmlsoft.org/sources/win32/python/Here is the reprinted test code:
Copy codeThe Code is as follows:#-*-Coding: mbcs -*-#! /Usr/bin/python
Import libxml2, libxslt
Class compoundXML:Def _ init _ (self ):Self. _ result = NoneSelf. _ xsl = NoneSelf. _ xml = NoneDef do (sel
The release Link (XSL link) must be an absolute path. If you use a path similar to "/_ layouts/picxsl. XSLT is converted to c: \ _ layouts \ picxsl. XSLT ", the page will report an error:
: I don't seem to have this problem in another service market. It's strange.
The XSL specified by the "XSL" attribute or "XSL li
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.