I want to create a machine config.xml grammar file. In the content package https://www.bladelogic.com/community/entry!default.jspa?categoryID=7&externalID=964&fromSearchPage=true
there are a number of Weblogic 8.1 config objects including a grammar file for parsing the config.xml.
As far as I can see there is no content package for Weblogic 9/10 config.xml.
The Weblogic 8.1 grammar files will work to parse a Weblogic 9/10 config.xml; however the xml schema definitions at the top are not included.
I am trying to modify the Weblogic 8.1 grammar to include these xsd's but the configuration in the config.xml grammar doesn't follow what is in the grammar documentation (see attached) and they are all in the variables section (everything preceding the first %% - which is also confusing).
Here are the contents of the Weblogic 8.1 machine config.xml grammar:
Look at xml.gm on how to write this grammar
Used to parse machine.config.xml
Does anyone have any idea where these variable declarations come from or how I could modfify the Weblogic 8.1 grammar to include the xsd URLs for WLS 9/10?
Also the standard xml.gm doesn't appear to have any declarations in it except IS_XML. This declaration is also not explained in the grammar documentation.
this is a dummy grammar file for xml - this works if all the tags are unique
if there are duplicate nodes in the xml, then define a new grammar and
associate the new grammar with that xml configuration file instead of using
xml.gm for every xml file. To define a new grammar file for an xml file with
duplicate nodes, use the example below.
In the example above, "servlet" and "init-param" are duplicates. Now a
duplcate node can be disambiguated by its attributes, text value or / and
its children. So each duplicate node and each child that helps in
disambiguate a duplicate have to be present with the following syntax:
All the duplicate nodes have "D" in the first column. If the attributes help
in disambiguation then they are listed separated by commas in the second
column. Otherwise this column can be left empty. If the text value is used in
disambiguation, then the third column should contain 1 (otherwise it can left
empty). If the children help in disambiguation then they are listed separated
by commas in the fourth column. Otherwise this column can be left empty. Note
that if a child helps disambiguating a parent, then it has to appear on a
separate line. If the child unique by itself then its second column contains
a "P" (as it is helping the parent) but it itself is a duplicate, it should
contain a "D" in the second column.
Message was edited by: