Re: [xsl] Simple style sheet erroring on Dita fle

Subject: Re: [xsl] Simple style sheet erroring on Dita fle
From: "Kevin Brown kevin.brown@xxxxxxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 28 Sep 2022 20:32:57 -0000
Unless I am wrong, that error has nothing to do with XSL although you shared
the XSL.
It looks like the XML file is corrupt OR given the naming like
bCloud_Object.xmlb are you sure it is not some download from the cloud
that injected special characters or was encoded wrong or was not complete
before checking?


From: Chris Papademetrious christopher.papademetrious@xxxxxxxxxxxx
Sent: Wednesday, September 28, 2022 1:16 PM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re: [xsl] Simple style sheet erroring on Dita fle

Hi Russ,

Does the DITA file validate as valid XML with bxmllintb or another similar

*	Chris

From: russurquhart1@xxxxxxxxxxx <mailto:russurquhart1@xxxxxxxxxxx>
russurquhart1@xxxxxxxxxxx <mailto:russurquhart1@xxxxxxxxxxx>
<mailto:xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> >
Sent: Wednesday, September 28, 2022 4:13 PM
To: Xsl-list <xsl-list@xxxxxxxxxxxxxxxxxxxxxx
<mailto:xsl-list@xxxxxxxxxxxxxxxxxxxxxx> >
Subject: [xsl] Simple style sheet erroring on Dita fle

Hi All,

It's been awhile but I have the opportunity to get back to xslt land.

I have a small xslt:

<xsl:stylesheet version="1.0"


<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>

<!-- identity transform -->

<xsl:template match="@*|node()">


        <xsl:apply-templates select="@*|node()"/>



<xsl:template match="entry/p[1]">




That removes the first <p> element in an entry element.

When i try this on a DITA xml file I get:

russurquhart_boomi ~/Downloads/SaxonHE11-4J  $ java -jar saxon-he-11.4.jar -t
-s:Cloud_Object.xml -xsl:rem_para.xsl -o:Cloud_Object_Out.xml

SaxonJ-HE 11.4 from Saxonica

Java version

Stylesheet compilation time: 173.737833ms


Using parser$JAXPSAXParser

Building tree for
file:/Users/russurquhart_boomi/Downloads/SaxonHE11-4J/Cloud_Object.xml using
class net.sf.saxon.tree.tiny.TinyBuilder

I/O error reported by XML parser processing

The DITA file is kind of long but I can attach it if needed. I was hoping
someone could provide some insight on this?



XSL-List info and archive

fYC5iebiMvVZYyvjM-OHnU20bil9JUrqjOuM4DyIdg9dGk3RIAKwIeNqUk$>  (by email)

XSL-List info and archive <>

EasyUnsubscribe <>  (by
email <> )

Current Thread