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

XSL ConstantRefs and MacroArgRefs?

  • From: Tyler Baker <tyler@i...>
  • To: xml-dev@i...
  • Date: Fri, 18 Sep 1998 02:55:01 -0400

macro en xsl
For attribute value templates as well as for xsl:value-of actions the
spec states:

 "It is an error to refer to a macro argument that has not been
declared."

The only unclear thing is whether or not this means that the macro
argument has to be declared in a define-macro element that is previous
to the template element in which the MacroArgRef occurs.  In other
words, can you declare all of your constant and define-macro statements
at the end of the XSL stylsheet.

This is important to know because it basicly defines whether you can
parse attribute value templates within attribute values of the
stylesheet in a one-pass or a two-pass fashion.  If you can assume that
all define-constant and define-macro expressions are at the beginning of
the stylesheet and follow the similiar construction rules to entities in
DTD's, then all of this can be done in one-pass.  Otherwise multiple
passes are required.  If this is the case, perhaps in the XSL DTD, the
stylesheet elementdecl should be changed from:

<!ELEMENT xsl:stylesheet
 (xsl:import*,
  (xsl:include
  | xsl:id
  | xsl:strip-space
  | xsl:preserve-space
  | xsl:define-macro
  | xsl:define-attribute-set
  | xsl:define-constant
  | xsl:template)*)
>

to something like:

<!ELEMENT xsl:stylesheet
 (xsl:import*,
  (xsl:id
  | xsl:strip-space
  | xsl:preserve-space
  | xsl:define-macro
  | xsl:define-attribute-set
  | xsl:define-constant)*,
  (xsl:include
  | xsl:template)*)
>

Tyler


xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@i...
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To (un)subscribe, mailto:majordomo@i... the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@i... the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@i...)


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
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

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.