Schematron: Replace on root element not working
This should cover W3C XML Schema, Relax NG and DTD related problems.
			- 
				Patrik
 - Posts: 280
 - Joined: Thu Nov 28, 2013 9:32 am
 - Location: Hamburg/Germany
 - Contact:
 
Schematron: Replace on root element not working
Applying this (simplified) quick fix causes an error in oXygen:
error:
Patrik
			
			
									
									
						Code: Select all
<sqf:fix id="test">
  <sqf:description>
    <sqf:title>replace root element</sqf:title>
  </sqf:description>
  <sqf:replace match="/*" select="."/> 
</sqf:fix>Code: Select all
Cannot perform the quick fix: Cannot execute operation: Delete Node. Cause: ro.sync.xml.xpath.g: XPath failed due to: Finding root of tree: the context item is absent- 
				tavy
 - Posts: 396
 - Joined: Thu Jul 01, 2004 12:29 pm
 
Re: Schematron: Replace on root element not working
Hi Patrik,
I added an issue on our issue tracker regarding this problem. It is a particular case and the replace operation needs to be implemented differently.
Best Regards,
Octavian
			
			
									
									I added an issue on our issue tracker regarding this problem. It is a particular case and the replace operation needs to be implemented differently.
Best Regards,
Octavian
Octavian Nadolu
<oXygen/> XML Editor
http://www.oxygenxml.com
						<oXygen/> XML Editor
http://www.oxygenxml.com
			
				Jump to
				
			
		
			
			
	
	- Oxygen XML Editor/Author/Developer
 - ↳ Feature Request
 - ↳ Common Problems
 - ↳ DITA (Editing and Publishing DITA Content)
 - ↳ Artificial Intelligence (AI Positron Assistant add-on)
 - ↳ SDK-API, Frameworks - Document Types
 - ↳ DocBook
 - ↳ TEI
 - ↳ XHTML
 - ↳ Other Issues
 - Oxygen XML Web Author
 - ↳ Feature Request
 - ↳ Common Problems
 - Oxygen Content Fusion
 - ↳ Feature Request
 - ↳ Common Problems
 - Oxygen JSON Editor
 - ↳ Feature Request
 - ↳ Common Problems
 - Oxygen PDF Chemistry
 - ↳ Feature Request
 - ↳ Common Problems
 - Oxygen Feedback
 - ↳ Feature Request
 - ↳ Common Problems
 - Oxygen XML WebHelp
 - ↳ Feature Request
 - ↳ Common Problems
 - XML
 - ↳ General XML Questions
 - ↳ XSLT and FOP
 - ↳ XML Schemas
 - ↳ XQuery
 - NVDL
 - ↳ General NVDL Issues
 - ↳ oNVDL Related Issues
 - XML Services Market
 - ↳ Offer a Service