xsl-list
[Top] [All Lists]

Re: xsl grabbing specific data

2004-09-08 13:50:49
Hi Dan,

how does your input look like? and the output you want to get?

do you want to generate <xml> elements only for <file-acl> 
having a name attribute? or only if that name equals 'c:\boot.ini'? 

<xslt:template match="//file-acl-list/file-acl">
    <xslt:choose>
        <xslt:when test="@name='c:\boot.ini'">
            <xml file-acl="boot.ini">
                <xslt:apply-templates/>
            </xml>
        </xslt:when>
        ...
    </xslt:choose>
</xslt:template>

That would give the same output as yours, but without
all those empty <xml file-accl=""></xml>


Anton Triest