function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
jeremyyjeremyy 

Issue using xhtml and xml+namespaces in VF page

I have a VF page with showHeader="false" sidebar="false".  Inside it I'm starting at the <html> element, as can be done when showheader="false".  I'm also delcaring some xml namespaces, which subsequent elements belong to. The problem is that the VF compiler thinks that a namespace'd element *must* be a reference to a VF component.  Well, in my case it's not; it's just an xml element in a namespace.  The error message is:

 
Save error: The prefix "x" for element "x:p" is not bound. at line 1

 

Is there some way to relax the VF compiler?  Is VF compatible with xhtml and namespaces?

 

thanks

 

Jeremy Ross

AcronymAcronym

Hey jeremyy,

 

You should be able to wrap your 

<x:element />

 

in a div with the namespace defined, eg:

<div xmlsn:x="http//www.domain.com/2008/whatever"> <x:element /> </div>

 

At least, that's how I do FBML tags in VF.

 

 

Cheers