The following issue has been updated:

    Updater: Brian Minchau (mailto:[EMAIL PROTECTED])
       Date: Fri, 24 Sep 2004 8:30 AM
    Changes:
             Component changed to transformation
    ---------------------------------------------------------------------
For a full history of the issue, see:

  http://issues.apache.org/jira/browse/XALANJ-1164?page=history

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/XALANJ-1164

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: XALANJ-1164
    Summary: Not able to transform in-memory documents
       Type: Bug

     Status: Open

    Project: XalanJ2
 Components: 
             Xalan-interpretive transformation
             transformation
   Versions:
             2.4Dx

   Assignee: Xalan Developers Mailing List
   Reporter: Prabhakar Krishnaswami

    Created: Tue, 3 Sep 2002 5:59 PM
    Updated: Fri, 24 Sep 2004 8:30 AM
Environment: Operating System: Other
Platform: Other

Description:
My servlet builds a in memory dom tree which is finally transformed by XSL 
style sheet. The IE browser always throws the following error:

The XML page cannot be displayed 
Cannot view XML input using style sheet. Please correct the error and then 
click the Refresh button, or try again later. 


--------------------------------------------------------------------------------

Invalid at the top level of the document. Error processing 
resource 'http://localhost:7001/shoppingCart/review'. Line 1, Position 39 

<?xml version="1.0" encoding="UTF-8"?>

I am using the following stylesheet for transformation:

<?xml version="1.0" ?>
<xsl:stylesheet version="1.0"    
xmlns:xsl="http://www.w3.org/1999/XSL/Transform";  
                              
xmlns:prod="http://www.nicholaschase.com/products/";      
                                                          
xmlns:ord="http://www.nicholaschase.com/orders/";>


                
 <xsl:template match="text()">
                  <xsl:apply-templates />
</xsl:template>

<xsl:template match="ord:item">
    <xsl:value-of select="@ord:product_id" />
        <br />
</xsl:template>
           
</xsl:stylesheet>

The in-memory document when serialized using XMLSerializer is displayed as 
below:

  <?xml version="1.0" encoding="UTF-8" ?> 
- <orderSystem xmlns:ord="http://www.nicholaschase.com/orders/"; 
xmlns:prod="http://www.nicholaschase.com/products/";>
- <ord:orders>
- <ord:order ord:order_id="9tZjC41e96fZ3">
  <ord:order_status>in progress</ord:order_status> 
- <ord:item ord:product_id="BR3452">
  <ord:quantity>2</ord:quantity> 
  </ord:item>
  </ord:order>
  </ord:orders>
- <prod:products>
- <prod:vendor prod:webvendor="full">
- <prod:advertisement>
- <prod:ad_sentence>
  Conners Chair Company presents their annual big three day only chair sale. 
We're making way for our new stock! 
  <prod:b>All current inventory must go!</prod:b> 
  Regular prices slashed by up to 60%! 
  </prod:ad_sentence>
  </prod:advertisement>
- <prod:product>
  <prod:product_id>QA3452</prod:product_id> 
  <prod:short_desc>Queen Anne Chair</prod:short_desc> 
  <prod:price prod:pricetype="cost">$85</prod:price> 
  <prod:price prod:pricetype="sale">$125</prod:price> 
  <prod:price prod:pricetype="retail">$195</prod:price> 
  <prod:inventory prod:color="royal blue" 
prod:location="warehouse">12</prod:inventory> 
  <prod:inventory prod:color="royal blue" 
prod:location="showroom">5</prod:inventory> 
  <prod:inventory prod:color="flower print" 
prod:location="warehouse">16</prod:inventory> 
  <prod:inventory prod:color="flower print" 
prod:location="showroom">3</prod:inventory> 
  <prod:inventory prod:color="seafoam green" 
prod:location="warehouse">20</prod:inventory> 
  <prod:inventory prod:color="seafoam green" 
prod:location="showroom">20</prod:inventory> 
  <prod:inventory prod:color="teal" 
prod:location="warehouse">15</prod:inventory> 
  <prod:inventory prod:color="teal" 
prod:location="showroom">14</prod:inventory> 
  <prod:inventory prod:color="burgundy" 
prod:location="showroom">35</prod:inventory> 
- <prod:giveaway>
  <prod:giveaway_item>Matching Ottoman included</prod:giveaway_item> 
  <prod:giveaway_desc>While supplies last</prod:giveaway_desc> 
  </prod:giveaway>
  </prod:product>
- <prod:product>
  <prod:product_id>RC2342</prod:product_id> 
  <prod:short_desc>Early American Rocking Chair</prod:short_desc> 
  <prod:product_desc>with brown and tan plaid upholstery</prod:product_desc> 
  <prod:price prod:pricetype="cost">$75</prod:price> 
  <prod:price prod:pricetype="sale">$62</prod:price> 
  <prod:price prod:pricetype="retail">$125</prod:price> 
  <prod:inventory prod:location="warehouse">40</prod:inventory> 
  <prod:inventory prod:location="showroom">5</prod:inventory> 
  </prod:product>
- <prod:product>
  <prod:product_id>BR3452</prod:product_id> 
  <prod:short_desc>Bentwood Rocker</prod:short_desc> 
  <prod:price prod:pricetype="cost">$125</prod:price> 
  <prod:price prod:pricetype="sale">$160</prod:price> 
  <prod:price prod:pricetype="retail">$210</prod:price> 
  <prod:inventory prod:location="showroom">3</prod:inventory> 
  </prod:product>
  </prod:vendor>
  </prod:products>
  </orderSystem>

I am using  xalan-j24D1\bin\xalan.jar. Could you let me know why I would the 
above error. The webserver being used is weblogic 6.1(service pack 2)


---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to