ສະມາຊິກ XSLT <xsl:attribute-set>

ການອະທິບາຍ ແລະ ການນໍາໃຊ້

<xsl:attribute-set> ອົງປະກອບສາມາດອອກສາຍ. ຄວາມສາມາດນັ້ນ (attribute-set) ສາມາດຕິດຕັ້ງໃຫ້ພາຍໃນເອກະສານອອກສາຍ.

ຄວາມອະທິບາຍ:ຕ້ອງເປັນລູກຊົນຂອງ <xsl:stylesheet> ຫຼື <xsl:transform>.

ຂອບຂອງພາສາ

<xsl:attribute-set
name="name" use-attribute-sets="name-list">
  <!-- Content:xsl:attribute* -->
</xsl:attribute-set>

ຄວາມສາມາດ

ຄວາມສາມາດ ຄວາມຕົກລົງ ອະທິບາຍ
name name ຕ້ອງການ. ກໍານົດຊື່ຂອງຄວາມສາມາດ.
use-attribute-sets name-list ອະນຸຍາດ. ລາຍການຂອງບັນດາຄວາມສາມາດທີ່ຕ້ອງການໃຊ້ໃນຄວາມສາມາດນັ້ນ, ຈັດຕັ້ງດ້ວຍຈຸດບັນຫາ.

ບົດສະຫຼຸບ

ຄວາມສະເພາະ 1

ສ້າງມີຄວາມສາມາດຕິດຕັ້ງທາງອອກພາຍໃນສາຍອອກສາຍສາຍອອກ

<xsl:attribute-set name="font">
  <xsl:attribute name="fname">Arial</xsl:attribute>
  <xsl:attribute name="size">14px</xsl:attribute>
  <xsl:attribute name="color">red</xsl:attribute>
</xsl:attribute-set>