Strip paragraph and/or convert line breaks in XSLT macro? Options
tkahn
Posted: Wednesday, December 12, 2007 2:18:29 PM

Rank: Fanatic

Joined: 11/24/2006
Posts: 322
Location: Stockholm, Sweden
When inserting data items in a template using UMBRACO_GETITEM I can add parameters like this:

Code:

<?UMBRACO_GETITEM stripParagraph="true" convertLineBreaks="true"/>


I need to do the same thing, but inside an XSML macro. Are there built-in functions in XSLT that can do the same thing or can I somehow use UMBRACO_GETITEM in my XSLT script?

Thanks in advance!

Web Developer at Kärnhuset - http://www.karnhuset.net - Stockholm, Sweden
neehouse
Posted: Friday, December 14, 2007 5:19:49 AM

Rank: Umbracoholic

Joined: 7/20/2006
Posts: 1,074
Location: Charleston, West Virginia, United States
Absolutely... The umbraco.library has several methods to allow you to do these exact things.

While editing the xslt, you can click the insert value of button at the top, click Get Extension, and choose the umbraco.library, and the desired method. You can then fill in the fields and get your results using the method built into umbraco...

Let me know if you need an example..

• 2007/2008 MVP • 2008/2009 MVP • Certified • Licensing • Support • Development • Hosting •
Users browsing this topic
Guest


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.