You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by Claude Warren <cl...@histio.org> on 2001/10/03 17:48:14 UTC

extension elements

This may be the wrong place to ask but...

Is there a way to place extension elements in the XML document and get
them executed during the XSL processing?  Or do I need to create a
taglibrary to do that?

Claude Warren

Re: extension elements

Posted by Claude Warren <cl...@histio.org>.
I have a number of extension elements that do things like get the system
time, etc.  I would like to be able to place the extension elementes
directly in the XML and have it evaluated in the XSL.

--- xml document --

<document>
	<xenos:time zone="GMT"/>
</document>

--- end of document --

The only thing I can think of to do is to define a tag and in the XSL
execute the xenos:time tag.

<document>
	<time zone="GMT"/>
</document>

---- XSL

<xsl:template match="time">
<xenos:time>
	<xsl:attribute name="zone"><xsl:value-of
select="@zone"/></xsl:attribute>
</xenos:time>
</xsl:template>



"Victor M. Moreno" wrote:
> 
> Hello Claude
> I am using xsl extension element within xsl documents.
> I do not think you may place extension elements in the xml document.
> 
> If you could tell us more about what are your needs we may help you.
> 
> Regards
> 
> Victor
> 
> ----- Original Message -----
> From: "Claude Warren" <cl...@histio.org>
> To: <xa...@xml.apache.org>
> Sent: Wednesday, October 03, 2001 5:48 PM
> Subject: extension elements
> 
> > This may be the wrong place to ask but...
> >
> > Is there a way to place extension elements in the XML document and get
> > them executed during the XSL processing?  Or do I need to create a
> > taglibrary to do that?
> >
> > Claude Warren

Re: extension elements

Posted by "Victor M. Moreno" <vm...@germinus.com>.
Hello Claude
I am using xsl extension element within xsl documents.
I do not think you may place extension elements in the xml document.

If you could tell us more about what are your needs we may help you.

Regards

Victor


----- Original Message ----- 
From: "Claude Warren" <cl...@histio.org>
To: <xa...@xml.apache.org>
Sent: Wednesday, October 03, 2001 5:48 PM
Subject: extension elements


> This may be the wrong place to ask but...
> 
> Is there a way to place extension elements in the XML document and get
> them executed during the XSL processing?  Or do I need to create a
> taglibrary to do that?
> 
> Claude Warren