Hello, I'm going to try this again... Sorry for the spam-like
traffic...

I am using the 3rd JS video to package pxtk ( http://www.plextk.org/ )
and so far so good.
I can get the css and js to include in the page and the loading of the
system works.
The problem is in getting XML into the template without it getting
mangled.
Here is a sample of the XML that is embedde in the html page.:

<xmp class="View">
<px:Panel title="DataGrid Example" style="width : 496px">
  <px:DataGrid bodyHeight="120px">
    <px:columns>
      <px:DataGridColumn
        headerText="LabelCol"
        columnName="label" style="width : 150px"
        cellRenderer="px.controls.gridclasses.DataGridExpanderCell"
      />
      <px:DataGridColumn headerText="Column 1" columnName="col_1"
style="width : 100px"/>
      <px:DataGridColumn headerText="Column 2" columnName="col_2"
style="width : 100px"/>
      <px:DataGridColumn headerText="Column 3" columnName="col_3"
style="width : 100px"/>
    </px:columns>
    <px:XML source="/pxtk/t/DataGrid.data.xml"/>
  </px:DataGrid>
</px:Panel>
</xmp>

The first attempts caused the <px:..> to be replaced with <ns1:...>. I
figured out that I needed to add an xmlns attribute. That one is
solved.

Next, the transformation caused all attributes to be upper-cased. So
the XML embedded fine but does not function within the plex framework.
Using ${plex.display()} doesn't work. I can use
render(format='xml') and print to the console and it looks good.

I've tried doing many permutations on things like
${XML(plex.render(format='xml'))} in the kid template but it escapes
the less-than, thereby printing the XML and not embedding it.

So to make a looooong story short....

How can I embed a raw XML string into a kid template?

Thanks for your help,

Nicky


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/turbogears
-~----------~----~----~----~------~----~------~--~---

Reply via email to