XSL Development Summary

Source: Internet
Author: User

1. Output smaller than or greater

In actual development, it is found that the "minor sign" is simply replaced with "& lt;", and the "minor sign" cannot be correctly displayed in the output, but you need to add such a sentence, as shown below:

<XSL: Text disable-output-escaping = "yes">

& Lt;

</XSL: Text>

<XSL: Text> the element is used to write a piece of text into the output document.

 
Disable-output-escapingAttribute: it tells the processor to blindly copy its content to the result document.
 
Some escape characters of CDATA are prone to problems'<'Character, then the processor for compilation

2.Symbol description

$: Parameter or variable

<XSL: Param name = "tablename"/>

For example, reference parameter value or variable value: <XSL: value-of select = "$ tablename"/>

3. The output ASPX page is garbled in the browser.

When you repeatedly copy and paste text or special symbols in a documentCodeTo solve this problem, add the encoding settings when the output is a file, as shown below:

Streamwriter Sw = new streamwriter (rootpath + "\ genertatefile \ Temp. aspx", false, system. Text. encoding. utf8 );

 

To be improved...

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.