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

RE: Issue with Xalan nodeset

Subject: RE: Issue with Xalan nodeset
From: "Etheridge, Stephen" <stephen.etheridge@xxxxxxxxxx>
Date: Fri, 26 Nov 2010 08:23:48 +0000
RE:  Issue with Xalan nodeset
Martin

Making the change suggested makes no difference to the output apart from
the inclusion of the standard XML PI - <?xml   etc.)


Kind regards
Stephen

-----Original Message-----
From: Martin Honnen [mailto:Martin.Honnen@xxxxxx]
Sent: 25 November 2010 16:49
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re:  Issue with Xalan nodeset

Etheridge, Stephen wrote:

> <xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> xmlns:xalan="http://xml.apache.org/xalan"
> exclude-result-prefixes = "xalan">
>
> <xsl:output method="text" indent="yes" />
> <xsl:variable name="old_file" select="/*"></xsl:variable>
> <xsl:param name="secondFile"></xsl:param>
> <xsl:variable name="new_file"
select="xalan:nodeset($secondFile)/*"></xsl:variable>
>
> 	<xsl:template match="/">
> 		Parameter secondFile is set as
> 		<xsl:value-of select="$secondFile"/>

What does output method="xml" and
                 <xsl:copy-of select="$secondFile"/>
give you for your input?
I am not familiar with the types Xalan allows as parameters and how Java

types are mapped to XSLT/XPath types.
Are you using Xalan XSLTC or Interpreter? Have you tried to set the
parameter to an XSLTCSource
http://xml.apache.org/xalan-j/xsltc/xsltc_trax_api.html instead of a
DOMSource?

--

	Martin Honnen
	http://msmvps.com/blogs/martin_honnen/



Think green - keep it on the screen.

This e-mail and any attachment is for authorised use by the intended
recipient(s) only. It may contain proprietary material, confidential
information and/or be subject to legal privilege. It should not be copied,
disclosed to, retained or used by, any other party. If you are not an intended
recipient then please promptly delete this e-mail and any attachment and all
copies and inform the sender. Thank you.

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.