Author: simonetripodi
Date: Fri Jan 13 14:54:58 2012
New Revision: 1231108
URL: http://svn.apache.org/viewvc?rev=1231108&view=rev
Log:
trivial format
Modified:
incubator/any23/trunk/src/site/apt/dev-validation-fix.apt
Modified: incubator/any23/trunk/src/site/apt/dev-validation-fix.apt
URL:
http://svn.apache.org/viewvc/incubator/any23/trunk/src/site/apt/dev-validation-fix.apt?rev=1231108&r1=1231107&r2=1231108&view=diff
==============================================================================
--- incubator/any23/trunk/src/site/apt/dev-validation-fix.apt (original)
+++ incubator/any23/trunk/src/site/apt/dev-validation-fix.apt Fri Jan 13
14:54:58 2012
@@ -30,7 +30,7 @@ Validation and Fixing
+------------------------------------------------------------------------------------------
<div>
- The title of this document is <span property="dcterms:title">Why RDFa is
Awesome</span>.
+ The title of this document is <span property="dcterms:title">Why RDFa is
Awesome</span>.
</div>
+------------------------------------------------------------------------------------------
@@ -38,7 +38,7 @@ Validation and Fixing
+------------------------------------------------------------------------------------------
<div xmlns:dcterms="http://purl.org/dc/terms/">
- The title of this document is <span property="dcterms:title">Why RDFa is
Awesome</span>.
+ The title of this document is <span property="dcterms:title">Why RDFa is
Awesome</span>.
</div>
+------------------------------------------------------------------------------------------
@@ -55,16 +55,16 @@ public class MissingOpenGraphNamespaceRu
public boolean applyOn(DOMDocument document, RuleContext context,
ValidationReport validationReport) {
List<Node> metas = document.getNodes("/HTML/HEAD/META");
boolean foundPrecondition = false;
- for(Node meta : metas) {
+ for (Node meta : metas) {
Node propertyNode = meta.getAttributes().getNamedItem("property");
if( propertyNode != null &&
propertyNode.getTextContent().indexOf("og:") == 0) {
foundPrecondition = true;
break;
}
}
- if(foundPrecondition) {
+ if (foundPrecondition) {
Node htmlNode = document.getNode("/HTML");
- if( htmlNode.getAttributes().getNamedItem("xmlns:og") == null) {
+ if (htmlNode.getAttributes().getNamedItem("xmlns:og") == null) {
validationReport.reportIssue(
ValidationReport.IssueLevel.error,
"Missing OpenGraph namespace declaration.",
@@ -107,4 +107,4 @@ public class OpenGraphNamespaceFix imple
validator.addRule(MissingOpenGraphNamespaceRule.class,
OpenGraphNamespaceFix.class);
+------------------------------------------------------------------------------------------
- When the Rule precondition is matched, then the Fix is triggered modifying
the DOM structure.
\ No newline at end of file
+ When the Rule precondition is matched, then the Fix is triggered modifying
the DOM structure.