[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Friday challenge: XSLT thats creates XPaths for m
Andrew Welch wrote: Hi > <checkXML> > <xml src="file:/C:/test.xml"> > <check>/root[1]/foo[1]/text[1] = 'foo'</check> > <check>/root[1]/foo[1]/@fooatt = 'att'</check> > <check>/root[1]/bar[1]/text[1] = 'bar'</check> > <check>/root[1]/bar[2]/text[1] = 'baz'</check> > </xml> > </checkXML> IMHO, the first step is to define what 'to be meaningfully equivalent' means for two XML documents. Do the whitespace text nodes count? Do all attributes count (think for example about generated IDs)? Do the order of the elements always count? IMHO all those questions cannot be answered without the context of a specific document type. Regards, --drkm ___________________________________________________________________________ Dicouvrez une nouvelle fagon d'obtenir des riponses ` toutes vos questions ! Profitez des connaissances, des opinions et des expiriences des internautes sur Yahoo! Questions/Riponses http://fr.answers.yahoo.com
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|