Data Sorting Template
Data Files
As we have discussed how to convert XML to HTML through JS + XSL, we will not describe it here. You only need to read the sorting template file.
After installing. net2.0, start IIS and enter the URL 'HTTP: // localhost/test. aspx 'in the browser. The following error message is displayed:
The XML page cannot be displayed.XML input cannot be viewed using the XSL style sheet. Correct the error and click Refresh or try again later.--------------------------------------------------------------------------------
The name must start with an invalid cha
Enter the URL in the browser: ' http://localhost/test.aspx ' The following error message appears:The XML page could not be displayed.XML input cannot be viewed using XSL style sheets. Please correct the error and click the Refresh button, or try again later.--------------------------------------------------------------------------------The name begins with an invalid character. An error occurred while proce
Example
Code
1. Test. xml
Copy code The Code is as follows: Alt = "photograph of a flower, just for show"/> mauris Felis elit, varius
Quis, pulvinar Vel, sodales vehicula, mi. nunc elementum pharetra elit.
2. Test. XSLCopy codeThe Code is as follows:
The key is to use the namespace xmlns: XSL = "http://www.w3.org/1999/XSL/Transform" and add disable-outp
Xml
Sample code
1. Test.xml
alt= "Photograph of a flower, just for show"/>mauris Felis elit, varius
Quis, Pulvinar vel, sodales vehicula, MI. Nunc elementum, Pharetra elit.
2. test.xsl
The key lies in the use of namespaces xmlns:xsl= "Http://www.w3.org/1999/XSL/Transform" and output plus disable-output-escaping= "yes"
1. Create a vs2003 web project named XMLTest2. Delete all content in WebForm1.aspx under the Project Directory, leaving only one statement at the top:3. Modify the content in WebForm1.aspx. cs and add the following content to Page_Load:XmlDocument doc = new XmlDocument ();String xmlfile = string. Empty;Xmlfile = Context. Request. PhysicalApplicationPath + (Request. QueryString ["sel"]. ToString () = "xml "? "\ Hello.
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:
------------------
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 a
The examples in this article describe how Python transforms XML and XSL into HTML. Share to everyone for your reference. The specific analysis is as follows:
You need to use LIBXML2, so you have to install the LIBXML2 module before you can use it. The code is as follows:
#-*-Coding:mbcs-*-#!/usr/bin/python import libxml2, Libxslt class Compoundxml:def __init__ (self): Self._resul t = none self._xsl =
Eai xml converter is generally used together with EAI Siebel Adapter. The Code mainly uses the javasbjhiertoxmldoc Method for reference.
If other methods are sorted out later, they will be updated continuously.
VaR bsquotemsg = theapplication (). getservice ("EAI Siebel adapter"); var psinputs = theapplication (). newpropertyset (); var psoutputs = theapplication (). newpropertyset (); If (objid! = "") {Psi
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.