This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

breaking up <tags> is hard to do


I'm trying to set an opening tag attribute based on the value of my input;
simple enough except that my closing tag needs to be outside of my select
template. How can I tell XSLT that I've taken care of my closing tag further
along in my stylesheet so I don't get a nesting error?

Here's my stylesheet:

<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:output omit-xml-declaration="yes" indent="yes"/>
<xsl:template match="/">
         <Transaction>
              <!--<xsl:choose>
                   <xsl:when test="Transaction/LIN/LIN03='EL'">
                      <EnrollmentRequest servicetype="ELECTRIC">
                   </xsl:when>
                   <xsl:otherwise>
                      <EnrollmentRequest servicetype="GAS">
                   </xsl:otherwise>
              </xsl:choose>-->
              .....
           ...Here I'm building other tags within <EnrollmentRequest>
..............
             ........
         </EnrollmentRequest>
    </Transaction>
</xsl:template>
</xsl:stylesheet>

Thanks in advance!

Steve
Email:  ssullivan@excelergy.com



 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]