एक्सएसएलटी <एक्सएसएल:कॉपी>
❮ पूर्ण एक्सएसएलटी तत्व संदर्भ
परिभाषा और उपयोग
<xsl:copy> तत्व वर्तमान नोड की एक प्रति बनाता है।
नोट: वर्तमान नोड के नेमस्पेस नोड्स भी स्वचालित रूप से कॉपी किए जाते हैं, लेकिन चाइल्ड नोड्स और वर्तमान नोड के गुण स्वचालित रूप से कॉपी नहीं होते हैं!
वाक्य - विन्यास
<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 |
उदाहरण 1
संदेश नोड को आउटपुट दस्तावेज़ में कॉपी करें:
<?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>
❮ पूर्ण एक्सएसएलटी तत्व संदर्भ