W3C home > Mailing lists > Public > www-html@w3.org > January 2008

Re: Seperate site and document

From: Luca Del Re <info.ldr@arcor.de>
Date: Sun, 20 Jan 2008 12:25:42 +0100
Message-ID: <8384FE35826A44CF8BFE6C4F02BC9511@lucanbvis>
To: "Tushar Kapila" <tushar.kapila@gmail.com>
Cc: <www-html@w3.org>

Thanks for your response.
Of course this is a possibility, but not everyone is able to use PHP, JSP 
and so on.
On the contrary: Templating can help persons, that do not have webspace with 
PHP support to create a navigation without frames.

Maybe this could be a solution:

Extending the sdl-templating processing instruction:
  <?sdl-templating is-template="(false|true)" ignore="(xpath|empty)" ?>
 - The ignore "attribute" can be used to specify elements that shall be 
ignored when templating (via XPath)

So you can then:

1. Create a hyperlink with an ID to a sitemap for old UAs in the document
2. Write a XPath expression to select this ID and assign it to the ignore 
"attribute"

Example:
 <?sdl-templating is-template="false" ignore="//a[@id='sitemap']" ?>
 ....
 <a href="sitemap.xhtml" id="sitemap">Sitemap</a>

Regards
Luca Del Re

----- Original Message ----- 
From: "Tushar Kapila" <tushar.kapila@gmail.com>
To: "Luca Del Re" <info.ldr@arcor.de>
Sent: Sunday, January 20, 2008 5:21 AM
Subject: Re: Seperate site and document



Hello ,
I think its a great idea
About -
Disadvantage: Older browser receive a document without navigation...

- if a basic scripting language is used like JSP or PHP then we can check 
the version of the browser and send the template link or include the 
navigation mark up in the correct place. 
Received on Sunday, 20 January 2008 11:26:34 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:16:13 GMT