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

Re: Obtaining xml node value and using it as variable

Subject: Re: Obtaining xml node value and using it as variable
From: Jon Gorman <jonathan.gorman@xxxxxxxxx>
Date: Tue, 4 Oct 2005 10:25:29 -0500
xml node value
On 10/4/05, geoff hopkins <geoffhopkins123@xxxxxxxxx> wrote:

> hope I have explained this well enough...?!?

To be blunt, not really.

This could be interpreted in two ways:

1) "I need to get a value from a node and store it in a variable/parameter"

with the easy answer of "well, use xsl:varaible or xsl:parameter".

2) (the more likely case)  "I want to be able to execute a
command-line parameter into the stylesheet

Which has a couple of flavors of it's own.

i)  You actually want to pass a node set in (not a node's value)

ie (picking a roughly Xalan sytanx just for a quick example):

  xsltprocess -IN foo.xml -XSL trans.xsl -OUT bar.xml -PARAM
"<foo><node>1</node></foo>"

-- there should be something in the archives about this


ii) You want to specifiy a node within the document via a XPATH string

xsltprocess -IN foo.xml -XSL trans.xsl -OUT bar.xml -PARAM "//ul/li/foo[1]"

-- might be something in the archives about this

I'm sure there's more ways to interpret your one-sentence description
of the problem that I haven't thought of.  Perhaps an example of what
you want to do would help.


Jon Gorman

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.