[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Counting children in MSXML
Hello,
I am using MS's XML/XSL engine, and I need to test the existence of children elements of a element being matched in a template, as follows: the xml is something like: <SECTION> <ELEMENT>1</ELEMENT> <ELEMENT>2</ELEMENT> <ELEMENT>3</ELEMENT> <ELEMENT>4</ELEMENT> ... </SECTION> The <ELEMENT>'s are optional. As to the xml: ... <xsl:template match="SECTION"> <xsl:if test="there are element's in this section"> ... </xsl:if> </xsl:template>
<xsl:apply-templates order-by="@ORD" data-type="number" select="SECTION[where children ELEMENTs count> 0]" /> Can anyone give me hint?
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|