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[(_at_)attid=2]"/></td>
<td><xsl:value-of
select="category/attributeset/attribute[(_at_)attid=3]"/></td>
<td>
<xsl:choose>
<xsl:when
test="category/attributeset/attribute[(_at_)attid=2]='Restricted'">
Confidential
</xsl:when>
<xsl:when
test="category/attributeset/attribute[(_at_)attid=2]='Confidential'">
Confidential
</xsl:when>
<xsl:when
test="category/attributeset/attribute[(_at_)attid=2]='Unrestricted'">
<a href="mailto:admin(_at_)efsa(_dot_)eu(_dot_)int">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