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

Re: newbie problem

Subject: Re: newbie problem
From: "Joris Gillis" <roac@xxxxxxxxxx>
Date: Tue, 20 Sep 2005 14:48:14 +0200
Re:  newbie problem
Hi,

Tempore 14:43:50, die 09/20/2005 AD, hinc in xsl-list@xxxxxxxxxxxxxxxxxxxxxx scripsit Laing <laing.duncan@xxxxxxxxx>:

My first MEASURE template:
<xsl:template match="MEASURE">
    <xsl:for-each select=".">
         <xsl:choose>
                   <xsl:when test="BOOLEAN">
                            <xsl:apply-templates select="BOOLEAN"/>
                    </xsl:when>
                     <xsl:when test="CHOICE">
                            <xsl:apply-templates select="CHOICE"/>
                      </xsl:when>
                      <xsl:when test="MULTI_CHOICE">
                            <xsl:apply-templates select="MULTI_CHOICE"/>
                      </xsl:when>
                      <xsl:when test="TEXT">
                            <xsl:apply-templates select="TEXT"/>
                      </xsl:when>
           </xsl:choose>
   </xsl:for-each>
</xsl:template>

My next attempt:
<xsl:template match="MEASURE">
          <xsl:for-each select=".">
                  <xsl:if test="BOOLEAN">
                       <xsl:apply-templates select="BOOLEAN"/>
                  </xsl:if>
                  <xsl:if test="CHOICE">
                       <xsl:apply-templates select="CHOICE"/>
                   </xsl:if>
                    <xsl:if test="MULTI_CHOICE">
                       <xsl:apply-templates select="MULTI_CHOICE"/>
                    </xsl:if>
                    <xsl:if test="TEXT">
                       <xsl:apply-templates select="TEXT"/>
                    </xsl:if>
      </xsl:for-each>
</xsl:template>


Your third attempt:


<xsl:template match="MEASURE">
  <xsl:apply-templates select="BOOLEAN|CHOICE|MULTI_CHOICE|TEXT"/>
</xsl:template>

Your fourth attempt:

<xsl:template match="MEASURE">
  <xsl:apply-templates/>
</xsl:template>

Your fifth attempt:

nothing


regards, -- Joris Gillis (http://users.telenet.be/root-jg/me.html) Keep it simple.

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.