[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: following-sibling problem

Subject: Re: following-sibling problem
From: Bruce D'Arcus <bdarcus@xxxxxxxxxxxxx>
Date: Thu, 28 Oct 2004 11:06:26 -0400
following sibling syntax
On Oct 28, 2004, at 10:54 AM, Michael Kay wrote:

It should be "current-group() except ."

I think what you've sent would be a syntax error though.

That was the problem, but Saxon didn't give me an error.


Anyway, I had to tweak things a bit more to get it work right (the 0 level gets an h2 tag), but it now works nicely. BTW, this is to convert Apple Keynote presentation files to the new HTML slideshow system from Eric Meyer (which is really nice!).

Bruce

<xsl:template match="key:slide">
<div class="slide">
<xsl:apply-templates select="key:bullets"/>
<xsl:apply-templates select="key:drawables/key:image[contains(@image-data, '.jpg')]|
key:drawables/key:image[contains(@image-data, '.png')]"/>
</div>
</xsl:template>


<xsl:template match="key:bullets">
<xsl:choose>
<xsl:when test="../@master-slide-id='master-slide-1'">
<xsl:apply-templates select="key:bullet[@level='0']" mode="title"/>
</xsl:when>
<xsl:otherwise>
<h2><xsl:value-of select="key:bullet[@level='0']"/></h2>
<xsl:call-template name="process-level">
<xsl:with-param name="bullet" select="key:bullet"/>
<xsl:with-param name="level" select="1"/>
</xsl:call-template>
</xsl:otherwise>
</xsl:choose>
</xsl:template>


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.