xsl-list
[Top] [All Lists]

Re: dynamic document() template problem

2005-06-20 12:54:08
My earlier reply was wrong. Sorry about that.

Jay Bryant
Bryant Communication Services
(presently consulting at Synergistic Solution Technologies)




Arian Hojat <arianhojat2000(_at_)yahoo(_dot_)com> 
06/20/2005 02:29 PM
Please respond to
xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com


To
xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
cc

Subject
[xsl] dynamic document() template problem






Hello i am trying to base a template rule off an
attribute in my XML to which chooses nodes to apply 

###my XML###
<include href="fbackground.xml"
nodes="fb/section1/*"/>

###my rule for <include>###
<xsl:apply-templates
select="document(@href)/Document/{(_at_)nodes}"/>

but i get an error with Saxon...
[ERROR]
javax.xml.transform.TransformerConfigurationException:
javax.xml.transform.TransformerException:
javax.xml.transform.TransformerException: A location
step was expected following the '/' or '//' token.
without the {}, i know it will just check to see if it
has an attrbiute, but i would like it to get
intrepeted to
'document(fbackground)/Document/fb/section1/*'



 
____________________________________________________ 
Yahoo! Sports 
Rekindle the Rivalries. Sign up for Fantasy Football 
http://football.fantasysports.yahoo.com

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--




--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>