Hi Russ,
Does the DITA file validate as valid XML with bxmllintb or another similar
checker?
* Chris
From: russurquhart1@xxxxxxxxxxx russurquhart1@xxxxxxxxxxx
<xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Wednesday, September 28, 2022 4:13 PM
To: Xsl-list <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Subject: 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"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
<!-- identity transform -->
<xsl:template match="@*|node()">
<xsl:copy>
<xsl:apply-templates select="@*|node()"/>
</xsl:copy>
</xsl:template>
<xsl:template match="entry/p[1]">
<xsl:apply-templates/>
</xsl:template>
</xsl:stylesheet>
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 18.0.2.1
Stylesheet compilation time: 173.737833ms
Processing
file:/Users/russurquhart_boomi/Downloads/SaxonHE11-4J/Cloud_Object.xml
Using parser
com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$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
file:/Users/russurquhart_boomi/Downloads/SaxonHE11-4J/Cloud_Object.xml
The DITA file is kind of long but I can attach it if needed. I was hoping
someone could provide some insight on this?
Thanks,
Russ
XSL-List info and
archive<https://urldefense.com/v3/__http:/www.mulberrytech.com/xsl/xsl-list__
;!!A4F2R9G_pg!en7NtbvlZSWDSwDLWWq3ImgJ7wNFGIeGfiwQYjYr_di9NvfiqubRgB6dFDfYC5i
ebiMvVZYyvjM-OHnU20bil9JUrqjOuM4DyIdg9dGk3RIAKyRhP3Ii$>
EasyUnsubscribe<https://urldefense.com/v3/__http:/lists.mulberrytech.com/unsu
b/xsl-list/3380743__;!!A4F2R9G_pg!en7NtbvlZSWDSwDLWWq3ImgJ7wNFGIeGfiwQYjYr_di
9NvfiqubRgB6dFDfYC5iebiMvVZYyvjM-OHnU20bil9JUrqjOuM4DyIdg9dGk3RIAKwIeNqUk$>
(by email<>)
|