|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: searching string! Need your help
Norm,
At 09:25 PM 5/21/2002, you wrote: First I would like to thank all of you for all the help you have provided!!! As Stuart pointed out, your document isn't well-formed, which is why you are getting this error. Yet even when you fix this, your technique won't work. This is due to a fundamental misconception you are laboring under with respect to the way XSLT handles a document. By definition, the XSLT code *cannot* "go through the document and find all the <super> tags". This is because it does not see tags at all. A tag in an XML document is merely, in an XSL system, a notation that indicates the beginning of an element. By the time an XSLT processor sees it, the existence of this element has been noted (that's the job of the parser) and the tag is no more. It's the *element* that you match on or "find". You can't find its beginning apart from finding the whole thing -- and when you do, there won't be any tag there. (It'll have a type name, 'super', but no "tag".) You are thinking of XSLT as a string-processing routine. It's not. Spend a few minutes on an introductory XSL tutorial and see if it helps illuminate things. Concentrate your attention on the XPath (XSLT) data and processing models. Once you get the hang of it you'll find it's a very powerful way of working, and fun too. Enjoy! Wendell ====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ====================================================================== XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
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
|

Cart








