[uf-discuss] [rel-tag] File extensions (was Re: Operator & AUMP bugs...)

Brian Suda brian.suda at gmail.com
Sat Feb 3 04:33:56 PST 2007

On 2/3/07, Ben Buchanan <microformats at 200ok.com.au> wrote:
> Hi all,
> Just pulling this out to a new thread, since it's a bit buried and
> confusing where it was.
> > I'm pretty sure I'm doing the right thing here:
> > - the last path component [1]
> > - ignore trailing slashes [2]
> ...
> OK, I need to ask this... can a tag path include a file extension?
> I've had a look around and can't find a definitive answer - the wiki
> suggests that no, the tag target URL cannot end in a file extension.

--- the spec says:
... the last segment of the path portion of the URI (after the final
"/" character) contains the tag value.

What that string is, is irrelavant. It could be /file/my.pdf and the
tag would be "my.pdf" it could be /downloads/my.big.file.pdf and the
tag would be "my.big.file.pdf". A tag is everything after the last
slash (unless the last char is a slash). So if that is a file or a
folder, or a file that does not have an extention, or a folder that
has a '.' in it's name.

So YES it will include the file extention, there are no special rules
for spliting/ignoring/etc on '.' or other characters.

Feel free to add that to the wiki on the rel-tag-faqs


brian suda

More information about the microformats-discuss mailing list