xsl-list
[Top] [All Lists]

xsl grabbing specific data

2004-09-08 12:07:03
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