REM  <?DocuGenCtrl-www.vishia.de version="1.2" encoding="ISO-8859-1" ?>
@echo off
REM Change between locally href and www-href by means of setting of the environment.
set HREF_ROOT_VISHIA=../../../../../..
::set HREF_ROOT_VISHIA=http://www.vishia.org

REM set the tmp directory outside and parallel to the ZBNF directory to prevent additional content in ZBNF/.
set TMP_ZBNFJAX=D:\tmp_docugen

REM The setZBNFJAX_HOME.bat should be installed in a user's PATH and adapted. SAXON-xslt, Jdom and a JAVA-JRE are necessary!
call setZBNFJAX_HOME.bat

call %ZBNFJAX_HOME%\batch\cmdDocuGctr.bat _gendocu_readme.bat

cd ..\docuSrc

call _genDocu_docu.bat

exit /B

// This control file contains the Hyperlinks so, that a user-local saved file is able to use.
DocuGenCtrl_RULES:

//This file should be known in the XML-image, therefore it should be given here:
genCtrl: _gendocu_readme.bat;

//The hyperlink references may contained in an extra file. It is given here (typical in an other path):
hrefCtrl: ./href_en.href;


//All xsl-Files which are necessary for conversion, should be named here:
importXsl
( XmlDocu_xsl:TopicXhtml.xsl
);


//All pre-conversion of inputs to an appropriate XML-format should be named before Document-entries.
//Here only some text topics are converted via Zbnf2Xml:
target: ../../../../tmp_docugen/*.*.xml := TextTopic2Xml
( readme_BillOfMaterial.topic
, readme_SCLconversion.topic
, readme_StateMGen.topic
, readme_CheaderParsing.topic
, readme_zbnfjax.topic
, readme_JavaParsing.topic
, readme_TestAllFeatures.topic
, readme_TestEncoding.topic
, readme_VhdlScript.topic
, readme_DocuGenerationViaXml.topic
, readme_Header2XMI.topic
, readme_Java2XMI.topic
, readme_HandleSomeFiles.topic
, readme_ZmakeAnt.topic
, readme_Zmake.topic
, readme_ZBNF.topic
, examples_Fileset.topic
);



Document "readme - BillOfMaterial"
ident=readme_BillOfMaterial
html="../../../examples_ZBNF_core/BillOfMaterial/readme.html" //NOTE: relativ from gen dir
css="../../htmlstd.css"  //NOTE: relative from html file!
{
  input: ../../../../tmp_docugen/readme_BillOfMaterial.topic.xml;
  topictree(readme_BillOfMaterial/*);
}

Document "readme - SCLconversion"
ident=readme_SCLconversion
html="../../../examples_ZBNF_core/SCLconversion/readme.html" //NOTE: relativ from gen dir
css="../../htmlstd.css"  //NOTE: relative from html file!
{
  input: ../../../../tmp_docugen/readme_SCLconversion.topic.xml;
  topictree(readme_SCLconversion/*);
}

Document "readme - VhdlScript"
ident=readme_VhdlScript
html="../../../examples_ZBNF_core/VhdlScript/readme.html" //NOTE: relativ from gen dir
css="../../htmlstd.css"  //NOTE: relative from html file!
{
  input: ../../../../tmp_docugen/readme_VhdlScript.topic.xml;
  topictree(readme_VhdlScript/*);
}

Document "readme - TestEncoding"
ident=readme_TestEncoding
html="../../../examples_ZBNF_core/testEncodings/readme.html" //NOTE: relativ from gen dir
css="../../htmlstd.css"  //NOTE: relative from html file!
{
  input: ../../../../tmp_docugen/readme_TestEncoding.topic.xml;
  topictree(readme_TestEncoding/*);
}

Document "readme - TestAllFeatures"
ident=readme_TestAllFeatures
html="../../../examples_ZBNF_core/testAllFeatures/readme.html" //NOTE: relativ from gen dir
css="../../htmlstd.css"  //NOTE: relative from html file!
{
  input: ../../../../tmp_docugen/readme_TestAllFeatures.topic.xml;
  topictree(readme_TestAllFeatures/*);
}

Document "readme - CheaderParsing" ident=readme_CheaderParsing
html="../../../examples_ZBNF_core/CheaderParsing/readme.html" css="../../htmlstd.css"
{
  input: ../../../../tmp_docugen/readme_CheaderParsing.topic.xml;
  topictree(readme_CheaderParsing/*);
}

Document "readme - JavaParsing" ident=readme_JavaParsing
html="../../../examples_ZBNF_core/JavaParsing/readme.html" css="../../htmlstd.css"
{
  input: ../../../../tmp_docugen/readme_JavaParsing.topic.xml;
  topictree(readme_JavaParsing/*);
}


//The Document-entry describes the structure of the document.
Document "readme - ZBNF" ident=readme_ZBNF
html="../../../readme_ZBNF.html" css="htmlstd.css"
{
  input: ../../../../tmp_docugen/readme_ZBNF.topic.xml;
  topictree(readme_ZBNF/*);
}

Document "readme - zbnfjax"
ident=readme_zbnfjax
html="../../../zbnfjax/readme.html" //NOTE: relativ from gen dir
css="../htmlstd.css"  //NOTE: relative from html file!
{
  input: ../../../../tmp_docugen/readme_zbnfjax.topic.xml;
  topictree(readme_zbnfjax/*);
}


//The Document-entry describes the structure of the document.
Document "readme - Zmake" ident=readme_Zmake
html="../../../examples_Zmake/Zmake/readme.html" css="../../htmlstd.css"
{
  input: ../../../../tmp_docugen/readme_Zmake.topic.xml;
  topictree(readme_Zmake/*);
}

Document "readme - Statemachine code generation"
ident=readme_StateMGen
html="../../../examples_Zmake/StateMGen/readme.html" //NOTE: relativ from gen dir
css="../../htmlstd.css"  //NOTE: relative from html file!
{
  input: ../../../../tmp_docugen/readme_StateMGen.topic.xml;
  topictree(readme_StateMGen/*);
}

//The Document-entry describes the structure of the document.
Document "examples Fileset" ident=examples_Fileset
html="../../../examples_JZcmd/FileSet/readme.html" css="../../htmlstd.css"
{
  input: ../../../../tmp_docugen/examples_Fileset.topic.xml;
  topictree(exmpl_Fileset/*);
}

//The Document-entry describes the structure of the document.
Document "readme - ZmakeAnt" ident=readme_ZmakeAnt
html="../../../examples_Zmake/ZmakeAnt/readme.html" css="../../htmlstd.css"
{
  input: ../../../../tmp_docugen/readme_ZmakeAnt.topic.xml;
  topictree(readme_ZmakeAnt/*);
}



//The Document-entry describes the structure of the document.
Document "readme - Header2XMI" ident=readme_Header2XMI
html="../../../examples_Zmake/Cheader2Xmi/readme.html" css="../../htmlstd.css"
{
  input: ../../../../tmp_docugen/readme_Header2XMI.topic.xml;
  topictree(readme_Header2XMI/*);
}


Document "readme - Java2XMI" ident=readme_Java2XMI
html="../../../examples_Zmake/Java2Xmi/readme.html" css="../../docu/htmlstd.css"
{
  input: ../../../../tmp_docugen/readme_Java2XMI.topic.xml;
  topictree(readme_Java2XMI/*);
}







//The Document-entry describes the structure of the document.
Document "readme - XmlDocuGeneration" ident=readme_XmlDocuGeneration
html="../readme.html" css="../../htmlstd.css"
{
  input: ../../../../tmp_docugen/readme_DocuGenerationViaXml.topic.xml;
  topictree(readme_DocuGenerationViaXML/*);      //NOTE: the key for selecting the topic is the '@ident=readme_DocuGenerationViaXML'-entry in the input-xml-file respectively in the file.topic
}




HyperlinkAssociation
{ Topic:.ZbnfJavaOutput.* = "../../../../docu/ZbnfJava.html#Topic:.ZbnfJavaOutput.*"; //This topics are found there in locally files.
  Topic:.ZbnfJava.* = "../../../../docu/ZbnfJava.html#Topic:.ZbnfJava.*"; //This topics are found there in locally files.
  Topic:.ZBNF2Xml.* = "../../../../docu/Zbnf2Xml.html#Topic:.ZBNF2Xml.*"; //This topics are found there in locally files.
  Topic:.readme_ZBNF.* = "../../../readme_Zbnf.html#Topic.readme_ZBNF.*";
  ZBNFdocu:* = "../../../../docu/*";
  ZBNFroot:* = "../../../*";
  zbnfjax/* = "../../../../docu/zbnfjax/*.html";  //Generated html appearance of zbnfjax files.
  zbnfjax:* = "../../../../docu/zbnfjax/*.html";  //Generated html appearance of zbnfjax files.
  Zbnf2Text = "../../../../docu/Zbnf2Text.html";  
  examples_ZBNF_core:* = "../../../../docu/examples_ZBNF_core/*";
  examples_JZcmd:* = "../../../../docu/examples_JZcmd/*";
  examples_Fileset = "../../../../docu/examples_JZcmd/FileSet/readme.html";
}





