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

Re: using -it in command line

Subject: Re: using -it in command line
From: "Michael Kay mike@xxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Sun, 30 Aug 2015 09:34:42 -0000
Re:  using -it in command line
I wonder what Saxon release you are using? It looks like this old bug, fixed
in 9.5:

https://saxonica.plan.io/issues/1604

Michael Kay
Saxonica

> On 30 Aug 2015, at 03:00, Mark Wilson pubs@xxxxxxxxxxxx
<xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote:
>
>
> Solved the problem by using a copy stylesheet that removed white space.
> Thanks for the help Guys,
> Mark
>
> On 8/29/2015 3:24 PM, Mark Wilson pubs@xxxxxxxxxxxx wrote:
>> Help?
>> 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="http://www.w3.org/1999/XSL/Transform"
xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:saxon="http://saxon.sf.net/"
xmlns:mets="http://www.loc.gov/METS/"
xmlns:blprocess="http://bl.uk/namespaces/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:for-each>
>>  </xsl:template>
>>
>>  <xsl:template match="/">
>>   <xsl:apply-templates/>
>>  </xsl:template>
>>  <xsl:template match="mets:amdSec">
>>    <xsl:if test="@ID eq 'amd0002'">
>>      <xsl:copy-of select="descendant::blprocess:processMetadata"
copy-namespaces="no"/>
>>    </xsl:if>
>>  </xsl:template>
>>
>>  <xsl:template match="mets:name"/>
>>
>> </xsl:stylesheet>
>>
>> Thanks,
>> Mark

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.