[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: How do I change a XSL style sheet to group data t
kieters c wrote:
Which to me seems equal to mine, except that yours is with a bit more data. You can just concatenate more items together if you want (in my example it is only sample_date_time and cp_name). And if you need them as attributes too (like you show above), you can do so by changing the apply-templates for the attributes, plus changing the not(self::..... etc) expression, because these elements that you want transformed in attributes appear on the same level in the hierarchy and as such you'll have to specify them specifically and ignore them later. It may be easier to create an extra key with these elements that you want transformed into attributes. You can leave the @use attribute empty. Something like this should work, I think: <xsl:key name="turn-into-attr" match="sample_date_time | cp_name | etc etc" use=" '' " /> but that's just a matter of taste (note that you'll have to change some apply-templates as well to use this new key). You can also just copy your logic. Cheers, -- Abel Braaksma
|
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
|