This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: Using profile.xsl to filter conditionalized documents
- From: Jirka Kosek <jirka at kosek dot cz>
- To: "Bradford, Denis" <denisb at rational dot com>
- Cc: "docbook-apps at lists dot oasis-open dot org" <docbook-apps at lists dot oasis-open dot org>
- Date: Thu, 06 Dec 2001 19:08:08 +0100
- Subject: Re: DOCBOOK-APPS: Using profile.xsl to filter conditionalized documents
- References: <3906C56A7BD1F54593344C05BD1374B10286E44C@SUS-MA1IT01>
"Bradford, Denis" wrote:
> However, I can't specify more than one value for a condition when I run
> profile.xsl. For example:
>
> saxon -o xsample.xml sample.xml profile.xsl "os=Windows;UNIX"
>
> The result of this command is to OMIT both Windows and UNIX conditions, the
> opposite of what I wanted.
> Is it possible to get multiple values to work on the command line?
Not a nice way, but if you have only two values, you can do the
following trick:
saxon -o xsample.xml sample.xml profile.xsl "os=Windows" "attr=os"
"val=UNIX"
Implementing user-friendly way ("os=Windows;UNIX") is not so easy as
XSLT doesn't have data types like array or list.
> The reason I ask is that Epic's profiling allows you to do this, and I'm
> trying to reproduce that capability independently of Epic.
profile.xsl is free and small piece of software. It currently doesn't
provide same functionality as 700 USD Epic. ;)
--
-----------------------------------------------------------------
Jirka Kosek
e-mail: jirka@kosek.cz
http://www.kosek.cz