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

attributes and elements

Subject: attributes and elements
From: "Bruce D'Arcus" <bdarcus@xxxxxxxxxxx>
Date: Wed, 3 Dec 2003 20:33:40 -0500
html element attributes master list

I'm trying to figure out how to code documents in such a way that I can generate presentations directly from them. To wit, I want to tag pieces of text with an attribute <phrase condition="screen">like so</phrase>, and to use those for bullet content. The attribute would not be only on the phrase element.


Where I am stuck is getting the content of whatever element has that attribute and attribute value applied. So in the above example, in others, words, I want output something like:

<bullet>like so</bullet>

Below's my template, with the problem area indicated with a --->

Help, please?

The source, BTW, is DocBook, and the target Apple's Keynote XML format.

Bruce

<xsl:template match="section">
<slide master-slide-id="master-slide-1">
<drawables>
<title visibility="hidden" vertical-alignment="tracks-master"/>
<body visibility="hidden" vertical-alignment="tracks-master"/>
</drawables>
<transition-style type="none" duration="0"/>
<bullets>
<bullet level="0" marker-type="inherited">
<content>
<xsl:apply-templates select="title"/>
</content>
</bullet>
<bullet level="1" marker-type="inherited">
<content>
---> <xsl:if test="*/condition">
---> <xsl:apply-templates/>
---> </xsl:if>
</content>
</bullet>
</bullets>
</slide>
</xsl:template>



XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list



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.