Gerritjan Koekkoek wrote:
> Hi,
> 
> I understand the concept, but what do I do with relations;
> Creator, Translation, translator.

I advise you to look at a generated XML file, the structure will answer
your questions.

> I also have some markup-tags like Title, Quote, Bulleted list,  
> Information, Contact-information

For this you can either use the syntax conversion feature of XWiki (as
Vincent said), or manually process the wiki content to convert to the
XWiki syntax.

> How would you develop a xml-schema for this; could I look at the  
> database structure and assume required, optional constraints
> Are there any enumerations used in xwiki (list of possible values) for  
> a field
> 
> What is the best way to find-out about the standard POSSIBLE  
> attributes of a xwiki document

Look at the XWikiDocument java class
(http://svn.xwiki.org/svnroot/xwiki/platform/core/trunk/xwiki-core/src/main/java/com/xpn/xwiki/doc/XWikiDocument.java),
or at the hibernate mapping file
(http://svn.xwiki.org/svnroot/xwiki/platform/core/trunk/xwiki-core/src/main/resources/xwiki.hbm.xml).
Or, look at the XML export of a document
(http://www.xwiki.org/xwiki/bin/view/Main/WebHome?xpage=xml), as the
format is straight-forward.

> Gerritjan
> On 14 feb 2009, at 18:55, Guillaume Lerouge wrote:
> 
>> Hi,
>>
>> XWiki Pages are stored as XML files. You can look at the XML  
>> representation
>> of a standard XWiki pages (export as XAR, rename to ZIP, unzip, look  
>> inside
>> the folder). Then try to find which XWL fields from your original  
>> XML format
>> could be converted into XWiki document fields (especially web, name,  
>> title,
>> creation date and content).
>>
>> Once you've decided which mapping to use, write and launch your XSLT  
>> script.
>> Then you'll have a bunch of XWiki pages as XML. Look at the output  
>> of a
>> XWiki XAR export to see what the description file looks like and  
>> write one
>> with the name of your pages inside.
>>
>> Put everything into a folder, zip it, rename it to .xar, try  
>> importing it.
>> If the import fails, try splitting it into a number of smaller XARs.
>>
>> Hope this helps,
>>
>> Guillaume
>>
>> On Sat, Feb 14, 2009 at 12:10 PM, Gerritjan Koekkoek <
>> [email protected]> wrote:
>>
>>> Hi.
>>>
>>> We have a repository of articles (our Old CMS) we would like to  
>>> import
>>> into xwiki automatically.
>>> These Articles are in a propietary XML format, one XML file per  
>>> article.
>>>
>>> What would be the best approach?
>>> We have ability to restructure/transform xml into another xml by  
>>> means
>>> of xslt.
>>>
>>> Which approaches could we research?
>>>
>>> Gerritjan


-- 
Sergiu Dumitriu
http://purl.org/net/sergiu/
_______________________________________________
users mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/users

Reply via email to