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

breaking up <tags> is hard to do

Subject: breaking up <tags> is hard to do
From: "Sullivan, Stephen" <SSullivan@xxxxxxxxxxxxx>
Date: Tue, 22 Feb 2000 14:49:14 -0500
sullivan steve
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@xxxxxxxxxxxxx



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


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.