[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: XInclude Support


sitemap xinclude
Hi

On Fri 09-May-2003 at 06:48:27PM -0400, Daniel Veillard wrote:
> 
> Hum, XInclude spec requires recursion so I don't understand that
> limitation statement,

You mean this?

  Also note that contrarily to the XInclude specification Petal DOES
  allow recursive includes up to $Petal::MAX_INCLUDES. This behavior
  is very useful when templating structures which fit well recursive
  processing such as trees, nested lists, etc. 

  http://search.cpan.org/author/JHIVER/Petal-0.92/lib/Petal.pm#limitations

My understand is that is doesn't comply with this:

  http://www.w3.org/TR/xinclude/#loops

Because it allows, for example, a fragment of XML, say a bit of a
template for a sitemap to have a XInclude pointing to itself. 

If the following is in a file called nesting.html and it includes
itself then I understand that this is not OK according to the spec.

<li>
  <a 
    href="#"
    petal:attributes="href child/uri;"
    petal:inner="child/title"
  >Child Document Title</a>
  <ul 
    petal:set="children child/children"
    petal:if="children; here/continue_sitemapping child"
    petal:repeat="child children"
  >
  <xi:include href="nesting.html" />
  </ul>
</li>

I have copied this to the Petal list, which I think is open, so it
is fine to keep the CC if there are any replies to this.

Chris

-- 
Chris Croome                               <chris@w...>
web design                             http://www.webarchitects.co.uk/ 
web content management                               http://mkdoc.com/   

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.