From: Chris Cosentino (ccosenti@cisco.com)
Date: Wed Feb 18 2004 - 14:29:50 PST
Thanks Ken, that did the trick.
Thanks for your book too! It has been very helpful. I suppose I should go
buy a book on XSLT now as well :-)
-Chris
At Wednesday 05:10 PM 2/18/2004, G. Ken Holman wrote:
>At 2004-02-18 13:58 -0500, Chris Cosentino wrote:
>>I'm experiencing some odd behavior with sort.
[snip]
>Yes ... you haven't learned that <xsl:sort/> is an *empty* element ... the
>select attribute should be a relative specification, but it has *no*
>content. It is a modifier of the <xsl:for-each> instruction.
>
>Try:
>
><xsl:template name="index">
><fo:block>
>INDEX
><xsl:for-each select="//indexentry">
> <xsl:sort/>
> <fo:block font="11pt Times" space-before.optimum="6pt">
> <fo:wrapper text-transform="lowercase">
> <xsl:value-of select="."/>
> <fo:leader leader-pattern="dots"/>
> <fo:page-number-citation ref-id="{generate-id()}"/>
> </fo:wrapper>
> </fo:block>
></xsl:for-each>
></fo:block>
></xsl:template>
>
>>Obviously I need to read up on XPath a little better for my select
>>statements, but I still don't understand why nothing is output with even
>>just a basic sort.
>
>All you've done is improperly formed the instruction. Your XSLT processor
>should have flagged the illegal content to <xsl:sort/> ... it is an empty
>instruction.
>
>I hope this helps.
>
>................... Ken
-------------------
(*) To unsubscribe, send a message with words 'unsubscribe xep-support'
in the body of the message to majordomo@renderx.com from the address
you are subscribed from.
(*) By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/tos.html
This archive was generated by hypermail 2.1.5 : Wed Feb 18 2004 - 14:36:52 PST