[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

[xsl] xsl grabbing specific data


Subject: [xsl] xsl grabbing specific data
From: tom jones <h8_bsod@xxxxxxxxx>
Date: Wed, 8 Sep 2004 12:07:03 -0700 (PDT)

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
Keywords
xml