if you are a human please do not click here
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
Username :
Password :
Home
Help
Calendar
Register
Login
XMetaL Community Forums
»
General
»
General XMetaL Discussion
»
Will rule file still be generated when referencing to http location?
Pages:
1
« previous
next »
Print
Author
Topic: Will rule file still be generated when referencing to http location? (Read 611 times)
achu
Member
Posts: 39
Will rule file still be generated when referencing to http location?
«
on:
May 10, 2011, 11:21:20 AM »
It seems like no rules file is generated when xsd is located at the web site.
<note xmlns="
http://www.w3schools.com
"
xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance
"
xsi:schemaLocation="
http://www.w3schools.com
http://localhost:47154/note.xsd
">
<to>Tove</to>
<from>Jani</from>
<heading>Reminder</heading>
<body>Don't forget me this weekend!</body>
</note>
Logged
Derek Read
Program Manager (XMetaL)
Administrator
Member
Posts: 1546
Re: Will rule file still be generated when referencing to http location?
«
Reply #1 on:
May 10, 2011, 06:44:29 PM »
If XMetaL locates your schema or DTD at an HTTP address it must first download it. It creates a temporary folder for one time usage here:
%temp%\#####\www.somewebsite.com\subfolder1\subfolder2\etc...
Where ##### is some unique random 4 or 5 digit number.
RLX and RLD files are generated at the same path.
It is easiest to just check the following API property if you need to find your RLD or RLX file for whatever reason (perhaps you do not have XMetaL Developer but wish to distribute the RLX or RLD):
ActiveDocument.RulesFile
Example:
// XMetaL Script Language JSCRIPT:
ActiveDocument.Host.Alert(ActiveDocument.RulesFile);
It is recommended that you do not distribute XMetaL customizations this way unless you package them inside an XAC file containing the RLX or RLD + CSS + CTM + optional MCR and other files. You need to compile an XAC using XMetaL Developer.
If you cannot use an XAC package then you should flatten your DTD or XSD into a single file for best results and the CSS, CTM and MCR files must be given the same name as the DTD or XSD in order to be found and downloaded. If found these additional files will be downloaded to the same folder as the schema. These files are downloaded every time a document is opened and this will slow down the initial document rendering time accordingly, with slower internet connections, slow web servers, etc, all coming into play here.
In general it is best to distribute customizations to each machine or use a 3rd party mechanism for distribution (like those provided by CMS vendors). This is the best way to give users of XMetaL the best authoring experience.
Logged
achu
Member
Posts: 39
Re: Will rule file still be generated when referencing to http location?
«
Reply #2 on:
May 11, 2011, 07:53:30 AM »
I see.
will those temp folders be cleaned up by XMetal or APIs provided by XMetal? or user need to be responsible for the cleaning up.
Logged
Pages:
1
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General
-----------------------------
=> Forum Information
=> General XMetaL Discussion
=> DITA and XMetaL Discussion
=> XMetaL Tips and Tricks
=> XMetaL Announcements and Events
Loading...