Automatic Project File Creation (XPR)
Having trouble installing Oxygen? Got a bug to report? Post it all here.
-
- Posts: 3
- Joined: Thu Dec 01, 2011 7:16 pm
Automatic Project File Creation (XPR)
For a project I'm currently working on we have a large number of XML files that are transformed by XSL (well there are 10 XSL templates, the author picks the correct one).
Rather than the author needing to manually apply the correct scenarioAssociation to each file before it's remembered by the XPR file I'm trying to build the XPR with all the relevant scenarios and scenarioAssociations in it already.
This works reasonably well, and for instance I am building an XPR files with 1380 files referenced in it.
However the scenarioAssociations are only picked for the first 100 files, after that it loses the association.
Since this issue arose I've noticed that even if you apply the scenarioAssocations manually within oxygen if only seems to store the last 100 associations?
Is this a feature? a bug? Is there a different way that I should approach this?
( I'm using oXygen 12.1 )
Rather than the author needing to manually apply the correct scenarioAssociation to each file before it's remembered by the XPR file I'm trying to build the XPR with all the relevant scenarios and scenarioAssociations in it already.
This works reasonably well, and for instance I am building an XPR files with 1380 files referenced in it.
However the scenarioAssociations are only picked for the first 100 files, after that it loses the association.
Since this issue arose I've noticed that even if you apply the scenarioAssocations manually within oxygen if only seems to store the last 100 associations?
Is this a feature? a bug? Is there a different way that I should approach this?
( I'm using oXygen 12.1 )
-
- Posts: 2879
- Joined: Tue May 17, 2005 4:01 pm
Re: Automatic Project File Creation (XPR)
Hello,
Yes, the number of scenario associations is limited to 100. This limitation exists mostly because these associations are stored in the options(either global or project) and the size of the options file or project(XPR) will increase with the number of associations.
A simple solution for this problem is to organize the files in directories(in the file system, NOT logical) and associate a scenario with the directory(from the file system) in the Project view. To do this right click on a directory and from the popup menu choose Transform -> Configure Transformation Scenario and select the scenario.
Let us know if you need further assistance.
Regards,
Adrian
Yes, the number of scenario associations is limited to 100. This limitation exists mostly because these associations are stored in the options(either global or project) and the size of the options file or project(XPR) will increase with the number of associations.
A simple solution for this problem is to organize the files in directories(in the file system, NOT logical) and associate a scenario with the directory(from the file system) in the Project view. To do this right click on a directory and from the popup menu choose Transform -> Configure Transformation Scenario and select the scenario.
Let us know if you need further assistance.
Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
-
- Posts: 3
- Joined: Thu Dec 01, 2011 7:16 pm
Re: Automatic Project File Creation (XPR)
Hi Adrain,
Thanks for the reply, I was worried you'd say that it was limited.
Unfortunately due to the way the project are structured we can't reorganise the directory structure.
Two further questions:
1) Can the limit be over-ridden in any way?
2) Would using the "Document Type Association" be a way around this issue. The XML documents are always tranformed by a specific XSL based on the root element. i.e. XML document with root element <a> is always transformed by a.xsl, XML document with root elemen <b> by b.xsl etc...
Thanks again,
Sean
Thanks for the reply, I was worried you'd say that it was limited.
Unfortunately due to the way the project are structured we can't reorganise the directory structure.
Two further questions:
1) Can the limit be over-ridden in any way?
2) Would using the "Document Type Association" be a way around this issue. The XML documents are always tranformed by a specific XSL based on the root element. i.e. XML document with root element <a> is always transformed by a.xsl, XML document with root elemen <b> by b.xsl etc...
Thanks again,
Sean
-
- Posts: 2879
- Joined: Tue May 17, 2005 4:01 pm
Re: Automatic Project File Creation (XPR)
1. I'm afraid that the limit is hard-coded and currently it cannot be configured or overridden.
2. Unfortunately not. A Document Type Association contains additional transformation scenarios but the limit is for the number of associations, not for the number of scenarios.
I've logged this to our issue tracking tool and it will be analyzed and if found appropriate it will be changed in a future version of Oxygen.
Another workaround I can think of is to break the project in multiple pieces(1 project for 100 associations), but for ~1400 files and individual associations you would still need around 14 projects(100 associations each) which is not exactly manageable.
You could have one master project with links to the other subprojects. And in each subproject you could add a link to the master project for back and forth navigation between projects.
Regards,
Adrian
2. Unfortunately not. A Document Type Association contains additional transformation scenarios but the limit is for the number of associations, not for the number of scenarios.
I've logged this to our issue tracking tool and it will be analyzed and if found appropriate it will be changed in a future version of Oxygen.
Another workaround I can think of is to break the project in multiple pieces(1 project for 100 associations), but for ~1400 files and individual associations you would still need around 14 projects(100 associations each) which is not exactly manageable.
You could have one master project with links to the other subprojects. And in each subproject you could add a link to the master project for back and forth navigation between projects.
Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
-
- Posts: 3
- Joined: Thu Dec 01, 2011 7:16 pm
Re: Automatic Project File Creation (XPR)
I've been playing with the Document Type Assocation (DTA).
Using DTA in v12.1 it can correctly identify which scenario should be used but still asks which scenario to pair the file up with.
Using DTA in v13 I see you can specifiy a default, so then when you tranform a new document (a.xml) it automatically runs it against a.xsl (if it's set as the default) without the author manually selecting a scenario.
I think this will actually meet our needs, as the 100 file limit then isn't an issue as the publish can occur seemlessly without the need to select the correct scenario.
As there's only two of us using 12.1, and everyone else will be on 13 I guess we'll need to upgrade.
Using DTA in v12.1 it can correctly identify which scenario should be used but still asks which scenario to pair the file up with.
Using DTA in v13 I see you can specifiy a default, so then when you tranform a new document (a.xml) it automatically runs it against a.xsl (if it's set as the default) without the author manually selecting a scenario.
I think this will actually meet our needs, as the 100 file limit then isn't an issue as the publish can occur seemlessly without the need to select the correct scenario.
As there's only two of us using 12.1, and everyone else will be on 13 I guess we'll need to upgrade.

-
- Posts: 2879
- Joined: Tue May 17, 2005 4:01 pm
Re: Automatic Project File Creation (XPR)
Sorry about the oversight, I have just discovered this alternative myself.
Note that v12.2(that you can freely upgrade to) already has the Default scenario that exists in v13.1.
You can find v12.2 in our software archive:
http://www.oxygenxml.com/software_archive.html
Regards,
Adrian
Note that v12.2(that you can freely upgrade to) already has the Default scenario that exists in v13.1.
You can find v12.2 in our software archive:
http://www.oxygenxml.com/software_archive.html
Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ Artificial Intelligence (AI Positron Assistant add-on)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service