[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Transforming XML to XML

Subject: Re: Transforming XML to XML
From: Josh Canfield <joshcanfield@xxxxxxxxx>
Date: Wed, 11 Aug 2004 15:18:09 -0700
xsl transform xml to xml
Sorry, I interpretted your question incorrectly. You want to have the
browser do the transformation and then show the output xml file using
the pretty tree formatting? I don't believe this is possible.

The new code does actually transform, you can add text during the
transform to demonstrate this. IE still tries to display the
transformed text as html, even though you have set the output to xml.

You may have to resort to server side transformation...

Josh

On Wed, 11 Aug 2004 17:11:28 -0400, Pilarski, James
<james_pilarski@xxxxxxxxxxxxxxxx> wrote:
> Per your suggestion, I have tried both of the following stylesheets:
> 
> <?xml version="1.0" encoding="ISO-8859-1"?>
> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
> <xsl:output method="xml" version="1.0" encoding="iso-8859-1" indent="yes"/>
> 
> <xsl:template match="/">
>  <xsl:apply-templates select="Data"/>
> </xsl:template>
> 
> <xsl:template match="Data">
>  <xsl:copy-of select="."/>
> </xsl:template>
> 
> </xsl:stylesheet>
> 
> AND
> 
> <?xml version="1.0" encoding="ISO-8859-1"?>
> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
> <xsl:output method="xml" version="1.0" encoding="iso-8859-1" indent="yes"/>
> 
> <xsl:template match="/">
>  <xsl:copy-of select="Data"/>
> </xsl:template>
> 
> </xsl:stylesheet>
> 
> Both of these stylesheets are still returning just a string from the following XML:
> 
> <?xml-stylesheet type="text/xsl" href="renewal.xsl"?>
> <Data>
>  <car>Chevy</car>
>  <car>Dodge</car>
>  <car>Ford</car>
> </Data>
> 
> Are the modifications that I made to the example above incorrect?
> 
> 
> **************************************************************************************************
> The contents of this email and any attachments are confidential.
> It is intended for the named recipient(s) only.
> If you have received this email in error please notify the system manager or  the
> sender immediately and do not disclose the contents to any one or make copies.
> 
> ** This email was scanned for viruses, vandals and malicious content **
> **************************************************************************************************

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.