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

Re: Accounting for Arbitrary Wrappers Without Going Ma

Subject: Re: Accounting for Arbitrary Wrappers Without Going Mad
From: Bill Cohagan <bill.cohagan@xxxxxxxxxxxxx>
Date: Tue, 22 Oct 2002 08:01:55 -0500
change tracking markup
Based on your comment about doing "different processing" based on the input
setting it sounds like you could filter out the markup (or not) depending on
that setting. So you'd have distinct transforms downstream once you've
"forked", but it sounds like you already have that. Also, I think you should
be able to filter based on element namespace, no?

Perhaps I've misunderstood the complexity of your situation, but it seems to
me the above approach is pretty clean.

Regards,
 Bill

>>>>>>>>>>>
Date:	Mon, 21 Oct 2002 17:46:10 -0500
From:	"W. Eliot Kimber" <eliot@xxxxxxxxxx <mailto:eliot@xxxxxxxxxx> >
Subject:	 Accounting for Arbitrary Wrappers Without Going Mad

I'm trying to implement support in my FO style sheet for Epic Editor's 
change tracking markup. This markup is in a unique name space and may be 
wrapped around any element or text to indicate whether the element is 
added or deleted.

Within the scope of paragraphs it's not a big deal because the 
processing in that context is pretty simple. But above the paragraph 
level it gets pretty funky because the presence of the wrappers will 
throw off match statements. I could of course add match options that 
include the Epic change tracking elements, and would do so if that were 
the end of it. Unfortunately, I also want to do different processing 
based on the interaction of the change tracking markup and a parameter 
that's passed in (reflecting the "view change tracking" setting in Epic 
itself).

I can't think of an elegant solution to this sort of problem. An easy 
solution would be to have the XPath matches simply ignore elements in a 
particular name space, but I don't think that's possible. That would at 
least keep the base transform working whether the wrappers were there or 
not. But it wouldn't solve the larger problem of explosion of matches 
and templates.

I'm wondering if there's a general pattern for approaching this type of 
markup other than the brute force method?

Thanks,
Eliot


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.