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

Re: rather tricky numbering problem

Subject: Re: rather tricky numbering problem
From: Dimitre Novatchev <dnovatchev@xxxxxxxxx>
Date: Mon, 21 Jun 2010 10:37:18 -0700
Re:  rather tricky numbering problem
After you use the standard XPath 2.0 collection() function, the rest
is simple grouping.

Create the resulting files using <xsl:result-document> -- best with
the same name but in a new directory.



--
Cheers,
Dimitre Novatchev
---------------------------------------
Truly great madness cannot be achieved without significant intelligence.
---------------------------------------
To invent, you need a good imagination and a pile of junk
-------------------------------------
Never fight an inanimate object
-------------------------------------
You've achieved success in your field when you don't know whether what
you're doing is work or play



On Mon, Jun 21, 2010 at 10:31 AM, a kusa <akusa8@xxxxxxxxx> wrote:
> Hello
>
> I have a requirement which B I am not sure if this can be done in XSLT.
> I will try to explain it B theoretically as much as possible and please
> let me know if there is any way this can be done in XSLT.
>
> I have a bunch of XML files in a folder.
>
> The XML files have an element called 'prod-num' which is an 8-digit
> number the first 5 of which follows a particular numbering scheme
> based on what the XML is for.
>
> For example, if the XML represents books for children, B the prod-num
> has the following numbering scheme : 1212 - 1.
> If the XML data represents books for Science, the prod-num has the
> following numbering scheme: 1212-2
>
> Now, here is what needs to happen.
>
> The last three of the prod-num needs to be sequentially numbered if
> the first 5 are the same.
>
> So, in my explained example above, the transformation needs to read
> the folder with the XML files, and read through the prod-num values.
>
> If there are say two XML files with 1212-1, then the first one needs
> to be updated with 1212-1001, the second one becomes 1212-1002.
>
> Can the experts please give me some tips and ideas to resolve this?
>
> Thanks in advance

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.