Author: krispopat
Date: Fri Dec 10 13:20:34 2010
New Revision: 1044345

URL: http://svn.apache.org/viewvc?rev=1044345&view=rev
Log:
A small change generating a valid uri for the id where the id of the widget 
fails the IRIValidator test or there is no id defined.  This does not fix the 
upload/update issue with generated ids.

Modified:
    
incubator/wookie/trunk/parser/java/src/org/apache/wookie/w3c/impl/WidgetManifestModel.java

Modified: 
incubator/wookie/trunk/parser/java/src/org/apache/wookie/w3c/impl/WidgetManifestModel.java
URL: 
http://svn.apache.org/viewvc/incubator/wookie/trunk/parser/java/src/org/apache/wookie/w3c/impl/WidgetManifestModel.java?rev=1044345&r1=1044344&r2=1044345&view=diff
==============================================================================
--- 
incubator/wookie/trunk/parser/java/src/org/apache/wookie/w3c/impl/WidgetManifestModel.java
 (original)
+++ 
incubator/wookie/trunk/parser/java/src/org/apache/wookie/w3c/impl/WidgetManifestModel.java
 Fri Dec 10 13:20:34 2010
@@ -246,7 +246,7 @@ public class WidgetManifestModel impleme
                if(fIdentifier == null){
                        //give up & generate one
                        RandomGUID r = new RandomGUID();
-                       fIdentifier = "generated-uid-" + r.toString();
+                       fIdentifier = 
"http://incubator.apache.org/wookie/generated/"; + r.toString();
                }
                // VERSION IS OPTIONAL          
                fVersion = 
UnicodeUtils.normalizeSpaces(element.getAttributeValue(IW3CXMLConfiguration.VERSION_ATTRIBUTE));


Reply via email to