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

Re: Detecting a closing tag in xslt

Subject: Re: Detecting a closing tag in xslt
From: "Jon Gorman" <jonathan.gorman@xxxxxxxxx>
Date: Thu, 4 May 2006 09:52:49 -0500
Re:  Detecting a closing tag in xslt
On 5/4/06, Tech Savvy <tecsavvy@xxxxxxxxx> wrote:
Hi:

I have an xml file like this:

<list1>

......
</list1>

<graphic>

</graphic>

Is there a way to detect the closing tag </list1> in XSLT?

Ummm, no. That's the point of the underlying model. Things get read into the parser, then the processor deals with the tree of elements, attributes, and other types of node. That being said, there might be some tricky way to force it XSLT 2.0. If you want to use a streaming model, there's SAX.

Why do you think you need to see the closing tag?  Odds are there's a
way to do what you want in XSLT.

Jon Gorman

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.