You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by John Ky <ne...@yahoo.com> on 2000/03/08 13:39:52 UTC
document() in cocoon
Two questions:
Question 1:
Does cocoon allow for a stylesheet to process
data from XML documents other than the source
document?
ie. does it support the XSLT function document()
I guess this question is relevant here only if cocoon
compiles stylesheets (does it? or is it a Xalan
question?)
Question 2:
I was thinking of doing something like this:
<xsl:for-each select="document('data.xml', /xsl-props/style)">
<xsl:value-of select="@name"/>
<xsl:value-of select="@value"/>
</xsl:for-each>
where data.xml contains:
<xsl-props>
<style name="bgcolor" value="red" />
</xsl-props>
where data.xml would contain a few parameters
on how the stylesheet would function.
Is my syntax/use correct? If it is correct,
should I see the "bgcolor red" in my output file?
If not what is the correct use?
Many Thanks
John
__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com
Re: document() in cocoon
Posted by John Ky <ne...@yahoo.com>.
Don't worry ... a little more trial and error gave me a result.
______________
John
__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com