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

xsl grabbing specific data

Subject: xsl grabbing specific data
From: tom jones <h8_bsod@xxxxxxxxx>
Date: Wed, 8 Sep 2004 12:07:03 -0700 (PDT)
xslt choose
If I use this transform against my xml my output gives
me below. How do 
I strip out all of the other unwanted not matches and
once a match is 
performed can I do a value-select to gather further
attributes? I tried 
to create an empty template match but that just ends
up giving me no 
data at all.
 
Thanks in advance,
Dan Sherman
---------------------------------------------------------------------------------------------------------------------------

 <xslt:output method="xml"/>
    <xslt:preserve-space elements="/"/>
        <xslt:template
match="//file-acl-list/file-acl">
                <xml>
                  <xslt:attribute name="file-acl">
                        <xslt:choose>
                          <xslt:when 
test="@name='c:\boot.ini'">boot.ini</xslt:when>
                                <xslt:otherwise>
                                </xslt:otherwise>
                        </xslt:choose>
                  </xslt:attribute>
                  <xslt:apply-templates/>
                </xml>
        </xslt:template>
 
---------------------------------------------------------------------------------------------------------------------------
xml file-acl=""></xml><xml 
file-acl=""></xml><xml file-acl=""></xml><xml
file-acl=""></xml><xml 
file-acl=""></xml><xml file-acl="">
</xml><xml file-acl=""></xml><xml
file-acl=""></xml><xml 
file-acl=""></xml><xml file-acl=""></xml><xml
file-acl=""></xml><xml 
file-acl=""></xml><xml file-acl=""></xml><xm
l file-acl=""></xml><xml file-acl=""></xml><xml
file-acl=""></xml><xml 
file-acl=""></xml><xml file-acl=""></xml><xml
file-acl=""></xml><xml 
file-acl=""></xml><xml file-ac
l=""></xml><xml file-acl=""></xml><xml
file-acl=""></xml><xml 
file-acl=""></xml><xml file-acl=""></xml><xml
file-acl=""></xml><xml 
file-acl=""></xml><xml file-acl=""></xm
l><xml file-acl=""></xml><xml file-acl=""></xml><xml 
file-acl=""></xml><xml file-acl=""></xml><xml
file-acl=""></xml><xml 
file-acl=""></xml><xml file-acl=""></xml><xml fi
le-acl=""></xml><xml file-acl=""></xml><xml
file-acl=""></xml><xml 
file-acl=""></xml><xml file-acl=""></xml><xml
file-acl=""></xml><xml 
file-acl=""></xml><xml file-acl=""
></xml><xml file-acl=""></xml><xml
file-acl=""></xml><xml 
file-acl=""></xml><xml file-acl=""></xml><xml
file-acl=""></xml><xml 
file-acl=""></xml><xml file-acl=""></xml><x
ml file-acl="boot.ini"></xml><xml
file-acl=""></xml><xml 
file-acl=""></xml><xml file-acl=""></xml><xml
file-acl=""></xml><xml 
file-acl=""></xml><xml file-acl=""></xml><xm
l file-acl=""></xml><xml file-acl=""></xml><xml
file-acl=""></xml><xml 
file-acl=""></xml><xml file-acl=""></xml><xml
file-acl=""></xml><xml 
file-acl=""></xml><xml file-ac
l=""></xml><xml file-acl=""></xml><xml
file-acl=""></xml><xml 
file-acl=""></xml><xml file-acl=""></xml><xml
file-acl=""></xml><xml 
file-acl=""></xml><xml file-acl=""></xm
l><xml file-acl=""></xml><xml file-acl=""></xml><xml 
file-acl=""></xml><xml file-acl=""></xml><xml
file-acl=""></xml><xml 
file-acl=""></xml><xml file-acl=""></xml><xml fi
le-acl=""></xml><xml file-acl=""></xml><xml
file-acl=""></xml><xml 
file-acl=""></xml><xml file-acl=""></xml>



		
__________________________________
Do you Yahoo!?
Yahoo! Mail is new and improved - Check it out!
http://promotions.yahoo.com/new_mail

--+------------------------------------------------------------------
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@xxxxxxxxxxxxxxxxxxxxxx>
--+--

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.