Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
How to get EAs in XSL template
FredGravel
HI
I am looking at migrating my old tpl to xsl but can t find info about getting the EAs
thanks
Find more posts tagged with
Comments
Rick Poulin
By default, you can't. Your options are to either
a) implement your own CSPTCompiler that combines the EAs with the DCR in the XML datasource that is ultimately fed to the XSL; or
b) use Xalan's mechanism for talking to Java classes.. but even then, encapsulating the call into a single method that somehow gets the context from somewhere isn't obvious.
The former is supported but is a lot of work. The latter is straddling the supported line, because you're introducing a dependency on a framework that Iwov may ditch in the future.
Sample for b):
http://support.sms-fed.com/support/docs/DOC-1260
Documentation for b):
http://xml.apache.org/xalan-j/extensions.html#java-namespace
FredGravel
To have access to the dcr vpath from the java method is there another way that putting an hidden field on the DCR and on a save handler synchronizing it.
This is the only way I found doing this
Thanks
nipper
Of course if someone changes the EA without saving the DCR you are SOL.
Keeping 2 copies of the same data is a recipe to get data out of sync.
Do you use LSCS/LSDS ?
FredGravel
No am i not using LSDS/LSCS
This is xslt on PT
What I did for right now is create an hidden attribute on the DCR called VPATH and set it has a variable
here is my XSLT as right now
[PHP]
#include virtual="/includes/servcan/op-so/fegc-gcwu/tpl/servcan/eng/gateway/1col/block2.html"
#include virtual="/includes/servcan/op-so/fegc-gcwu/tpl/servcan/eng/gateway/1col/block3.html"
#include virtual="/includes/servcan/op-so/fegc-gcwu/tpl/servcan/eng/gateway/1col/block4.html"
#include virtual="/includes/servcan/op-so/fegc-gcwu/tpl/servcan/eng/gateway/1col/block5.html"#include virtual="/includes/servcan/op-so/fegc-gcwu/tpl/servcan/eng/gateway/1col/block6.html"
[/PHP]