XSL Study Notes (1)
Some people say that XSL is the replacement of CSS. Is it true?
1. IntroductionXSL is a language that describes style sheets, including XSLT, XPath, and XML format objects.Unlike HTML, XML does not have predefined labels,
Table I, operators and special character operators describe/select child elements, returns the immediate child element of the left element; if "/" is at the left, the direct child element//recursive descent that selects the root node, regardless of
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
When formatting XML documents using XSLT, you sometimes want to output! [CDATA []> the content node has the advantage that the content in CDATA does not need to be escaped and can be stored in the XML document as is without ambiguity. However, you
Test.xml:Only text
Because the XML Query language supports XSL Patterns and is the default query language for versions prior to MSXML 4.0, you can do so in the version of MSXML 3.0:
var xmldoc=new activexobject ("MSXML2"). domdocument.3.0
The content in CDATA (possibly non-standard Html code) is displayed in Html format. Recently I wrote a combination of XML + XSL and Html, and someone asked me how to display the content in CDATA in Html format (especially the Html written by users
Example
Code
1. Test. xml
Copy code The Code is as follows:
entry with images
August 09,200 3
Kevin
000033
http://alazanto.org/xml/archives/000033.xml
Class = "ARCHIVE" align = "right" src = "http://alazanto.org/images/sample.jpg"
This section describes the methods and attributes added by multiple XSL for VBScript and JScript to give full play to the advantages of XML, which are used for , compile the expression within the tag or the expr attribute of and .
1.
Recently, I wrote about the combination of XML + XSL and HTML.
Article Someone asked me how to display the content in CDATA in HTML format (especially the HTML written by users is not standard ). I wanted to write an example, and then I went to
I wrote xml+xsl and HTML a few days ago, and then someone asked me how to show the CDATA content in HTML (especially when the user writes HTML that is not standard). Originally wanted to write an example, and then to Google on a check, found that
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.