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

Re: xsL:with-param, xsl:-param emptiness, Xalan and x

Subject: Re: xsL:with-param, xsl:-param emptiness, Xalan and xsltproc
From: Kasimier Buchcik <K.Buchcik@xxxxxxxxxxxx>
Date: Thu, 23 Mar 2006 18:10:05 +0100
xsl param xml
Hi,

On Thu, 2006-03-23 at 17:23 +0100, Kasimier Buchcik wrote:
> Hi,
> 
> On Thu, 2006-03-23 at 10:04 -0600, Eric White wrote:
> > Kasimier Buchcik wrote:
> > 
> > >Use curly braces around the param's name:
> 
> > No joy.... I'm still working through the template priority logic... 
> > Michael's suggestion about template defaults sounds encouraging.
> 
> True, I'm sorry, what I proposed was totally incorrect :-(

I tried your stylesheet (just added an indent="yes") with the
following input, and observed the following:

type param.xml
<?xml version="1.0"?>
<physInterfaceTableRow><physInterfaceOsName>eth1</physInterfaceOsName><physInterfaceDuplex/></physInterfaceTableRow>

xsltproc param.xsl param.xml
<?xml version="1.0"?>
<physInterfaceTableRow>
  <physInterfaceOsName>eth1</physInterfaceOsName>
  <physInterfaceDuplex></physInterfaceDuplex>
</physInterfaceTableRow><physInterfaceOsName>eth1</physInterfaceOsName><physInterfaceDuplex>full</physInterfaceDuplex>

Note that this creates:
<physInterfaceDuplex>full</physInterfaceDuplex>
so it looks like the param was used in this case.

MSXML.NET produces the same result.

Regards,

Kasimier

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.