Subject: Re: [xsl] xsl grabbing specific data From: "cking" <cking@xxxxxxxxxx> Date: Wed, 8 Sep 2004 22:50:49 +0200 |
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
Current Thread |
---|
<- Previous | Index | Next -> |
---|---|---|
[xsl] xsl grabbing specific data, tom jones | Thread | Re: [xsl] xsl grabbing specific dat, tom jones |
Re: [xsl] detecting if a given node, David Carlisle | Date | RE: [xsl] detecting if a given node, Michael Kay |
Month |