Re: [Hypercontent-users] Repetitive emails for approvers
Brought to you by:
alexvigdor
From: Alex V. <al...@bi...> - 2006-12-01 14:39:03
|
On Nov 30, 2006, at 9:59 PM, tom tom wrote: > Hi Alex, > > I need to know two thing > > How can I add a xml document > 1) in your sample (portlet.zip) I gave the following > in the project definition file. But it fails and gives > a parsing exception. My intention is to facilitate xml > add feature similar to images > > > <resource-directory create="manual" label="XML" > path="/**/*.xml" publish="true"> > <content type="application/xml+xslt"/> > </resource-directory> > You should not use resource-directories to declare XML files, as they do not give you sufficient declarative control over the doctype and root element. The example you were working from is for XSL files, which are a special case, with a unique ".xsl" extension and the expectation that you will upload the files rather than use the XML editor. For regular XML files, you can use the same example you sent in your other message: <xml-doctype create="manual" definition="" label="Page" path="/**/*.xml" root="html"> <output basedir="/plain/" content-type="text/html"> <transform source="/config/skins/plain/common.xsl"> <with-param name="link-base" value="/plain"/> </transform> </output> </xml-doctype> However, you MUST remove that resource-directory definition - since they are both mapped to "/**/*.xml" you have created a conflict. The Premature End of File error is likely due to the files being created from the resource-directory definition, which will create a 0 length file, vs. the xml-doctype declaraton, which will initalize the file with a doctype and root element. > > 2) Also let us know it is possible to close the HC > wind ow when someone presses the logout. Is it > harmful? This is safe. Alex |