W3C home > Mailing lists > Public > www-voice@w3.org > April to June 2003

Re: alias attribute of the ruleref element - current SRGS spec

From: Krause, Stefan <Stefan.Krause@Scansoft.com>
Date: Tue, 1 Apr 2003 03:05:49 -0500
Message-ID: <1057787420.IAA22192@phantom.w3.org>
To: "'jmurphy@themurph.net'" <jmurphy@themurph.net>
Cc: "'www-voice@w3.org'" <www-voice@w3.org>

Jim,

Thank you for your comment on SRGS. I'm sorry for the delay in
replying.

(This is the reply from the Voice Browser Working Group to
http://lists.w3.org/Archives/Public/www-voice/2002JulSep/0027.html)

Alias names were removed from the spec because the group had the
impression that this feature didn't add any value. In fact, if you
want to have a shorthand name for a uri you can just define a rule
that does nothing more than declaring an "alias name", for example:

&lt;rule id="myAlias"&gt;
    &lt;ruleref uri="http://www.example.com/some-very-long-path"/&gt;
&lt;/rule&gt;

If you put this "alias declaration" into your grammar you can replace
each occurrence of
&lt;ruleref uri="http://www.example.com/some-very-long-path#rule"/&gt;
with
&lt;ruleref uri="#myAlias"/&gt;

Whatever syntax you use for an alias declaration, you will always
have to write at least the full uri and its alias name. In the group's
opinion the (very small) overhead caused by the usage of the rule and
the ruleref elements didn't justify the introduction of a separate
element and attribute for aliases.

If you have any further questions, please feel free to ask.

Regards,
Stefan Krause (ScanSoft)
on behalf of the Voice Browser Working Group
Received on Tuesday, 1 April 2003 03:05:20 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 30 October 2006 12:48:58 GMT