xsl-list
[Top] [All Lists]

Re: [xsl] using -it in command line

2015-08-30 10:57:38
Hi Michael,
I am still using Saxon 9 -- I spent four years with it putting together a very complex and on-going project and have never had the nerve to update it. The bug you pointed out I recovered from with a second transformation (a simple copy with whitespace removal). All in all, I was able to complete this volunteer project for the Royal Philatelic Society London in less than 24 hours, thanks to the help so quickly offered on this list. I still must address the character set problem, but that is of a much lower priority.
Regards and thanks,
Mark

On 8/30/2015 2:35 AM, Michael Kay mike(_at_)saxonica(_dot_)com wrote:
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(_at_)knihtisk(_dot_)org 
<xsl-list-service(_at_)lists(_dot_)mulberrytech(_dot_)com> 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(_at_)knihtisk(_dot_)org 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



--~----------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
EasyUnsubscribe: http://lists.mulberrytech.com/unsub/xsl-list/1167547
or by email: xsl-list-unsub(_at_)lists(_dot_)mulberrytech(_dot_)com
--~--

<Prev in Thread] Current Thread [Next in Thread>