XSLT <xsl:stylesheet> နှင့် <xsl:transform> ဒြပ်စင် များ
❮ XSLT ဒြပ်စင် အကိုးအကားကို အပြီးသတ်ပါ။
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
<xsl:stylesheet> နှင့် <xsl:transform> ဒြပ်စင်များသည် လုံးဝ ထပ်တူကျသော ဒြပ်စင်များဖြစ်သည်။ စတိုင်စာရွက်၏ အမြစ်ဒြပ်စင်ကို သတ်မှတ်ရန် နှစ်ခုလုံးကို အသုံးပြုသည်။
အထားအသို
<xsl:stylesheet
id="name"
version="version"
extension-element-prefixes="list"
exclude-result-prefixes="list">
<!-- Content:(<xsl:import>*,top-level-elements) -->
</xsl:stylesheet>
<xsl:transform
id="name"
version="version"
extension-element-prefixes="list"
exclude-result-prefixes="list">
<!-- Content:(<xsl:import>*,top-level-elements) -->
</xsl:transform>
ဂုဏ်တော်
Attribute | Value | Description |
---|---|---|
version | version | Required. Specifies the XSLT version of the style sheet |
extension-element-prefixes | list | Optional. A white space separated list of namespace
prefixes used for extension elements This attribute is not supported by Netscape 6 |
exclude-result-prefixes | list | Optional. A white space separated list of namespace prefixes that should not be sent to the output |
id | name | Optional. A unique id for the style sheet This attribute is not supported by Netscape 6 |
ဥပမာ ၁
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
....
....
</xsl:stylesheet>
ဥပမာ ၂
<?xml version="1.0" encoding="UTF-8"?>
<xsl:transform version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
....
....
</xsl:transform>
❮ XSLT ဒြပ်စင် အကိုးအကားကို အပြီးသတ်ပါ။