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

RE: Finding Untagged content in XML

Subject: RE: Finding Untagged content in XML
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Tue, 17 Feb 2009 12:17:36 -0000
RE:  Finding Untagged content in XML
Try:

assert="not(.//text()[contains(.,'Figure')][not(parent::figure)])"/>


Michael Kay
http://www.saxonica.com/
 

> -----Original Message-----
> From: Ganesh Babu N [mailto:nbabuganesh@xxxxxxxxx] 
> Sent: 17 February 2009 11:12
> To: XSL; SVRL
> Subject:  Finding Untagged content in XML
> 
> Dear All,
> 
> I am writing a schematron validation in which I want to find 
> all untagged content. Suppose Figure 1 is there, it should be 
> tagged as
> 
> <p>...................... <figure id="F1">Figure 1</figure> 
> .....................</p>. If not I should raise an error.
> 
> When i use the following expression it is showing the tagged one also.
> 
> <assert test="not(contains(.,' Figure'))">
> 
> In perl we will write this as [^>]Figure. Please let me know 
> how to achieve this in XSLT 2.0.
> 
> Regards,
> Ganesh

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.