XSLT <xsl:copy>
❮ XSLT ဒြပ်စင် အကိုးအကားကို အပြီးသတ်ပါ။
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
<xsl:copy> ဒြပ်စင်သည် လက်ရှိ node ၏ ကော်ပီကို ဖန်တီးသည်။
မှတ်ချက်- လက်ရှိ node ၏ Namespace node များကိုလည်း အလိုအလျောက် ကူးယူပါသည်၊ သို့သော် ကလေး node နှင့် လက်ရှိ node ၏ ဂုဏ်ရည်များကို အလိုအလျောက် ကူးယူမည်မဟုတ်ပါ။
အထားအသို
<xsl:copy use-attribute-sets="name-list">
<!-- Content:template -->
</xsl:copy>
ဂုဏ်တော်
Attribute | Value | Description |
---|---|---|
use-attribute-sets | name-list | Optional. A white space separated list of attribute-sets to apply to the output node, if the node is an element |
ဥပမာ ၁
မက်ဆေ့ချ် node ကို အထွက်စာရွက်စာတမ်းသို့ ကူးယူပါ-
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="message">
<xsl:copy>
<xsl:apply-templates/>
</xsl:copy>
</xsl:template>
</xsl:stylesheet>
❮ XSLT ဒြပ်စင် အကိုးအကားကို အပြီးသတ်ပါ။