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

Re: Does the new structure include the same text conte

Subject: Re: Does the new structure include the same text content?
From: "Bauman, Syd s.bauman@xxxxxxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 22 Jan 2021 14:42:35 -0000
Re:  Does the new structure include the same text conte
Hear hear! (Even from DH & XML experts I have been told the data is
consistent, only to find it is not.)

One of my favorite pair of templates looks something like

  <xsl:template match="node()" priority="-12">
    <xsl:processing-instruction name="SBerr">If you loved me you would have
matched me! :-(</xsl:processing-instruction>
  </xsl:template>
  <xsl:template match="@*" priority="-12">
    <xsl:attribute name="loves-me-not" select="'@'||name(.)"
namespace="http://bauman.zapto.org/debug/ns"/>
  </xsl:template>

(Although typically I add some more debugging code, like putting the name of
the current node into the PI, too.)

________________________________
Others have made good suggestions wrt content. A simple first step I tend to
use is a wildcard element template (match="*") which logs anything not already
handled. It's crude but I have found there are sometimes differences between
what the client swears blind is the current schema, and the schema actually in
use :-)

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.