xsl-list
[Top] [All Lists]

Re: attributes and elements

2003-12-06 07:48:30
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="*[(_at_)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



<Prev in Thread] Current Thread [Next in Thread>