xsl-list
[Top] [All Lists]

Re: defining sections

2005-11-25 07:57:32
thank you to all your help I owe you all a pint of
beer!

--- Geert Josten <Geert(_dot_)Josten(_at_)daidalos(_dot_)nl> wrote:

Sorry, wasn't paying attention enough.

As David said earlier, the data templates were
selecting data child elements again for 
apply-templates, but they don't contain them. I
changed the apply-templates statements below..

Regards,
Geert

  <xsl:template match="root">
          <root>
                  <artefact doc_ref="{$DOC_REF}" type_id="1">

(cut)

<xsl:apply-templates select="data[(.='Functional
Requirements') or (.='Design Derived
Requirements')]"/>

                  </artefact>
          </root>
  </xsl:template>

  <xsl:template match="data"/>

  <xsl:template match="data[.='Functional
Requirements']">
          <before>
                  <xsl:value-of select="."/>
          </before>

     <xsl:apply-templates
select="following::data[following::data[.='Design
Derived Requirements']]" 
mode="before" />

  </xsl:template>

<xsl:template match="data" mode="before">
   <before>
           <xsl:value-of select="."/>
   </before>
</xsl:template>

  <xsl:template match="data[.='Design Derived
Requirements']">
          <after>
                  <xsl:value-of select="."/>
          </after>

     <xsl:apply-templates select="following::data"
mode="after" />

  </xsl:template>

<xsl:template match="data" mode="after">
   <after>
           <xsl:value-of select="."/>
   </after>
</xsl:template>


--~------------------------------------------------------------------
XSL-List info and archive: 
http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to:
http://lists.mulberrytech.com/xsl-list/
or e-mail:
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--





                
__________________________________ 
Start your day with Yahoo! - Make it your home page! 
http://www.yahoo.com/r/hs

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



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