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

Re: write out xml *with* tags for data island inside

Subject: Re: write out xml *with* tags for data island inside xsl??
From: Eric van der Vlist <vdv@xxxxxxxxxxxx>
Date: Thu, 21 Apr 2005 16:52:14 +0200
xml data island javascript
On jeu, 2005-04-21 at 08:40 -0400, Hardy Merrill wrote:
> MSXML4 and ASP.
> 
> I'm rendering an XML document with a style sheet and I'm passing a
> separate XML document(regions_xmldoc) as a parameter.  I need 
> "regions_xmldoc" to be a data island for some javascript in the ASP
> page that is doing the rendering.  I tried this in the style sheet:
> 
> <xml id="dsoRegions"><xsl:value-of select="$regions_xmldoc"/></xml>
> </body>
> </html>

As mentioned in the other answers, you should use copy-of instead of
value-of, but also note that the XML rec says that "Names beginning with
the string "xml", or with any string which would match (('X'|'x')
('M'|'m') ('L'|'l')), are reserved for standardization in this or future
versions of this specification."

Replacing <xml> by <_xml> would thus be more kosher...

Eric
-- 
Have you ever thought about unit testing XSLT templates?
                                                     http://xsltunit.org
------------------------------------------------------------------------
Eric van der Vlist       http://xmlfr.org            http://dyomedea.com
(ISO) RELAX NG   ISBN:0-596-00421-4 http://oreilly.com/catalog/relax
(W3C) XML Schema ISBN:0-596-00252-1 http://oreilly.com/catalog/xmlschema
------------------------------------------------------------------------

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.