I have a customer who is trying to create a framework for deploying files / config files within BladeLogic.
They have the component template defined with a load of config files, and then a directory with excludes specified so that the config files aren't overwritten by the files.
They load these parameterised config files into BladeLogic as a BlPackage, and deploy it.
this works fine for .properties and .xml files, but they are having trouble with xhtml files that start with:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE eiqExplorer [
<!ELEMENT eiqExplorer (class+)>
<!ELEMENT class (classname, params)>
master (false | true) #REQUIRED
<!ELEMENT classname (#PCDATA)>
<!ELEMENT param (#PCDATA)>
<!ATTLIST param type (String | int | float | double | short | char | long | this) #REQUIRED>
<!ELEMENT params (param+)>
The <!DOCTYPE stuff is important for the file, but the xml file grammar just sees it as a comment.
Is there an easy way to do this? (preferably without breaking the model we have of a template)
If you want to stay with the existing template model, then I guess you'd need a custom grammar which is more explicit about what a comment looks like (i.e. <!-- rather than <!). However, I wouldn't want to be the one trying to modify THAT grammar....!