include-pattern-faq

(Difference between revisions)

Jump to: navigation, search
(drafted, added scope Q&A)
Current revision (19:43, 3 January 2009) (view source)
m (Reverted edits by RorelChibo (Talk) to last version by RyanKing)
 
(10 intermediate revisions not shown.)
Line 8: Line 8:
A: No. The [[include-pattern]] is specifically [[include-pattern#scope|scoped]] to the current page by design, both from a "vast majority of use cases" perspective, and a ease of implementation perspective.
A: No. The [[include-pattern]] is specifically [[include-pattern#scope|scoped]] to the current page by design, both from a "vast majority of use cases" perspective, and a ease of implementation perspective.
 +
 +
Including data from external resources raises several issues:
 +
* Unreliable (dependency and if/when the data is available)
 +
* Security (possibly malicious data)
 +
* Invisible (original context of the data is not available)
 +
 +
 +
=== Q: ''What is the normative behavior for an include with a "data" value that does not exist?''===
 +
 +
=== Q: ''Is there an assumption that you should only include one property at a time? What's the expected behavior if, say, my include has an org property, and the including vcard already has an org property?''===
 +
 +
A: This would depend on two factors, if the format can contain multiple instance of the property included, then both are valid. If the format can only take one instance of a property, than the first should be used and subsequent instances ignored.

Current revision

include pattern FAQ

This page document frequently asked questions about the include-pattern. For general questions about microformats see the microformats faq.

Contents


Q: Does include-pattern support for data outside of the current page?

A: No. The include-pattern is specifically scoped to the current page by design, both from a "vast majority of use cases" perspective, and a ease of implementation perspective.

Including data from external resources raises several issues:


Q: What is the normative behavior for an include with a "data" value that does not exist?

Q: Is there an assumption that you should only include one property at a time? What's the expected behavior if, say, my include has an org property, and the including vcard already has an org property?

A: This would depend on two factors, if the format can contain multiple instance of the property included, then both are valid. If the format can only take one instance of a property, than the first should be used and subsequent instances ignored.

include-pattern-faq was last modified: Saturday, January 3rd, 2009

Views