Home
TeamSite
Path ID issue
sabih
I am having some issues while using Path ID attribute of Teamsite. Whenever I save the elements as DCR, element order changes from bottom to top althoguh it places the root elements correctly. e.g.
DCT:
<root-container name='page' location='page'>
<container name="mycontainer" location="mycontainer">
<!-- file elements contain item elements -->
<item name="Page_Title" pathid="a/Page_Title">
<label>Page Title</label>
<text required="f" size="30"/>
</item>
<item name="Page_Heading" pathid="Page_Heading">
<label>Page Heading</label>
<text size="30"/>
</item>
<item name="Content" pathid="Content">
<label>Content</label>
<textarea cols="80" rows="30"/>
</item>
</container>
RESULTANT DCR:
<?xml version="1.0" encoding="UTF-8"?>
<page>
<mycontainer>
<Content>Testing456</Content>
<Page_Heading>123123213</Page_Heading>
<a>
<Page_Title>Mytest</Page_Title>
</a>
</mycontainer>
</page>
Find more posts tagged with
Comments
Migrateduser
I've noticed this too; xml elements ordered alphabetically (somewhat?) when using dcr-type=xml in templating cfg.
Don't know what's the point with this - but on the other hand I guess it doesn't really matter as long as you parse the content as a DOM tree.
Do you experience any trobles with the current structure?
# Martin
kajjubee
You will have to create a DTD for your dct to maintain the structure.
Freedom
Does anyone have any idea about how to address the xml elements order issue?
thanks
Freedom
wow....interesting,..it seems like not many people are using XML style DCRs..
gzevin
why do you need to address this particular issue? whatever the order is, in this case the tags lie in a flat structure, so you could retrieve values of respective tags and rearrange them in your TPL
Greg Zevin, Ph.D. Comp. Sc.
Independent Interwoven Consultant/Architect
Sydney, AU
Freedom
yes... there is a special need for the replicants. Is there anyway to put them in an orderly manner?
Thanks
gzevin
I have not seen replicants in your example. There is only one container. Am I missing something?
Greg Zevin, Ph.D. Comp. Sc.
Independent Interwoven Consultant/Architect
Sydney, AU