Re: including content

Adrian Nussbaum <[email protected]>
Newsgroups gmane.comp.cms.bitflux.general
Message-ID <[email protected]>
hi

i come back to the xinclude-question.
i tried some things... but it didn't work that well...

on my post a looong time ago you answered:

> Yep. And then you have different possibilities to include this.   
> One way
> is to use xinclude, which works like a php include:
>
>     <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
> href="../teaser.xml#xmlns(xhtml=http://www.w3.org/1999/xhtml) 
> xpointer(/xhtml:html/xhtml:body/xhtml:div)"
> parse="xml"/>
>
> or document() in the xslt
>
> <xsl:copy-of
> select="document('../teaser.xml')/xhtml:html/xhtml:body/xhtml:div"/>
>
> Or, if you need something more dynamic, with portlets, from the  
> blog.xsl:
>
>    <xsl:for-each
> select="document('portlet://blog/rss.xml')/bx/plugin/xhtml:html/ 
> xhtml:body/xhtml:div[@class='entry'
> and position() &lt; 6]">
>
> chregu


if i choose the first possiblity: can i put this "anywhere" in my  
master.xsl-file? right?
your "teaser.xml"-example: is this a "normal" xhtml-ressource,  
created in the admin-interface?
how do i have to set the href-URL, if my doc (xhtml) is in the root?

adrian
-- 
bitflux-cms mailing list
[email protected]
http://lists.bitflux.ch/cgi-bin/listinfo/bitflux-cms
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.