This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

see if it is possible


for the following xml:

<A id ="1">
	<BRef Bid="1"/>
	<BRef Bid="2"/>
</A>
<A id ="2">
	<BRef Bid="3"/>
</A>
...
<B id="1" type="short"/>
<B id="2" type="long"/>
<B id="3" type="short"/>
...

with a known id=1 for A, how can I get the count of Bs, whose
type="short" and id equals the Bid in BRef who are the child of A, whose
id =1

I did it by 30 lines xsl code.
can this be done by one or a few line of code? like <xsl:variable
name="count" select="count(......)"/>

Thanks

Long

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]