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

Re: attributes and elements

Subject: Re: attributes and elements
From: "Bruce D'Arcus" <bdarcus@xxxxxxxxxxx>
Date: Sat, 6 Dec 2003 09:48:30 -0500
while condition in xsl
On Dec 6, 2003, at 7:12 AM, J.Pietschmann wrote:

Ouch, had a bad day. This should be
 <xsl:template match="text()" mode="filter-condition"/>
in order to strip unwanted text nodes while filtering out
elements with the desired condition.

That did; thanks a lot!


Now, if I may, I wonder if anyone has any suggestions on figuring out -- between the document coding and the xslt -- the hierarchy: determining what's a slide, what's a slide title, and the bullet levels.

It's easy to say:

article title -->  title slide
section title -->  title slide

But I am gathering I then need to explicitly assign a level beyond that for attribute-tagged chunks of text within paragraphs, for example.

What I had in mind was something like:

<para>A <quote condition="screen" userlevel="0">slide title</quote>.</para>
<para>A <quote condition="screen" userlevel="1">bullet1</quote>.</para>
<para>A <quote condition="screen" userlevel="2">bullet2</quote>.</para>


Does that seem right? and if yes, how would I extend my basic stylesheet to incorporate the levels?

Again, here's where I'm at (obviously I need another template for the main title slide):

<xsl:template match="section">
	<h1>
		<xsl:apply-templates select="title"/>
	</h1>
    <content>
      <xsl:apply-templates mode="filter-condition"/>
	</content>
</xsl:template>

<xsl:template match="*[@type='screen']" mode="filter-condition">
     <bullet>
		<xsl:apply-templates/>
	</bullet>
</xsl:template>

<xsl:template match="text()" mode="filter-condition"/>


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.