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

Re: import, xslt 2.1

Subject: Re: import, xslt 2.1
From: Dave Pawson <davep@xxxxxxxxxxxxx>
Date: Sun, 14 Mar 2010 05:22:12 +0000
Re:  import
On 13/03/10 21:40, Scott Trenda wrote:
I don't know much about XSLT2 or Saxon's extensions, but the errors from your second case here seem fairly simple to fix:

<xsl:import href="f/func-exp.xsl"
use-when="system-property('System.getenv(&quot;f&quot;)')= 'true'"  />

Putting the quotes around f made that attribute into invalid XML. Does that work?

~ Scott


Still bad Scott.

<xsl:value-of
select="system-property('System.getenv(&quot;f&quot;)')"  />
</xsl:message>

which is a simpler example.
returns
Error on line 16 of crap.xsl:
  XTDE1390: Invalid QName {System.getenv("f")}
Transformation failed: Run-time errors were reported

Seems to be my misunderstanding of 'Java system property' and
OS env var, as returned by
http://java.sun.com/javase/6/docs/api/java    \
/lang/System.html#getenv%28java.lang.String%29

Not even sure what the former is!
Possibly something passed to the jvm via -D param.

either way it seems to be wrong, even when quoted properly.

Summary, the href attribute on xsl:import could be far more flexible.

regards





regards

--
Dave Pawson
XSLT XSL-FO FAQ.
http://www.dpawson.co.uk

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.