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

RE: Using XPath expressions in modes

Subject: RE: Using XPath expressions in modes
From: Oliver Becker <obecker@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 25 Apr 2001 09:34:43 +0200 (MET DST)
using parameters in xpath expression
Hi, 

the following is a scenario, which might possibly related to the question
of dynamic modes.

Suppose I have a given DTD and a stylesheet from someone, that transforms
valid documents into HTML or something else (for example DocBook or
xmlspec). I think it's not important to know, how the provided stylesheet
works in detail.

Ok, now I extend the DTD (e.g. by using parameter entities) and of
course extend the stylesheet, too:

<xsl:stylesheet ...>

<xsl:include href="original.xsl" />

<xsl:template match="added-element">
   ...
</xsl:template>

</xsl:stylesheet>

To be sure I can add a "catch all" template, too:

<xsl:template match="*">
   <xsl:message><xsl:value-of select="name()"> not processed</xsl:message>
</xsl:template>

So the problem is: if the included stylesheet uses modes to process the
input, my templates wont be used. I have no way to find out, for which
modes I need to provide my additional templates, except I look into the
stylesheet code.

Any ideas?
Cheers,
Oliver

PS: After writing this mail I found a similar one here:
    http://lists.w3.org/Archives/Public/xsl-editors/2001JanMar/0110.html


/-------------------------------------------------------------------\
|  ob|do        Dipl.Inf. Oliver Becker                             |
|  --+--        E-Mail: obecker@xxxxxxxxxxxxxxxxxxxxxxx             |
|  op|qo        WWW:    http://www.informatik.hu-berlin.de/~obecker |
\-------------------------------------------------------------------/


 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.