OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   XSL ConstantRefs and MacroArgRefs?

[ Lists Home | Date Index | Thread Index ]
  • From: Tyler Baker <tyler@infinet.com>
  • To: xml-dev@ic.ac.uk
  • Date: Fri, 18 Sep 1998 02:55:01 -0400

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@ic.ac.uk
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To (un)subscribe, mailto:majordomo@ic.ac.uk the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@ic.ac.uk the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@ic.ac.uk)





 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS