tag:help-archives.hannonhill.com,2010-02-09:/discussions/general/28-namespaces-in-xmlCascade CMS: Discussion 2013-08-20T03:57:20Ztag:help-archives.hannonhill.com,2010-02-09:Comment/22455662010-07-14T14:07:36Z2010-07-14T14:07:36ZNamespaces in XML<div><p>Hi Nick,</p>
<p>I believe the namespace may be getting stripped since there
aren't any elements using that namespace. Try to prefix one of the
elements in your rss content with <code><itunes:></code> and
see if that works.</p></div>Timtag:help-archives.hannonhill.com,2010-02-09:Comment/22455662010-07-14T14:27:08Z2010-07-14T15:50:32ZNamespaces in XML<div><p>hey,</p>
<p>That did the trick.</p>
<p>thanks much!<br>
nick</p></div>nick.shontztag:help-archives.hannonhill.com,2010-02-09:Comment/22455662010-07-14T14:35:27Z2010-07-14T14:35:27ZNamespaces in XML<div><p>Perfect! Thanks for the update!</p></div>Timtag:help-archives.hannonhill.com,2010-02-09:Comment/22455662010-07-14T15:52:46Z2010-07-14T15:55:07ZNamespaces in XML<div><p>Hey,</p>
<p>looks like was a false alarm. i can use the itunes namespace in
the template, but i can't use it in the velocity that i'm using to
create the <item>...<item> sections or the velocity
that is applied to the default region that creates the channel
info.</p>
<p>i'm getting the same error "An error occurred: Error on line 7:
The prefix "itunes" for element "itunes:subtitle" is not
bound."</p>
<p>any ideas?</p>
<p>nick</p></div>nick.shontztag:help-archives.hannonhill.com,2010-02-09:Comment/22455662010-07-14T22:35:18Z2010-07-14T22:35:18ZNamespaces in XML<div><p>Please attach the relevant portions of your Velocity/XSLT format
so we can look at it.</p></div>Bradley Wagnertag:help-archives.hannonhill.com,2010-02-09:Comment/22455662010-07-14T22:54:09Z2010-07-14T22:54:09ZNamespaces in XML<div><p>here are the files, included are the template, the default
block's xml (it has a customized data definition) and the velocity
i'm applying to it. if you remove the <itunes:XXXX> tags from
the velocity it works just fine.</p></div>nick.shontztag:help-archives.hannonhill.com,2010-02-09:Comment/22455662010-07-30T14:15:56Z2010-07-30T14:15:56ZNamespaces in XML<div><p>yeah, so still waiting to hear back on this...</p></div>nick.shontztag:help-archives.hannonhill.com,2010-02-09:Comment/22455662010-07-30T14:22:14Z2010-07-30T14:22:14ZNamespaces in XML<div><p>Nick,</p>
<p>My apologies. We're still looking into the cause of this issue. As soon as we have some feedback I will be sure to let you know.</p>
<p>In the interim, please use the suggested workaround below.</p>
<ul>
<li><p>Add NS declaration into the Velocity format where the namespace was used. I.e.:</p>
<p> <code><itunes:subtitle xmlns:itunes="url">subtitle</itunes:subtitle></code></p></li>
</ul>
<p>Doing it this way:</p>
<ul>
<li>the page is rendered</li>
<li>the prefix is preserved in the rendered page</li>
<li>the namespace declaration only shows up once in the root element from the template
Thanks!</li>
</ul></div>Joeltag:help-archives.hannonhill.com,2010-02-09:Comment/22455662010-08-11T15:36:30Z2010-08-11T15:36:30ZNamespaces in XML<div><p>Revisiting this issue...since individual regions are rendered as complete XML documents, the namespace will need to be declared in the Format (whether using Velocity or XSL) in order for this to work as expected.</p>
<p>Hope this helps!</p></div>Tim