Comment on revision r3006 in bungeni-editor

4 views
Skip to first unread message

bungeni...@googlecode.com

unread,
Apr 5, 2013, 4:55:06 PM4/5/13
to bungeni...@googlegroups.com
Comment by ashok.ha...@gmail.com:

General Comment:
This revision adds support for metadata defaulting in section types ...

so if you have the following as the sectionType configuration for "clauses":

<sectionType name="clauses"
prefix="clauses"
numstyle="serial">
<output>
<content>
<an:hcontainer />
</content>
</output>
</sectionType>

Now you can do this :

<sectionType name="clauses"
prefix="clauses"
numstyle="serial">
<metadatas>
<metadata name="BungeniContainer" default="clauses" />
</metadatas>
<output>
<content>
<an:hcontainer name="$BungeniContainer" />
</content>
</output>
</sectionType>


This will output the container section with the name set to "clauses" :

<hcontainer name="clauses" >

</hcontainer>

Remember that this will only work for sections which are newly marked up
after the @default configuration attribute has been added for the specific
metadatas/metadata elementss ...

For more information:
http://code.google.com/p/bungeni-editor/source/detail?r=3006
Reply all
Reply to author
Forward
0 new messages