Re: [xsl] attributes and elements

Subject: Re: [xsl] attributes and elements
From: "Bruce D'Arcus" <bdarcus@xxxxxxxxxxx>
Date: Sat, 6 Dec 2003 09:48:30 -0500
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">
		<xsl:apply-templates select="title"/>
      <xsl:apply-templates mode="filter-condition"/>

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

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

XSL-List info and archive:

Current Thread