xhtml

Can we configure Oracle ADF Faces to produce valid XHTML?

好久不见. 提交于 2019-12-12 16:40:22
问题 We are using Oracle ADF Faces in a new web project. I am always looking for an unobtrusive user experience with progressive enhancement and valid XHTML output. It seems however that ADF Faces produce ugly, non-validating (table based) HTML output that reminds me of 1994 when using their standard components. Is there a way to configure ADF Faces or create templates for the components so we can have complete control over the generated (X)HTML? 回答1: ADF is a continuation of BC4J, so this is why

adding images to openxml doc created from altchunk

蓝咒 提交于 2019-12-12 16:26:58
问题 I need an automated process for creating docx files from xhtml source. The xhtml files contain images ( <img> elements) whose "src" attributes point to an external reference. But the docx files need to be readable without a network connection, so I need to find a way to embed the images directly into the docx package (namely, in the /media folder). So far I've used the altChunk method (as described by Eric White) to create the .docx file. I had hoped to use the OpenXML SDK to insert the image

What could cause this HTML/CSS rendering issue in Firefox?

…衆ロ難τιáo~ 提交于 2019-12-12 15:12:38
问题 The styles: h2 { color: #71D0FF; font-size: 11px; font-weight: bold; margin: 0px 0px 5px 0px; } a.box { color: #FFFFFF !important; cursor: pointer; display: block; padding: 10px; text-align: justify; } a.box:hover { background-color: #0C0C0C; } a.box span.down { display: block; color: #D04242; float: right; font-size: 11px; margin-left: 5px; } a.box span.up { display: block; color: #71D013; float: right; font-size: 11px; } span.noob { color: #FFA142; } span.pro { color: #A142A1; } The HTML

How to randomly change inline images on page load and each refresh, using jquery?

断了今生、忘了曾经 提交于 2019-12-12 15:01:50
问题 What is the best lightweight way to randomly show inline images from a folder on each refresh or on load a page ? using jQuery. like jQuery version of this http://javascript.internet.com/miscellaneous/random-image.html Update: 24 April This is exactly what i want i just need unobtrusive jQuery version of this <div class=”me-box”> <script language=”JavaScript”> function banner() { } ; b = new banner() ; n = 0 b[n++]= “<img name=randimg src=’images/me.jpg’ >” b[n++]= “<img name=randimg src=

Why isn't doctype self-closing

拥有回忆 提交于 2019-12-12 14:40:14
问题 Provided an xhtml doctype like <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> , why is this tag itself allowed to be non self-closing / non closing at all? Aka why isn't it: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd" /> 回答1: It's not a tag (element). It's a declaration and that is the syntax for a declaration (doctype declaration specifically). Other declarations ( ELEMENT , ENTITY ,

How can I make an exact copy of a xml node's children with XSLT?

大城市里の小女人 提交于 2019-12-12 12:36:12
问题 My problem is that my XML document contains snippets of XHTML within it and while passing it through an XSLT I would like it to render those snippets without mangling them. I've tried wrapping the snippet in a CDATA but it doesn't work since less than and greater than are translated to < and > as opposed to being echoed directly. What's the XSL required for doing this? 回答1: <xsl:template match="@*|node()"> <xsl:copy> <xsl:apply-templates select="@*|node()"/> </xsl:copy> </xsl:template> This

What HTML tags are there for address information?

一世执手 提交于 2019-12-12 11:14:59
问题 What address related tags are there for address and formatting and marking my address information in my webpages? I'm looking for XHTML or HTML5 compliant tags. 回答1: There is the semantic <address> tag. You may also want to take a look at the hCard microformat. 回答2: <address> from W3C: The address element provides contact information for a document or part of a document. Information provided by address may include the names of the document’s maintainers, links to the maintainers’ Web pages, e

Where is the W3C XML Schema for XHTML 1.1?

倾然丶 夕夏残阳落幕 提交于 2019-12-12 10:50:02
问题 There is an old W3C recommendation containing an XML schema for XHTML 1.0, and claiming that schema for 1.1 will be forthcoming. Where is the a W3C XML Schema for XHTML 1.1? 回答1: Here's the official hosted version: http://www.w3.org/MarkUp/SCHEMA/xhtml11.xsd 回答2: Edit: XHTML 1.1 XML Schema Definition http://www.w3.org/TR/2009/PER-xhtml11-20090507/xhtml11_schema.html 回答3: The XML schema (XSD) for XHTML 1.1 is modularized into multiple files, thus, for validating you need following files

Are there any tools that can compare HTML documents by DOM structure?

て烟熏妆下的殇ゞ 提交于 2019-12-12 10:44:23
问题 I want compare two HTML documents, and want to know if they are the same. But only compare by DOM structure, which means ignoring the order of the attributes in a tag, for example, <table id="one" name="table"> , <table name="table" id="one"> are the same. 回答1: DOM Level 3 Core provides the method isEqualNode() which compares content give a parsed DOM Node. This is supported by Firefox, Chrome, Safari and IE9, but not Opera or earlier browsers. If you need support in other browsers you would

How can i get the content between ?> and <?php

落爺英雄遲暮 提交于 2019-12-12 09:46:42
问题 getThis is just a personal learning question. I want to retrieve all the content between my function $page->content_start(); and $page->content_end(); how is the best way to get it? I don't want to include it or echo it, is it possible? Thank you very much, your advices is very appreciated <?php include 'pages/indexpage.class.php'; include 'modules/monmodule.class.php'; $page = new IndexPage(); $mod = new MonModule($page); $mod->create(); $page->content_start(); ?> <div class="asss_ass"></div