Portal Engine Questions on portal engine and web parts.
Version 4.x > Portal Engine > Rename elements stored in db column View modes: 
User avatar
Member
Member
rdiepenbrock - 9/11/2009 12:14:32 PM
   
Rename elements stored in db column
There is content stored in a db column wrapped in p tags.
I need this content pulled for output to an xml file and I need to rename the p tags with the appropriate namespace.
Can this be done through the CMS or by a query in the CMS?

Example:
column name: body
data: <p>some content</p>



User avatar
Member
Member
garios - 9/14/2009 7:24:03 AM
   
RE:Rename elements stored in db column
Hi!

I have a similar question to this, one of the fields in my document (which is of type long text) has a bunch of paragraphs delimited with "p" or <p> tags, is actually the body part of xhtml store there. I'd like to use XSL transformation to access those <p> tags and also other internal elements such as <strong> and <it> etc. I've tried and it seems to me like those elements are treated as a text and not as node elements and so not accessible to the XSL transformation. Is there a way to store a piece of text in such a way that later can be accessible using XSLT?

Thanks,

User avatar
Kentico Developer
Kentico Developer
kentico_ondrejv - 9/21/2009 9:34:26 AM
   
RE:Rename elements stored in db column
Hello,

Could you please check following forum found by google: http://www.velocityreviews.com/forums/t107297-transform-xml-string-using-xslt-file.html ? Please let us know if it helps you.

Best Regards
Ondrej Vasil

User avatar
Kentico Developer
Kentico Developer
kentico_ondrejv - 9/21/2009 9:02:10 AM
   
RE:Rename elements stored in db column
Hello,

Well, particular solution depends on how you retrieve the data to the page. Do you acquire your data in code behind or do you gain them via Transformation? You can write some event handler: http://devnet.kentico.com/docs/devguide/event_handling_overview.htm or create custom macro: http://devnet.kentico.com/docs/devguide/appendix_a___macro_expressions.htm for that.

Best Regards
Ondrej Vasil