Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Question about create pivot table in xslt

From: "Dimitre Novatchev" <dimitren@---.---.-->
To: NULL
Date: 6/1/2007 11:33:00 PM

> Dimitre,
>
> I found you are using msxsl namespace, is that gonna be a problem for
> none-microsoft browsers? Thanks.
>

No, but for another processor one would normally use the exslt:node-set() 
extension function instead.

Just a few days ago Julian Reschke and David Carlisle discovered a 
technique, which allows to specify exslt:node-set() in a way that it can be 
used with the MSXML xslt processor:

    http://dpcarlisle.blogspot.com/2007/05/exslt-node-set-function.html

Cheers,
Dimitre Novatchev

"Lee" <lee.jenkins.ca@g...> wrote in message 
news:1180722830.686354.136140@u......
> On Jun 1, 5:59 am, "Dimitre Novatchev" <dimit...@tpg.com.au> wrote:
>> See:
>>
>>    http://www.topxml.com/code/default.asp?p=3&id=v20010226151246
>>
>> Cheers,
>> Dimitre Novatchev
>>
>> "Lee" <lee.jenkins...@gmail.com> wrote in message
>>
>> news:1180653377.445712.231260@p......
>>
>>
>>
>> >I have a xml file, here is sample part:
>> > <?xml version="1.0" encoding="UTF-8"?>
>> > <ProducsList>
>> > <Product id="1">
>> > <SpecList>
>> > <Spec>
>> > <SpecLabel>Height</SpecLabel>
>> >  <SpecValue>10</SpecValue>
>> >  <SpecCat>Dimension</SpecCat>
>> >  </Spec>
>> > <Spec>
>> > <SpecLabel>Width</SpecLabel>
>> >  <SpecValue>6</SpecValue>
>> >  <SpecCat>Dimension</SpecCat>
>> >  </Spec>
>> >  <Spec>
>> > <SpecLabel>Weight</SpecLabel>
>> >  <SpecValue>20.5</SpecValue>
>> >  <SpecCat>Weigth</SpecCat>
>> >  </Spec>
>> > </SpecList>
>> > </Prodcut>
>> > <Product id="2">
>> > <SpecList>
>> > <Spec>
>> > <SpecLabel>Height</SpecLabel>
>> >  <SpecValue>8</SpecValue>
>> >  <SpecCat>Dimension</SpecCat>
>> >  </Spec>
>> > <Spec>
>> > <SpecLabel>Width</SpecLabel>
>> >  <SpecValue>5</SpecValue>
>> >  <SpecCat>Dimension</SpecCat>
>> >  </Spec>
>> >  <Spec>
>> > <SpecLabel>Weight</SpecLabel>
>> >  <SpecValue>18</SpecValue>
>> >  <SpecCat>Weigth</SpecCat>
>> >  </Spec>
>> > </SpecList>
>> > </Prodcut>
>> > <Product id="3">
>> > <SpecList>
>> > <Spec>
>> > <SpecLabel>Height</SpecLabel>
>> >  <SpecValue>5</SpecValue>
>> >  <SpecCat>Dimension</SpecCat>
>> >  </Spec>
>> > <Spec>
>> > <SpecLabel>Width</SpecLabel>
>> >  <SpecValue>2</SpecValue>
>> >  <SpecCat>Dimension</SpecCat>
>> >  </Spec>
>> >  <Spec>
>> > <SpecLabel>Weight</SpecLabel>
>> >  <SpecValue>10</SpecValue>
>> >  <SpecCat>Weigth</SpecCat>
>> >  </Spec>
>> > </SpecList>
>> > </Prodcut>
>> > </ProductsList>
>>
>> > I need to create a table look like that based on that xml file:
>>
>> > ----------------------------------------------------
>> > Label Product 1 product 2 product 3
>> > ----------------------------------------------------
>> > Height 10 8 5
>> > Width 6 5 2
>> > Weight 20.5 18 10
>>
>> > I am totally losed, I don't know how to create that table. any one has
>> > any idea about that? thank you very much.
>>
>> > Also how many Spec in SpecList is unkown.
>>
>> > Thanks for the help.- Hide quoted text -
>>
>> - Show quoted text -
>




transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent