[ You are here: XTF -> Tag Reference -> Common Parser Input Tags ]

Common Parser Input Tags


The following tags make up the XML input for the Query Router, Query Parser, and Document Request Parser stylesheets. They constitute a simple XML representation of the query URL supplied to the crossQuery or dynaXML servlet.

Container Tag

This tag is the outermost tag for the XML input fragment sent to the router or parser stylesheet for translation. It has the form:
<parameters>
    ParameterBlock
    ParameterBlock
         …
</parameters>

Parameter Block Tag

This tag is the XML input to the parser for a single parameter in a user query URL. It has the form:
<param name="ParamName" value="ParamValue">
    Token | Phrase
    Token | Phrase
         …
</param>
where
name="ParamName" is the name of the parameter extracted from the original query URL.
value="ParamValue" is the original text in the query URL that is assigned to the specified parameter.
Note that each of the parameters from the query URL is also available as a standard XSL parameter with the form:
<xsl:param name="ParamName" select="DefaultValueIfNotInURL"/>
This allows query parameters to be accessed either through the standard template driven XML or through stylesheet parameters.

Token Tag

This tag identifies a single word or token taken from the query URL. It has the form:
<token value="Word" isWord="YesOrNo"/>
where
value="Word" is the actual word or symbol extracted from the URL.
isWord="YesOrNo" identifies whether the token is a word (isWord="yes") or a punctuation symbol (isWord="no".)

Phrase Tag

This tag identifies a literal phrase taken from the query URL. It has the form:
<phrase value="StringOfWords">
    Token
    Token
      …
</phrase>
 
where
value="StringOfWords" is the entire phrase extracted from the URL as a single string.
Token, Token... is the original phrase broken down into one or more Token Tags (see above), one for each word or symbol in the phrase.)