Re: Re: Re: Re: [xsl] Namespace and key function issue?

Subject: Re: Re: Re: Re: [xsl] Namespace and key function issue?
From: russurquhart1@xxxxxxxxxxx
Date: Tue, 12 Oct 2010 17:05:05 -0500 (CDT)
For the bold text span it reported:

<!--
text:style-name=T7
key=
count=1
lookup=
count=1--><Emphasis type="">Bold</Emphasis>

So i guess key and lookup are failing.
I'll try this outside OO.

Thanks,

Russ

Oct 12, 2010 09:50:23 PM, xsl-list@xxxxxxxxxxxxxxxxxxxxxx wrote:

>At 2010-10-12 16:19 -0500, russurquhart1@xxxxxxxxxxx wrote:
>>I can confirm the otherwise is being executed. I added the following:
>>
>>                         
>>                         
>>                                                 
>> 
>>normal
>>                                                         > > @text:style-name)/style:text-properties/@fo:font-weight"/> -->
>>                                                 
>>                                                 
>>                                         
>>                                 
>>                         
>>                 
>>
>>And those elements were created with a normal @type attribute. When 
>>i commented out that line, and substituted the key function on the 
>>next line, i get a "" value for the type attribute.
>
>Okay, I would next try to reproduce the key declaration in a (slow!) 
>XPath address.  Where you have the equivalent of:
>
>  
>   
>     
>   
>   
>  
>
>... change it to the following:
>
>  
>   
>     text:style-name=
>     key=
>     count=
>     lookup=
>     count=
>   
>   
>     
>   
>   
>  
>
>.... and inspect the result to see if that gives you any clues.  I 
>often resort to this kind of exposition to try and figure out what is going 
>on.
>
>Also, remember you can extract the XML from the ODF package and run 
>your stylesheet externally to see if there are any differences in the results.
>
>I hope this helps.
>
>. . . . . . . . . Ken
>
>
>--
>XSLT/XQuery training:   after http://XMLPrague.cz 2011-03-28/04-01
>Vote for your XML training:   http://www.CraneSoftwrights.com/s/i/
>Crane Softwrights Ltd.          http://www.CraneSoftwrights.com/s/
>G. Ken Holman                 mailto:gkholman@xxxxxxxxxxxxxxxxxxxx
>Male Cancer Awareness Nov'07  http://www.CraneSoftwrights.com/s/bc
>Legal business disclaimers:  http://www.CraneSoftwrights.com/legal

Current Thread