|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: xsl grabbing specific data
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








