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

Re: regexs, grouping (?) and XSLT2?

Subject: Re: regexs, grouping (?) and XSLT2?
From: Bruce D'Arcus <bdarcus@xxxxxxxxxxxxx>
Date: Wed, 11 Aug 2004 18:07:42 -0400
Re:  regexs
On Aug 11, 2004, at 11:01 AM, Jeni Tennison wrote:

The first option is to construct a stylesheet that does the
interpretation of your "style file" on-the-fly.

Thanks Jeni -- This is what I want, because easier to manage (also opens up the style language to be used with other programming languages like Perl).


You can access the style file using the document() function and then use information from it in just the same way as you would any other document.

I was actually thinking/hoping to be able to specify a command-line parameter, though am not quite sure how that'd work. Maybe a style file might be named mla.csl, and one would just specify the file minus the extension as a parameter?


Anyway, I can see how to read the style file to get things like variables. Like, if I want to get the "title-before" variable, I can just do:

<xsl:variable name="title-before">
  <xsl:value-of select="cs:title/@before"/>
</xsl:variable>

Right?

But what I don't understand is how I could handle the "biborder" template. So, say my (non-xsl) style file says order should be:

title
origin
location

How do I get the proper <xsl:apply-template select="..."/> order from that?

Bruce

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.