Re: [xsl] using -it in command line

Subject: Re: [xsl] using -it in command line
From: "Mark Wilson pubs@xxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Sun, 30 Aug 2015 02:00:32 -0000
Solved the problem by using a copy stylesheet that removed white space.
Thanks for the help Guys,

On 8/29/2015 3:24 PM, Mark Wilson pubs@xxxxxxxxxxxx wrote:
White space is not removed when using this command line:
java -jar c:\saxon\saxon9.jar  -xsl:read1.xsl -it:runit -o:output.xml

on stylesheet 'read1.xsl:

<xsl:stylesheet xmlns:xsl=""; xmlns:xs=""; xmlns:saxon=""; xmlns:mets=""; xmlns:blprocess="";
exclude-result-prefixes="xs" version="2.0">

  <xsl:output method="xml" indent="yes"/>
  <xsl:strip-space elements="*"/>

  <xsl:template name="runit">
    <xsl:apply-templates select="collection('docs?select=*.xml')"/>
    <xsl:for-each select="collection('docs?select=*.xml')">
      <xsl:apply-templates select="saxon:discard-document(.)"/>

<xsl:template match="/">
<xsl:template match="mets:amdSec">
<xsl:if test="@ID eq 'amd0002'">
<xsl:copy-of select="descendant::blprocess:processMetadata" copy-namespaces="no"/>

<xsl:template match="mets:name"/>



Current Thread