Thank you.  

Yes, I'd conveniently (!) skipped over the fact I was taking advantage of the "Single 
Pass" processing you
 described in your very helpful online documenation to the profiling tool:
http://docbook.sourceforge.net/release/xsl/current/doc/tools/profiling.html#d0e251

So for "profiling" Slides, the "2 Step" approach (as you indicate below) has worked 
just fine.

Many thanks, again!
William Reilly
P.S.   >> If anyone can still comment on my second query (see original post) whether 
or not it's "pretty much a manual process" to make <slides> from <book>, that would be 
appreciated too.  Thx.

++++++++++++++++++++++
EXAMPLE .BAT FILE
At the risk of confusing the issue further (with all the "Catalog" code you'll see 
below), but in the interest of wanting to post 
something that now works and serves as an example of the question I raised, here is 
the .BAT file I can run my <slides> 
source XML file against:

         - For two different "vendors" (DTAS and MLNM), there are the "2 Steps" each.
                This gets me versions of the slideshow tagged for one audience or 
another.
         - Then there is a 3rd run, which does not Profile, so runs a basic, regular 
single step 
                This creates me a Slide show with  ALL content (nothing profiled out)).

-----------------------------------------------
Please Note: I've introduced *Line Breaks* for legibility (and a couple of 
//comments).  
                You need to remove these for java command lines to work!!!
-----------------------------------------------

=== xml2chunk_2step-profile_catalog-resolver.bat  ===============================

REM Run from c:\slides-3.1.0\tests\default\xml2chunk_2step-profile_catalog-resolver.bat
REM Re: Catalogs see http://www.sagehill.net/xml/docbookxsl/Catalogs.html#UseCatalog
REM Re: Profiling see: 
http://docbook.sourceforge.net/release/xsl/current/doc/tools/profiling.html (re: not 
Single Pass)

REM +++ DTAS (Vendor 1) +++++++++++++++++++++++++++++++

REM STEP 1 (of 2)
java -cp 
        
"\saxon6_5_2\saxon.jar;\saxon6_5_2\saxon-fop.jar;\saxon6_5_2\saxon-jdom.jar;\docbook-xsl-latest\extensions\saxon651.jar;\docbook-xsl-latest\extensions\resolver.jar;\docbook-xsl-latest\extensions;"
 
        com.icl.saxon.StyleSheet 
        -x org.apache.xml.resolver.tools.ResolvingXMLReader 
        -y org.apache.xml.resolver.tools.ResolvingXMLReader  
        -r org.apache.xml.resolver.tools.CatalogResolver 
        -u 
        -o tempProfiledSlidesDTAS.xml 
        ..\test_WR_20030205.xml                         // SLIDES data file
        http://docbook.sourceforge.net/release/xsl/current/profiling/profile.xsl    // 
My catalog re-directs to local copy
        profile.vendor=Digitas

REM Step 2 (of 2)
java -cp 
        
"\saxon6_5_2\saxon.jar;\saxon6_5_2\saxon-fop.jar;\saxon6_5_2\saxon-jdom.jar;\docbook-xsl-latest\extensions\saxon651.jar;\docbook-xsl-latest\extensions\resolver.jar;\docbook-xsl-latest\extensions;"
 
        com.icl.saxon.StyleSheet 
        -x org.apache.xml.resolver.tools.ResolvingXMLReader 
        -y org.apache.xml.resolver.tools.ResolvingXMLReader  
        -r org.apache.xml.resolver.tools.CatalogResolver 
        -u  
        tempProfiledSlidesDTAS.xml 
        ..\..\MLNM_DocBookSlides_Driver.xsl      // Invokes "default.xsl" under Slides 
XSL @ sourceforge; again, catalog redirects to local
        base.dir=..\docsDTAS\

REM +++ MLNM (Vendor 2) +++++++++++++++++++++++++++++++

REM STEP 1 (of 2)
REM See C:\docbook-xsl-1.60.1\doc\tools\profiling.html (re: not Single Pass)
java -cp 
        
"\saxon6_5_2\saxon.jar;\saxon6_5_2\saxon-fop.jar;\saxon6_5_2\saxon-jdom.jar;\docbook-xsl-latest\extensions\saxon651.jar;\docbook-xsl-latest\extensions\resolver.jar;\docbook-xsl-latest\extensions;"
 
        com.icl.saxon.StyleSheet 
        -x org.apache.xml.resolver.tools.ResolvingXMLReader 
        -y org.apache.xml.resolver.tools.ResolvingXMLReader  
        -r org.apache.xml.resolver.tools.CatalogResolver 
        -u 
        -o tempProfiledSlidesMLNM.xml 
        ..\test_WR_20030205.xml                                 // SLIDES data file
        http://docbook.sourceforge.net/release/xsl/current/profiling/profile.xsl    // 
My catalog re-directs to local copy
        profile.vendor=Millennium

REM Step 2 (of 2)
java -cp 
        
"\saxon6_5_2\saxon.jar;\saxon6_5_2\saxon-fop.jar;\saxon6_5_2\saxon-jdom.jar;\docbook-xsl-latest\extensions\saxon651.jar;\docbook-xsl-latest\extensions\resolver.jar;\docbook-xsl-latest\extensions;"
 
        com.icl.saxon.StyleSheet 
        -x org.apache.xml.resolver.tools.ResolvingXMLReader 
        -y org.apache.xml.resolver.tools.ResolvingXMLReader  
        -r org.apache.xml.resolver.tools.CatalogResolver 
        -u  
        tempProfiledSlidesMLNM.xml 
        ..\..\MLNM_DocBookSlides_Driver.xsl     // Invokes "default.xsl" under Slides 
XSL @ sourceforge; again, catalog redirects to local
        base.dir=..\docsMLNM\


REM +++  NO VENDOR (No Profiling - can be 1 step) +++++++++++++++++++++++++++

REM NO VENDOR JUST ONE STEP
java -cp 
        
"\saxon6_5_2\saxon.jar;\saxon6_5_2\saxon-fop.jar;\saxon6_5_2\saxon-jdom.jar;\docbook-xsl-latest\extensions\saxon651.jar;\docbook-xsl-latest\extensions\resolver.jar;\docbook-xsl-latest\extensions;"
 
        com.icl.saxon.StyleSheet 
        -x org.apache.xml.resolver.tools.ResolvingXMLReader 
        -y org.apache.xml.resolver.tools.ResolvingXMLReader  
        -r org.apache.xml.resolver.tools.CatalogResolver 
        -u  
        ..\test_WR_20030205.xml 
        ..\..\MLNM_DocBookSlides_Driver.xsl   // Invokes "default.xsl" under Slides 
XSL @ sourceforge; again, catalog redirects to local
        base.dir=..\docsNOVENDORNAMED\    // Publishes ALL content (nothing profiled 
out)
====================================================================

------------------------------
William Reilly
[EMAIL PROTECTED]
Boston, Massachusetts U.S.A.
------------------------------


-----Original Message-----
From: Jirka Kosek [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 13, 2003 2:44 PM
To: William Reilly
Cc: [EMAIL PROTECTED]
Subject: Re: DOCBOOK: Slides and Profiling: supported or no? Thx.


William Reilly wrote:

> Looking to confirm my assumption/understanding that the profiling mechanism 
>available for DocBook (XML) DTD is _not_ (easily??) also in place for the (DocBook) 
>Slides DTD.
> (That is, no, I don't think I want to do it myself :>) )

There is not special stylesheet like profile-chunk.xsl for common
DocBook, but you can use standalone profiling stylesheet and then
process profiled slides.

saxon -o temp.xml slides.xml .../xsl/profiling/profile.xsl
"profile.<attribute>=<value>"

saxon temp.xsl slides_stylesheet.xsl


                                        Jirka

-- 
-----------------------------------------------------------------
  Jirka Kosek                        
  e-mail: [EMAIL PROTECTED]
  http://www.kosek.cz

Reply via email to