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

Re: How to strip off all <xsd:annotation> ...</xsd.an

Subject: Re: How to strip off all <xsd:annotation> ...</xsd.annotation> tags
From: Martin Honnen <Martin.Honnen@xxxxxx>
Date: Wed, 12 Aug 2009 14:59:05 +0200
Re:  How to strip off all <xsd:annotation>  ...</xsd.an
Ben Stover wrote:

thank you for your suggestion. Unfortunately your script show the following error (when running with Saxon):

Saxon 9.1.0.7J from Saxonica
Java version 1.5.0_06
Warning: at xsl:stylesheet on line 5 column 18 of stripannotationtags.xsl:
  Running an XSLT 1.0 stylesheet with an XSLT 2.0 processor
Stylesheet compilation time: 390 milliseconds
Processing file:/D:/xslt/Saxon/strip%20annotation%20tags/testsource.xsd
Building tree for file:/D:/xslt/Saxon/strip%20annotation%20tags/testsource.xsd using class net.sf.saxon.tinytree.TinyBuilder
Tree built in 93 milliseconds
Tree size: 258 nodes, 3948 characters, 82 attributes
Loading net.sf.saxon.event.MessageEmitter
Error on line 10 of stripannotationtags.xsl:
  XTDE0410: An attribute node (targetNamespace) cannot be created after the children of the
  containing element
  at xsl:apply-templates (file:/D:/xslt/Saxon/strip%20annotation%20tags/stripannotationtags.xsl#11)
     processing /xsd:schema/@targetNamespace
  in built-in template rule
Transformation failed: Run-time errors were reported
Press any key to continue . . .


Do you know what's wrong?

I can't explain that error. And I have now tried the stylesheet against the schema http://www.w3.org/2001/xml.xsd and it processes that without errors.
Can you provide a minimal but complete XML input document that causes that error?



--


	Martin Honnen
	http://msmvps.com/blogs/martin_honnen/

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.