|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: arbitrary sorting (Part IV)
> I want to sort my elements (<element > month="Jul">...</element>) in the > same order as in <monthtab>. Note: there's no explizit number given in > monthtab. Any ideas how to solve that? > (perhaps by using position() somehow ...) Tricky, because there's no XPath facility to determine the position of a node relative to its siblings: you can only do this using <xsl:number/>, and you can't invoke XSLT-level operations while computing a sort key. Not until the next Saxon release, anyway, which will allow you to implement external XPath functions in XSLT. But if you you're prepared to go outside the standard, the whole problem becomes very easy! Mike Kay 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
|

Cart








