schemaDocumentation.bat - processing included schemas?
Having trouble installing Oxygen? Got a bug to report? Post it all here.
-
- Posts: 4
- Joined: Mon Sep 10, 2007 9:49 pm
- Location: New York, NY
schemaDocumentation.bat - processing included schemas?
Hello:
I am using schemaDocumentation.bat to generate documentation for a modular schema (a main schema including other subschemas). Is there a parameter I can set from the command line (e.g., in schemaDocumentation.bat) to specify that documentation for included/imported schemas should be generated as well?
In oXygen 8.2 user interface (Tools>Generate Documentation>Schema Documentation...), the option to include subschemas is available by setting the following flags:
- search included schemas
- search imported schemas
- generate documentation also for included and imported schemas
Can these be set in the command line as well? It doesn't look that way
I'd be most grateful for your insights.
Thanks,
Lyteck Lynhiavu
I am using schemaDocumentation.bat to generate documentation for a modular schema (a main schema including other subschemas). Is there a parameter I can set from the command line (e.g., in schemaDocumentation.bat) to specify that documentation for included/imported schemas should be generated as well?
In oXygen 8.2 user interface (Tools>Generate Documentation>Schema Documentation...), the option to include subschemas is available by setting the following flags:
- search included schemas
- search imported schemas
- generate documentation also for included and imported schemas
Can these be set in the command line as well? It doesn't look that way
I'd be most grateful for your insights.
Thanks,
Lyteck Lynhiavu
-
- Posts: 4141
- Joined: Fri Mar 28, 2003 2:12 pm
Post by sorin_ristache »
Hello,
In oXygen 8.2 generating the documentation also for included and imported schemas with the schemaDocumentation.bat script is not possible. We added this feature to the script for the next version of oXygen. Please contact us and we will send you the modified schemaDocumentation.bat.
Regards,
Sorin
In oXygen 8.2 generating the documentation also for included and imported schemas with the schemaDocumentation.bat script is not possible. We added this feature to the script for the next version of oXygen. Please contact us and we will send you the modified schemaDocumentation.bat.
Regards,
Sorin
-
- Posts: 4
- Joined: Mon Sep 10, 2007 9:49 pm
- Location: New York, NY
Thank you Sorin.
I have been playing with the updated schemaDocumentation script you sent and have a couple of related observations. It helps me understand how the script works if I write them down - and please correct me if I am wrong.
- Observation # 1: It appears (and you also mention in your email) I have to run schemaDocumentation.bat for each included XSD (i.e., in other words, the script cannot automatically recurse through the "main" XSD)
- Observation # 2: The purpose of the links.xml file is simply to generate an html hyperlink for the current XSD to HTML for included/imported XSD. However, the HTML for included/imported XSD must be generated independently (as per Observation # 1). Otherwise the hyperlink will be broken.
- Observation # 3: When generating the Schema Documentation through the oXygen 8.2 UI, each included/imported XSD can reference the "Master schema documentation file" using a very handy hyperlink located at the bottom of the Table of Contents. That hyperlink is not available when generating each included/imported XSD individually. That behavior makes sense considering HTML for each XSD is generated independently (as per Observation # 1), unbeknownst of interdependencies to a "master file" including/importing that XSD. That said, not being able to browse back to the "master file" limits navigation/sense of context.
- Question # 1: is there a way (from the command line/script) to generate the missing hyperlink to the "Master schema documentation file" in included/imported XSD?
If it can be done, then the schema documentation generated from the command line/script would be equivalent to that generated from the oXygen UI. Is it a limitation I have to live with when using the command line?
Thanks in advance. Best,
Lyteck Lynhiavu
I have been playing with the updated schemaDocumentation script you sent and have a couple of related observations. It helps me understand how the script works if I write them down - and please correct me if I am wrong.
- Observation # 1: It appears (and you also mention in your email) I have to run schemaDocumentation.bat for each included XSD (i.e., in other words, the script cannot automatically recurse through the "main" XSD)
- Observation # 2: The purpose of the links.xml file is simply to generate an html hyperlink for the current XSD to HTML for included/imported XSD. However, the HTML for included/imported XSD must be generated independently (as per Observation # 1). Otherwise the hyperlink will be broken.
- Observation # 3: When generating the Schema Documentation through the oXygen 8.2 UI, each included/imported XSD can reference the "Master schema documentation file" using a very handy hyperlink located at the bottom of the Table of Contents. That hyperlink is not available when generating each included/imported XSD individually. That behavior makes sense considering HTML for each XSD is generated independently (as per Observation # 1), unbeknownst of interdependencies to a "master file" including/importing that XSD. That said, not being able to browse back to the "master file" limits navigation/sense of context.
- Question # 1: is there a way (from the command line/script) to generate the missing hyperlink to the "Master schema documentation file" in included/imported XSD?
If it can be done, then the schema documentation generated from the command line/script would be equivalent to that generated from the oXygen UI. Is it a limitation I have to live with when using the command line?
Thanks in advance. Best,
Lyteck Lynhiavu
-
- Posts: 4141
- Joined: Fri Mar 28, 2003 2:12 pm
Post by sorin_ristache »
Hello,
The observations are correct. When the documentation is generated from the oXygen UI there is Java code that processes all the XSD files, takes into account the include/import relation and goes from the master schema to the imported/included ones and can include links between them. From command line the documentation must be generated for each XSD file so the links from master XSD to included/imported ones can be correctly generated only based on the links file but the link from imported/included to master schema cannot be generated.
Regards,
Sorin
The observations are correct. When the documentation is generated from the oXygen UI there is Java code that processes all the XSD files, takes into account the include/import relation and goes from the master schema to the imported/included ones and can include links between them. From command line the documentation must be generated for each XSD file so the links from master XSD to included/imported ones can be correctly generated only based on the links file but the link from imported/included to master schema cannot be generated.
Regards,
Sorin
-
- Posts: 4
- Joined: Mon Sep 10, 2007 9:49 pm
- Location: New York, NY
-
- Posts: 4141
- Joined: Fri Mar 28, 2003 2:12 pm
Post by sorin_ristache »
Hello,
Your request is already logged in our tracking system but a precise date/version for the implementation was not fixed yet.
Regards,
Sorin
Your request is already logged in our tracking system but a precise date/version for the implementation was not fixed yet.
Regards,
Sorin
-
- Posts: 4141
- Joined: Fri Mar 28, 2003 2:12 pm
Post by sorin_ristache »
Of course, please try the version of the schemaDocumentation script included in the oXygen 9 beta version or contact us and we will send you that version of the script.
Regards,
Sorin
Regards,
Sorin
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ 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