[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: tag and attribute statistics attached with node s

Subject: Re: tag and attribute statistics attached with node sequence
From: Abel Braaksma <abel.online@xxxxxxxxx>
Date: Mon, 23 Apr 2007 18:18:38 +0200
Re:  tag and attribute statistics attached with node  s
fatma helmy wrote:
Dear all
can i ask a question on XSLT ? pls, if this group is
not interested in xslt,

This group is called "xsl-list" with a reason: we all *love* xslt, you are at the right spot!





the above xslt produces a statistics on tag counts
for example suppose i have this xml
<bookstore>
<book>
<author> john </author> </book>
<book>
<author> mary </author>
</book>
</bookstore>


the following statistics will be
<tag> author </tag>
repeted twice in the path book/author
it has the following value john and mary
what i need is to add instruction that would give the
following
<tag> author </tag>
repeted twice in the path book/author
it has the following value john in the first book and
mary in the second book

Unfortunately, you seem to be using extension functions and we cannot run a stylesheet with extension functions if we don't have the code and/or processor that supports these extension functions. It appears to me that these extension functions where written by yourself. Can you perhaps provide us with a minimal stylesheet that illustrates your problem? I don't suppose all 250+ lines are relevant to your issue, are they? And make sure this minimized sample works, but without your extension instructions, if possible.


On the other hand, it seems from the names of your extensions and the structure of the stylesheet that what you are trying to achieve can also be achieved much easier with XSLT 1.0 alone.

What XSLT processor are you using?

Cheers,
-- Abel Braaksma

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.