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

Re: WARNING org.xml.sax.SAXParseException: The child a

Subject: Re: WARNING org.xml.sax.SAXParseException: The child axis starting at a text node will never select anything
From: "Kulas, Jack jkulas@xxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 14 May 2014 12:47:23 -0000
Re:  WARNING org.xml.sax.SAXParseException: The child a
Thank you, Michael and Liam, for pointing out the redundancy of my ways. My
XSLT is now leaner and cleaner.

LSI, Inc.
Jacksonville, FL

From: Michael Kay mike@xxxxxxxxxxxx
Sent: Wednesday, May 14, 2014 3:14 AM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re:  WARNING org.xml.sax.SAXParseException: The child axis
starting at a text node will never select anything

On 13 May 2014, at 20:15, Kulas, Jack
rytech.com>> wrote:

I was getting the following warning when I'd run a transformation within
Arbortext Editor 6.1-F000, which uses the Saxon XSLT transformation

WARNING org.xml.sax.SAXParseException: The child axis starting at a text node
will never select anything

When I replaced this template

    <xsl:template match="text()" mode="func">
       <xsl:value-of select="."/>
        <xsl:apply-templates mode="func"/>

The apply-templates is a no-op; it processes the children of the text node,
and there can never be any. If you remove the apply-templates, you get

 <xsl:template match="text()" mode="func">
       <xsl:value-of select="."/>

Which is the default template for text nodes, so it does no harm to delete the
whole thing,

with this one

    <xsl:template match="*" mode="func">
        <xsl:apply-templates mode="func"/>

This template rule does nothing useful because it's the default template for
element nodes.

So you've deleted one redundant template rule and added another redundant
template rule, and the net effect, unsurprisingly, is that your code still

Michael Kay

XSL-List info and
f990ace2916ca6bafb71541bc6aa2990a166846535b4d0b1044> (by email<>)

Disclaimer - This email and any files transmitted with it are proprietary and
may contain privileged or copyright information. You must not present this
message to another party without gaining permission from the sender. If you
are not the intended recipient you must not copy, distribute or use this email
or the information contained in it for any purpose other than to notify us. If
you have received this message in error, please notify the sender immediately,
and delete this email from your system. We do not guarantee that this material
is free from viruses or any other defects although due care has been taken to
minimize the risk. Any views expressed in this message are those of the
individual sender, except where the sender specifically states them to be the
views of LSI.

Current Thread


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.
First Name
Last Name
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.