Re: [Hypercontent-users] Repetitive emails for approvers
Brought to you by:
alexvigdor
From: tom t. <j_l...@ya...> - 2006-12-08 00:43:42
|
Hi, I removed resource-directories to declare XML files because of the conflict. but in the xml-doctype I modified the path="/**/*.xml" so that we can have xmls with different names.(not only index.xml) Everything working fine, but for.e.g if author wants to add a new file(xml) under a new folder, what can he do? Definite can add a folder because of the resource-directory but after that xml? So I want to know is even to upload the xml there should be a some sort of resource-directory, how can I upload it incrementally. Do you expect template xml in the folder and copy across other places if needed using the UI? Thanks --- Alex Vigdor <al...@bi...> wrote: > > 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 > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get > the chance to share your > opinions on IT & business topics through brief > surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Hypercontent-users mailing list > Hyp...@li... > https://lists.sourceforge.net/lists/listinfo/hypercontent-users > ____________________________________________________________________________________ Want to start your own business? Learn how on Yahoo! Small Business. http://smallbusiness.yahoo.com/r-index |