xhtml

parsing xml file and extract <cite> in python

只愿长相守 提交于 2019-12-11 05:26:11
问题 I have this file: <!DOCTYPE html><html lang="en" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml" xmlns:Web="http://schemas.live.com/Web/"><head><meta content="text/html; charset=utf-8" http-equiv="content-type" /><script type="text/javascript">//<![CDATA[ si_ST=new Date //]]></script><script type="text/javascript">//<![CDATA[ window.onerror||(window.onerror=function(n,t,i){var r="";r=typeof n=="object"&&n.srcElement&&n.srcElement.src?"\"ScriptSrc = '"+escape(n.srcElement.src.replace(/'/g,"

How to give transparent hexagon angle at the last <li> only?

末鹿安然 提交于 2019-12-11 04:29:39
问题 I have to make menu like this. alt text http://shup.com/Shup/330421/1104422739-My-Desktop.png Items of drop-down can be increased and decreased If client will add or remove pages. width of drop-down's will depend on how many character in page title name. angle only needed at last item's right bottom corner. I Know how to make drop-down menu and how to give cross browser transparency , but I want to know How to give needed angle to right bottom angle while keeping transparency. 回答1: Using the

How to stop ORBIS CMS from automatically inserting <p> tags

假如想象 提交于 2019-12-11 04:12:44
问题 Driving me crazy, finally found a decent CMS that is open source and can be installed, it's called Orbis CMS. One problem, can't for the life of me think why someone creating such sweet software wouldn't know that not all editable regions need the <p> tags when stylesheets are used! I'm using it on an already designed and developed page in xhtml and css so have all my styles etc sorted. But now that it inserts <p> everywhere you edit it stuffs up my <h1> <h2> etc tags. Does anyone know a work

Using foreach into jsf / xhtml

风格不统一 提交于 2019-12-11 04:08:51
问题 Well, I array a dataTable where i must have some dynamic columns.... So im using dataTable... Like the code above: <rich:dataTable value="#{query.dataModel}" var="inscricao"> <rich:column label="My List"> <f:facet name="header"> <h:outputText value="My List" /> </f:facet> <h:outputText value="#{query.presencas.size()}" /> </rich:column> <c:forEach var="presenca" items="${query.presencas}"> <rich:column label="Presença"> <f:facet name="header"> <h:outputText value="Presença" /> </f:facet> <h

Jsoup: How to convert a String containing HTML to a XHTML document?

好久不见. 提交于 2019-12-11 03:36:41
问题 Title says it all. How to do that with Jsoup? I don't need a file. Just XHTML to use. I've only found some examples with bytearrays and fileoutputs. I only need a valid XHTML to use with itext PdfWriter and XMLWorker later on. 回答1: I believe something like this would do the trick Document doc = Jsoup.parse(html); doc.outputSettings().escapeMode(Entities.EscapeMode.xhtml); //This will ensure the validity doc.outputSettings().charset("UTF-8"); System.out.println(doc); 来源: https://stackoverflow

I cannot display an image with an absolue path :

≡放荡痞女 提交于 2019-12-11 03:19:04
问题 here is my code, why cant i disaply this image : <img src="file:///C:/Users/myname/Documents/WWWDIR/resources/files/users/logo.jpg" alt="photo2" border="0"/> i see only the alt text, but i am able to see the image in firebug. any idea? 回答1: If this is from a remote ( http:// ) page, it is by design: You can't link to local resources from remote pages in modern browsers any more. See details for each browser here. 来源: https://stackoverflow.com/questions/5284541/i-cannot-display-an-image-with

jQuery XHTML Compliance

橙三吉。 提交于 2019-12-11 03:17:09
问题 I am a little confused. I switched my content-type over to application/xhtml+xml on my server because I am using XHTML + some extra attributes (set with <!ATTLIST> ). Since I did this, all hell broke loose. For example, I have an autocomplete box that loads data from my server. The response from the server when an AJAX request is made is of application/json content-type. When the latter contains an ampersand in it, my browser shouts An invalid or illegal string was specified" code: "12 . When

Set selected option via CSS?

会有一股神秘感。 提交于 2019-12-11 03:08:38
问题 Is it possible to set the selected attribute of an option tag via a CSS class? I'm wondering if something like the following is possible in a stylesheet: option.selected { selected: true; } Then in HTML: <option class="selected"> Which would have the same effect as setting the selected attribute. Is this technique possible? 回答1: Nope, CSS only alters the presentation, not the content (although CSS3 does support some modification of content, but not the selection of values.) You'll need to use

Can we use <a> directly in the body, or it should always in any block level tag? See example (XHTML)

天大地大妈咪最大 提交于 2019-12-11 02:49:30
问题 Which is right? This: <h2>heading 2</h2> <p><a href="#" target="_blank" title="Opens in a new window">link 1</a></p> <h2>heading 2 </h2> <p><a href="#" target="_blank" title="Opens in a new window">link 2</a></p> <h2>heading 2 </h2> <p><a href="#" target="_blank" title="Opens in a new window">link 3</a></p> <h2>heading 2 </h2> <p><a href="#" target="_blank" title="Opens in a new window">link 4</a></p> or this: <h2>heading 2</h2> <a href="#" target="_blank" title="Opens in a new window">link 1

What is the correct way to open a form submit in a new window now target is deprecated

陌路散爱 提交于 2019-12-11 02:35:26
问题 Normally I would us <form target="_blank"> But looking through http://www.w3schools.com/tags/tag_form.asp I notice the target attribute is deprecated. So what is the correct XHTML compliant way to perform such an action? UPDATE: Thanks, I appreciate that opening new windows is not generally a good idea but in this case it's a third party linking to our site who wants this effect and unfortunately whilst I can suggest good design to them whether they take my advice is another matter :( 回答1: