Subject: RE: [xsl] Filtering files with data From: "SHEIKH Sajjad" <Sajjad.SHEIKH@xxxxxxxxxxx> Date: Mon, 20 Oct 2003 19:11:33 +0200 |
I summarize my question which may help I am looking for a "move to" function in XML so while transforming an XML document, I would be able to move the linked (word, pdf, tif, gif etc) documents to specific folders. Can XSLT help here? Thanks, /s -----Original Message----- From: SHEIKH Sajjad Sent: 20 October 2003 16:31 To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: [xsl] Filtering files with data Hi Following 0.xml been transformed by using following 0.xsl. It filters out the categories and displays a html. Is there anyway that we can filter the files as well and put them in different folders? Like all restricted files in a folder called restricted etc? Thanks in advance for help! /s 0.xml ------------------------------------------- <?xml version="1.0" encoding="ISO-8859-1"?> <?xml-stylesheet type="text/xsl" href="0.xsl"?> <livelink applanguage='USA' appversion='9.1.0' dtdversion='1.2'> <llnode created='2003-09-03T10:55:28' createdby='3418' createdbyname='Sajjad, Sheikh' id='145426' modified='2003-09-12T11:29:57' name='2. I - Internal Administration' objname='Folder' objtype='0' ownedby='3418' ownedbyname='Sajjad, Sheikh' parentid='145388' size='2'> <category defid='37402' name='Security Data' versionid='3'> <attributeset attid='1' name='Security Data'> <attribute attid='2' name='Classification Level' type='10'/> <attribute attid='3' name='Scope of Dissemination' type='10'/> </attributeset> </category> <llnode created='2003-09-12T11:04:08' createdby='3418' createdbyname='Sajjad, Sheikh' description='This is a text in Spanish language !!' id='146194' mimetype='application/msword' modified='2003-09-12T11:18:58' name='lindgre2[1].doc' objname='Document' objtype='144' ownedby='3418' ownedbyname='Sajjad, Sheikh' parentid='145426' size='34816' versionnum='2'> <category defid='37402' name='Security Data' versionid='3'> <attributeset attid='1' name='Security Data'> <attribute attid='2' name='Classification Level' type='10'>Restricted</attribute> <attribute attid='3' name='Scope of Dissemination' type='10'>Org</attribute> </attributeset> </category> <category defid='143745' name='Opinion' versionid='1'> <attributeset attid='1' name='Opinion'> <attribute attid='2' name='Opinion Title' type='11'>Whatever title</attribute> <attribute attid='3' name='Petitioner' type='-1'>Bayer</attribute> <attribute attid='4' name='Request Reference Name' type='-1'>Request 1</attribute> <attribute attid='5' name='Opinion Status' type='10'>Draft</attribute> <attribute attid='6' name='Adoption Date (if adopted)' type='-7'/> </attributeset> </category> </llnode> <llnode created='2003-09-12T11:29:56' createdby='3418' createdbyname='Sajjad, Sheikh' id='146299' mimetype='application/msword' modified='2003-09-12T11:36:16' name='New final opinion from Sajjad' objname='Document' objtype='144' ownedby='3418' ownedbyname='Sajjad, Sheikh' parentid='145426' size='19968' versionnum='3'> <category defid='37402' name='Security Data' versionid='3'> <attributeset attid='1' name='Security Data'> <attribute attid='2' name='Classification Level' type='10'>Unrestricted</attribute> <attribute attid='3' name='Scope of Dissemination' type='10'>World (no limitation)</attribute> </attributeset> </category> <category defid='143745' name='Opinion' versionid='1'> <attributeset attid='1' name='Opinion'> <attribute attid='2' name='Opinion Title' type='11'>mlsqdfklsq</attribute> <attribute attid='3' name='Petitioner' type='-1'>fjfkq</attribute> <attribute attid='4' name='Request Reference Name' type='-1'>fkqd</attribute> <attribute attid='5' name='Opinion Status' type='10'>Adopted</attribute> <attribute attid='6' name='Adoption Date (if adopted)' type='-7'>2003-09-12T00:00:00</attribute> </attributeset> </category> </llnode> </llnode> </livelink> ----------------------------- 0.xsl <xsl:for-each select="livelink//llnode"> <tr> <xsl:if test="@objname='Document'"> <td><xsl:value-of select="@createdbyname"/></td> <td><xsl:value-of select="substring-after(@mimetype,'/')"/></td> <td> <xsl:choose> <xsl:when test="contains(@name,'.')"> <xsl:value-of select="substring-before(@name,'.')"/> </xsl:when> <xsl:when test="contains(@name,'.')=false"> <xsl:value-of select="@name"/> </xsl:when> </xsl:choose></td> <td><xsl:value-of select="substring-before((@size div 1000),'.')"/></td> <td><xsl:value-of select="category/attributeset/attribute[@attid=2]"/></td> <td><xsl:value-of select="category/attributeset/attribute[@attid=3]"/></td> <td> <xsl:choose> <xsl:when test="category/attributeset/attribute[@attid=2]='Restricted'"> Confidential </xsl:when> <xsl:when test="category/attributeset/attribute[@attid=2]='Confidential'"> Confidential </xsl:when> <xsl:when test="category/attributeset/attribute[@attid=2]='Unrestricted'"> <a href="mailto:admin@xxxxxxxxxxx">Order It Now!</a> </xsl:when> </xsl:choose></td> </xsl:if> </tr> </xsl:for-each> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list ______________________________________________________________ This message has been checked for all viruses by BTnet VirusScreen. The service is delivered in partnership with MessageLabs. This service does not scan any password protected or encrypted attachments. If you are interested in finding out more about the service, please visit our website at http://www.btignite.com/internetservices/btnet/products_virusscreen.htm ============================================================== ______________________________________________________________ This message has been scanned for all viruses by BTnet VirusScreen. The service is delivered in partnership with MessageLabs. This service does not scan any password protected or encrypted attachments. If you are interested in finding out more about the service, please visit our website at http://www.btignite.com/internetservices/btnet/products_virusscreen.htm ============================================================== XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Filtering files with data, SHEIKH Sajjad | Thread | RE: [xsl] Filtering files with data, Wendell Piez |
RE: [xsl] XPath: selecting matching, Michael Kay | Date | [xsl] Grouping Problem, puja thakral |
Month |