[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] xsL:with-param, xsl:-param emptiness, Xalan and xsltproc


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

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