incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject svn commit: r1230426 - /sling/trunk/bundles/jcr/contentloader/src/main/java/org/apache/sling/jcr/contentloader/internal/readers/XmlReader.java
Date Thu, 12 Jan 2012 07:33:22 GMT
Author: cziegeler
Date: Thu Jan 12 07:33:22 2012
New Revision: 1230426

URL: http://svn.apache.org/viewvc?rev=1230426&view=rev
Log:
SLING-2359 : Don't transform xml if xml location is unknown

Modified:
    sling/trunk/bundles/jcr/contentloader/src/main/java/org/apache/sling/jcr/contentloader/internal/readers/XmlReader.java

Modified: sling/trunk/bundles/jcr/contentloader/src/main/java/org/apache/sling/jcr/contentloader/internal/readers/XmlReader.java
URL: http://svn.apache.org/viewvc/sling/trunk/bundles/jcr/contentloader/src/main/java/org/apache/sling/jcr/contentloader/internal/readers/XmlReader.java?rev=1230426&r1=1230425&r2=1230426&view=diff
==============================================================================
--- sling/trunk/bundles/jcr/contentloader/src/main/java/org/apache/sling/jcr/contentloader/internal/readers/XmlReader.java
(original)
+++ sling/trunk/bundles/jcr/contentloader/src/main/java/org/apache/sling/jcr/contentloader/internal/readers/XmlReader.java
Thu Jan 12 07:33:22 2012
@@ -217,7 +217,7 @@ public class XmlReader implements Conten
             if (eventType == XmlPullParser.PROCESSING_INSTRUCTION) {
                 ProcessingInstruction pi = new ProcessingInstruction(this.xmlParser.getText());
                 // Look for a reference to an XSL stylesheet
-                if (pi.getName().equals(XML_STYLESHEET_PROCESSING_INSTRUCTION)) {
+                if (pi.getName().equals(XML_STYLESHEET_PROCESSING_INSTRUCTION) &&
xmlLocation != null ) {
                     // Rewind the input stream to the beginning, so that it can be transformed
with XSL
                     bufferedInput.reset();
                     // Pipe the XML input through the XSL transformer



Mime
View raw message