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

RE: Transformation with XSLT & XML In Same File

Subject: RE: Transformation with XSLT & XML In Same File
From: "Joe Fawcett" <joefawcett@xxxxxxxxxxx>
Date: Wed, 28 Jan 2004 14:42:05 +0000
xsl xml same file
From: Ronald Kent Gibson <Kent.Gibson@xxxxxxxxxxx>
Reply-To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
To: "'XSL-List@xxxxxxxxxxxxxxxxxxxxxx'" <XSL-List@xxxxxxxxxxxxxxxxxxxxxx>
Subject:  Transformation with XSLT & XML In Same File
Date: Wed, 28 Jan 2004 14:54:30 +0100

Dear All

Before any one asks, why would you ever want to do such a thing, I am sort
of forced into.

Anyways a have one document with the xml definition at the beginning of the
document and xslt at the end (or vice versa is possible). I would like to
transform the xml.

Do any of the transformers support such a funny set up, or am I going to
have to split up the files some way.

thanks

kent

For a completely xml solution your file would have to be well formed, not simply an xml file then an xslt file. I do something similar with xslt when I cannot use the document function to access external documents. I have an xslt file that doees the transform and I have a child of the stylesheet element called 'source' with a declared namespace prefix, eg.g joe:source. This element contains the xml file. Then use document('')/*/joe:source/* as the xpath in a variable element to give me the document element of my xml file.

--

Joe

_________________________________________________________________
Express yourself with cool new emoticons http://www.msn.co.uk/specials/myemo


XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list



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.