[ http://issues.apache.org/jira/browse/XALANJ-1164?page=all ]

Brian Minchau updated XALANJ-1164:
----------------------------------

    Version: Latest Development Code
                 (was: 2.4Dx)

> Not able to transform in-memory documents
> -----------------------------------------
>
>          Key: XALANJ-1164
>          URL: http://issues.apache.org/jira/browse/XALANJ-1164
>      Project: XalanJ2
>         Type: Bug
>   Components: transformation, Xalan-interpretive
>     Versions: Latest Development Code
>  Environment: Operating System: Other
> Platform: Other
>     Reporter: Prabhakar Krishnaswami
>     Assignee: Xalan Developers Mailing List

>
> 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)

-- 
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
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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

Reply via email to