Help

Controls

PermLinkWikiLink

Built with Seam

You can find the full source code for this website in the Seam package in the directory /examples/wiki. It is licensed under the LGPL.

Forum: Seam Users Forum ListTopic List
03. Jun 2008, 12:09 CET | Link

I need to include a namespace in my resulting XHTML document

I want my output to look something like

<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml">
...

At the moment, if I have the following in my facelet

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html
     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"
        xmlns:ui="http://java.sun.com/jsf/facelets"
        xmlns:h="http://java.sun.com/jsf/html"
        xmlns:f="http://java.sun.com/jsf/core"
        xmlns:s="http://jboss.com/products/seam/taglib"
        xmlns:v="urn:schemas-microsoft-com:vml"
        >

The vml namespace gets swallowed up. Any way to allow it to pass through?

Cheers - Ben

2 Replies:
05. Jun 2008, 09:15 CET | Link

Do you know the schema URL for this VML?

 

Best regards,
Joshua

Visit my blog.

05. Jun 2008, 13:21 CET | Link

I'm not sure if it has one or not. If it did (even if I made one up), won't facelets just swallow it up like it's doing anyway?