svn commit: r615236 - in /lenya/branches/BRANCH_1_2_X/src/webapp/lenya: resources.xmap xslt/authoring/asset-upload.xsl xslt/authoring/asset.xsl

[email protected]
Newsgroups gmane.comp.cms.lenya.cvs
Message-ID <[email protected]>
Author: andreas
Date: Fri Jan 25 06:54:07 2008
New Revision: 615236

URL: http://svn.apache.org/viewvc?rev=615236&view=rev
Log:
Allow to upload XML files as assets.

Modified:
    lenya/branches/BRANCH_1_2_X/src/webapp/lenya/resources.xmap
    lenya/branches/BRANCH_1_2_X/src/webapp/lenya/xslt/authoring/asset-upload.xsl
    lenya/branches/BRANCH_1_2_X/src/webapp/lenya/xslt/authoring/asset.xsl

Modified: lenya/branches/BRANCH_1_2_X/src/webapp/lenya/resources.xmap
URL: http://svn.apache.org/viewvc/lenya/branches/BRANCH_1_2_X/src/webapp/lenya/resources.xmap?rev=615236&r1=615235&r2=615236&view=diff
==============================================================================
--- lenya/branches/BRANCH_1_2_X/src/webapp/lenya/resources.xmap (original)
+++ lenya/branches/BRANCH_1_2_X/src/webapp/lenya/resources.xmap Fri Jan 25 06:54:07 2008
@@ -240,6 +240,10 @@
           <map:match pattern="*/*/**.cfg">
             <map:read src="pubs/{1}/resources/{2}/{3}.cfg" mime-type="application/x-ms-word" />
           </map:match>
+      
+          <map:match pattern="*/*/**.xml">
+            <map:read src="pubs/{1}/resources/{2}/{3}.xml" mime-type="application/xml"/>
+          </map:match>
 
 <!-- matches pub-id/area/**.* this fallback may not work very well, but better than a 404
           <map:match pattern="*/*/**.*">

Modified: lenya/branches/BRANCH_1_2_X/src/webapp/lenya/xslt/authoring/asset-upload.xsl
URL: http://svn.apache.org/viewvc/lenya/branches/BRANCH_1_2_X/src/webapp/lenya/xslt/authoring/asset-upload.xsl?rev=615236&r1=615235&r2=615236&view=diff
==============================================================================
--- lenya/branches/BRANCH_1_2_X/src/webapp/lenya/xslt/authoring/asset-upload.xsl (original)
+++ lenya/branches/BRANCH_1_2_X/src/webapp/lenya/xslt/authoring/asset-upload.xsl Fri Jan 25 06:54:07 2008
@@ -34,7 +34,7 @@
 <xsl:param name="lenya.usecase" select="'asset'"/>
 <xsl:param name="lenya.step"/>
 <xsl:param name="error"/>
-<xsl:param name="extensions" select="'doc dot rtf txt asc ascii xls xlw xlt ppt pot gif jpg png tif eps pct m3u kar mid smf mp3 swa mpg mpv mp4 mov bin sea hqx sit zip jmx jcl qz jbc jmt cfg pdf'"/>
+<xsl:param name="extensions" select="'doc dot rtf txt asc ascii xls xlw xlt ppt pot gif jpg png tif eps pct m3u kar mid smf mp3 swa mpg mpv mp4 mov bin sea hqx sit zip jmx jcl qz jbc jmt cfg pdf xml'"/>
 
 <xsl:template match="/lenya-info:info">
   <page:page>

Modified: lenya/branches/BRANCH_1_2_X/src/webapp/lenya/xslt/authoring/asset.xsl
URL: http://svn.apache.org/viewvc/lenya/branches/BRANCH_1_2_X/src/webapp/lenya/xslt/authoring/asset.xsl?rev=615236&r1=615235&r2=615236&view=diff
==============================================================================
--- lenya/branches/BRANCH_1_2_X/src/webapp/lenya/xslt/authoring/asset.xsl (original)
+++ lenya/branches/BRANCH_1_2_X/src/webapp/lenya/xslt/authoring/asset.xsl Fri Jan 25 06:54:07 2008
@@ -43,7 +43,7 @@
 
   <xsl:param name="error"/>
 
-  <xsl:param name="extensions" select="'doc dot rtf txt asc ascii xls xlw xlt ppt pot gif jpg png tif eps pct m3u kar mid smf mp3 swa mpg mpv mp4 mov bin sea hqx sit zip jmx jcl qz jbc jmt cfg pdf'"/>
+  <xsl:param name="extensions" select="'doc dot rtf txt asc ascii xls xlw xlt ppt pot gif jpg png tif eps pct m3u kar mid smf mp3 swa mpg mpv mp4 mov bin sea hqx sit zip jmx jcl qz jbc jmt cfg pdf xml'"/>
 
   <xsl:template match="/lenya-info:info">
     <page:page xmlns:page="http://apache.org/cocoon/lenya/cms-page/1.0">
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.