Created
July 12, 2017 12:35
-
-
Save anonymous/761dad5b4270025c9337e17a00791e6d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!--Content Start--> | |
<Properties ComponentID="1498757237049"> | |
<Datum ID="L01" Type="RadioGroup" Name="Which title for links to pages"> | |
<Option Selected="true"> | |
<Display>Title</Display> | |
<Value>0</Value> | |
</Option> | |
<Option> | |
<Display>Rich content title</Display> | |
<Value>1</Value> | |
</Option> | |
</Datum> | |
<Data> | |
<External> | |
<Parameters> | |
<Datum Type="String" Name="Client Content" /> | |
<Datum Type="String" Name="Default Content">templatedata/hank/dialognode/data/robby.xml</Datum> | |
<Datum Type="String" Name="In Context Edition">enable</Datum> | |
<Datum Type="String" Name="Prospect Content" /> | |
<Datum Type="String" Name="RequestHeaders">[$WSPR] = [HTTP/1.1] | |
[User-Agent] = [Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36] | |
[Cookie] = [BNLCSAuvt=4b9c5baec38d4097bff61a1498712def_1498120910761_12326587_1498834926431_2; _ga=GA1.2.1019132053.1495112470; BNLCSADBID=null_3; europolicy=no-set; intelligence=no-set; distributorid=BNLPUB; w1n0er_pub=1327885834.20480.0000; userInformation=suspect; axes=it|PC|world|priv|PC|3a95bce421ab44fba1ba1ac01daa7ab1|] | |
[upgrade-insecure-requests] = [1] | |
[server_name] = [mib-public-green-31-C12-webseald-s00va9937370] | |
[Accept] = [text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8] | |
[Host] = [10.238.41.202] | |
[_WS_HAPRT_WLMVERSION] = [-1] | |
[$WSIS] = [false] | |
[Surrogate-Capability] = [WS-ESI="ESI/1.0+"] | |
[iv-remote-address] = [10.238.37.65] | |
[Via] = [HTTP/1.1 s00va9937370:80] | |
[$WSRA] = [10.238.41.1] | |
[x-bluecoat-via] = [b328d30d6c83c22f] | |
[$WSSC] = [http] | |
[x-iws-via] = [1.1 7F6BDDEC (IWSS)] | |
[Cache-Control] = [max-age=0] | |
[server-name] = [mib-public-green-31-C12-webseald-s00va9937370] | |
[$WSRH] = [10.238.41.1] | |
[Autonomy-Routing-Url] = [http://wwwcollnew.bnl.it] | |
[$WSSN] = [10.238.41.202] | |
[$WSSP] = [80] | |
[Accept-Language] = [en-US,en;q=0.8,it;q=0.6]</Datum> | |
<Datum Type="String" Name="Suspect Content" /> | |
<Datum Type="String" Name="asset" /> | |
<Datum Type="String" Name="axes1">it</Datum> | |
<Datum Type="String" Name="axes2">PC</Datum> | |
<Datum Type="String" Name="axes3">world</Datum> | |
<Datum Type="String" Name="axes4">priv</Datum> | |
<Datum Type="String" Name="customer">lu.bgl.ssc.sitefactory.livesite.crm.CustomerInfo@142a3285</Datum> | |
<Datum Type="String" Name="devFeatAudio" /> | |
<Datum Type="String" Name="devFeatDevice" /> | |
<Datum Type="String" Name="devFeatRetina">false</Datum> | |
<Datum Type="String" Name="devFeatTouch">false</Datum> | |
<Datum Type="String" Name="devFeatVideo" /> | |
<Datum Type="String" Name="devFeatWidth">0</Datum> | |
<Datum Type="String" Name="iw-ls-page-name">hankconvesation</Datum> | |
<Datum Type="String" Name="nodeId">TestHankba4</Datum> | |
<Datum Type="String" Name="siteId">bnl-public</Datum> | |
<Datum Type="String" Name="userType">0</Datum> | |
</Parameters> | |
</External> | |
<Result> | |
<Content dcrname="robby" theme="theme-green" edition-styles="it PC world priv theme-green" linkvalue="/it/PC/world/priv/" siteid="bnl-public" supportedVideo="" supportedAudio="" device="" touch="false" retina="false" width="0" notSupportedMediaMessage="/templatedata/marketing-contents/written/data/unsupportedMediaMessage.xml"> | |
<variation> | |
<dialognode> | |
<dialognodetitle>Mutuo</dialognodetitle> | |
<dialognodecontent>Ecco le alternative che ti propongo</dialognodecontent> | |
<exitarch> | |
<dialogleaf> | |
<leafcontent>Informazioni sui conti correnti</leafcontent> | |
</dialogleaf> | |
</exitarch> | |
<exitarch> | |
<dialogleaf> | |
<leafcontent>Info Surroga</leafcontent> | |
</dialogleaf> | |
</exitarch> | |
<exitarch> | |
<dialogleaf> | |
<leafcontent>Sprint3 TEST</leafcontent> | |
</dialogleaf> | |
</exitarch> | |
<exitarch> | |
<dialognode> | |
<exitarchresponse>A che ora apre la banca</exitarchresponse> | |
<dialognoderef dcrpath="/templatedata/hank/dialognode/data/robby2.xml" type="hank/dialognode"> | |
<Content dcrname="robby2"> | |
<variation> | |
<dialognode> | |
<dialognodetitle>Secondo Livello</dialognodetitle> | |
<dialognodecontent>E adesso cosa vuoi?</dialognodecontent> | |
<exitarch> | |
<dialogleaf> | |
<leafcontent>Ho detto nulla</leafcontent> | |
</dialogleaf> | |
</exitarch> | |
<exitarch> | |
<dialognode> | |
<exitarchresponse>Ecchime</exitarchresponse> | |
<dialognoderef dcrpath="/templatedata/hank/dialognode/data/robby3.xml" type="hank/dialognode"> | |
<Content dcrname="robby3"> | |
<variation> | |
<dialognode> | |
<dialognodetitle>Terzo Livello</dialognodetitle> | |
<dialognodecontent>Pippo</dialognodecontent> | |
<exitarch> | |
<dialogleaf> | |
<leafcontent>Pluto</leafcontent> | |
</dialogleaf> | |
</exitarch> | |
</dialognode> | |
</variation> | |
<Language>it</Language> | |
<categorizationlist /> | |
<usertype>0</usertype> | |
<expiryDateItem /> | |
<clearDate /> | |
</Content> | |
</dialognoderef> | |
</dialognode> | |
</exitarch> | |
</dialognode> | |
</variation> | |
<Language>it</Language> | |
<categorizationlist /> | |
<usertype>0</usertype> | |
<expiryDateItem /> | |
<clearDate /> | |
</Content> | |
</dialognoderef> | |
</dialognode> | |
</exitarch> | |
<exitarch> | |
<dialogleaf> | |
<leafcontent>Nuovo Leaf</leafcontent> | |
</dialogleaf> | |
</exitarch> | |
</dialognode> | |
</variation> | |
<Language>it</Language> | |
<categorizationlist /> | |
<usertype>0</usertype> | |
<expiryDateItem /> | |
<clearDate /> | |
</Content> | |
</Result> | |
</Data> | |
</Properties> | |
<!--Content Stop--> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" > | |
<xsl:template match="/"> | |
<xsl:if test="//@preview-mode = 'true'"> | |
<script type="text/javascript"> | |
if(parent.onComponentLoaded){ | |
parent.onComponentLoaded('<xsl:value-of select="//@edition-styles"/>'); | |
} | |
</script> | |
</xsl:if> | |
<!-- <xsl:comment>Content Start</xsl:comment> --> | |
<!--<xsl:copy-of select="." /> --> | |
<flow> | |
<xsl:attribute name="title"> | |
<xsl:value-of select="/Properties/Data/Result/Content/variation/dialognode/dialognodetitle"/> | |
</xsl:attribute> | |
<xsl:apply-templates select="/Properties/Data/Result/Content/variation/dialognode"/> | |
</flow> | |
<!-- <xsl:comment>Content Stop</xsl:comment> --> | |
</xsl:template> | |
<xsl:template match="dialognode"> | |
<dialognode> | |
<xsl:attribute name="type"> | |
<!-- | |
<xsl:if test="count(./exitarch) > 1"> | |
<xsl:text>prompt:choice</xsl:text> | |
</xsl:if> | |
--> | |
<xsl:choose> | |
<xsl:when test="count(./exitarch/dialogleaf) > 1"> | |
<xsl:text>prompt:choice</xsl:text> | |
</xsl:when> | |
<xsl:otherwise> | |
<xsl:text>prompt:text</xsl:text> | |
</xsl:otherwise> | |
</xsl:choose> | |
</xsl:attribute> | |
<xsl:attribute name="id"> | |
<!-- <xsl:value-of select="position()-1" /> --> | |
<xsl:number format="0000" level="any" count="/"/> | |
<!-- <xsl:value-of select="generate-id()" /> --> | |
<!-- <xsl:value-of select="count(ancestor::node)" /> --> | |
</xsl:attribute> | |
<xsl:attribute name="title"> | |
<xsl:value-of select="./dialognodecontent"/> | |
</xsl:attribute> | |
<!-- <xsl:value-of select="current()"/>--> | |
<xsl:apply-templates select="./exitarch"/> | |
<!--<xsl:if test="./exitarch != ''"> | |
<xsl:for-each select="//exitarch"> | |
<xsl:comment>beccato exitarch</xsl:comment> | |
<xsl:comment>beccato exitarch sicuro</xsl:comment> | |
<xsl:apply-templates select="/Properties/Data/Result/Content/variation/dialognode/exitarch"/> | |
</xsl:for-each> | |
</xsl:if>--> | |
</dialognode> | |
</xsl:template> | |
<!-- | |
<xsl:template match="exitarch"> | |
<xsl:comment>MATCH exitarch</xsl:comment> | |
<xsl:if test="(dialogleaf)"> | |
<xsl:comment>MATCH dialogleaf</xsl:comment> | |
<xsl:apply-templates select="//dialogleaf/leafcontent"/> | |
</xsl:if> | |
<xsl:if test="(dialognode)"> | |
<xsl:comment>MATCH dialognode</xsl:comment> | |
<xsl:if test="./dialognode/dialognoderef != ''"> | |
<xsl:comment>MATCH dialognoderef</xsl:comment> | |
<xsl:apply-templates select="./dialognode/dialognoderef/Content/variation/dialognode"/> | |
</xsl:if> | |
</xsl:if> | |
</xsl:template> | |
--> | |
<xsl:template match="dialognode/dialognoderef/Content/variation/dialognode"> | |
<!-- <xsl:comment>MATCH new dialognode </xsl:comment> --> | |
<dialognode> | |
<xsl:attribute name="type"> | |
<!-- | |
<xsl:if test="count(./exitarch) > 1"> | |
<xsl:text>prompt:choice</xsl:text> | |
</xsl:if> | |
--> | |
<xsl:choose> | |
<xsl:when test="count(./exitarch/dialogleaf) > 1"> | |
<xsl:text>prompt:choice</xsl:text> | |
</xsl:when> | |
<xsl:otherwise> | |
<!-- <xsl:text>prompt:text</xsl:text> --> | |
<xsl:choose> | |
<xsl:when test="count(./exitarch/dialognode) > 0"> | |
<xsl:text>prompt:choice</xsl:text> | |
</xsl:when> | |
<xsl:otherwise> | |
<xsl:text>prompt:text</xsl:text> | |
</xsl:otherwise> | |
</xsl:choose> | |
</xsl:otherwise> | |
</xsl:choose> | |
</xsl:attribute> | |
<xsl:attribute name="id"> | |
<!-- <xsl:number/> --> | |
<xsl:number format="0000" level="any"/> | |
<!-- <xsl:value-of select="generate-id()" /> --> | |
<!-- <xsl:value-of select="position()-1" /> --> | |
<!-- <xsl:value-of select="count(ancestor::node)" /> --> | |
</xsl:attribute> | |
<xsl:attribute name="title"> | |
<xsl:value-of select="./dialognodecontent"/> | |
</xsl:attribute> | |
<!-- <xsl:value-of select="current()"/>--> | |
<!-- <xsl:comment>MATCH new exitarch </xsl:comment> --> | |
<xsl:apply-templates select="./exitarch"/> | |
<!--<xsl:if test="./exitarch != ''"> | |
<xsl:for-each select="//exitarch"> | |
<xsl:comment>beccato exitarch</xsl:comment> | |
<xsl:comment>beccato exitarch sicuro</xsl:comment> | |
<xsl:apply-templates select="/Properties/Data/Result/Content/variation/dialognode/exitarch"/> | |
</xsl:for-each> | |
</xsl:if>--> | |
</dialognode> | |
</xsl:template> | |
<xsl:template match="exitarch"> | |
<!-- <xsl:comment>MATCH exitarch</xsl:comment> --> | |
<!-- <xsl:if test="count(/Properties/Data/Result/Content/variation/dialognode/exitarch) > 1"> | |
<xsl:variable name="exit"> | |
<xsl:value-of select="./Value" /> | |
</xsl:variable> | |
</xsl:if> --> | |
<xsl:if test="(dialognode)"> | |
<!-- <xsl:comment>MATCH dialognode</xsl:comment> --> | |
<xsl:if test="./dialognode/dialognoderef != ''"> | |
<!-- <xsl:comment>MATCH dialognoderef</xsl:comment> --> | |
<xsl:apply-templates select="./dialognode/dialognoderef/Content/variation/dialognode"/> | |
</xsl:if> | |
</xsl:if> | |
<xsl:if test="(dialogleaf)"> | |
<!-- <xsl:comment>MATCH dialogleaf</xsl:comment> --> | |
<xsl:apply-templates select="dialogleaf"/> | |
</xsl:if> | |
</xsl:template> | |
<xsl:template match="dialogleaf"> | |
<!-- <xsl:comment>MATCH inside dialogleaf</xsl:comment> --> | |
<leaf> | |
<xsl:attribute name="id"> | |
<xsl:number format="0000" level="any"/> | |
<!-- <xsl:value-of select="generate-id()" /> --> | |
<!-- <xsl:value-of select="position() -1 " /> --> | |
<!-- <xsl:value-of select="count(ancestor::node)" /> --> | |
</xsl:attribute> | |
<xsl:attribute name="title"> | |
<xsl:value-of select="./leafcontent"/> | |
</xsl:attribute> | |
</leaf> | |
</xsl:template> | |
<!-- trasformata --> | |
<!-- | |
<xsl:template match="node()|@*"> | |
<xsl:comment>Trasformata Start</xsl:comment> | |
<xsl:copy> | |
<xsl:apply-templates select="node()|@*"/> | |
</xsl:copy> | |
<xsl:comment>Trasformata Stop</xsl:comment> | |
</xsl:template> | |
<xsl:template match="Properties/Data/Result/Content/variation/dialognode/exitarch"> | |
<xsl:comment>Trasformata Start 2</xsl:comment> | |
<ExitArch> | |
<xsl:apply-templates select="@*|node()"/> | |
</ExitArch> | |
<xsl:comment>Trasformata Stop 2</xsl:comment> | |
</xsl:template> | |
<xsl:template match="/"> | |
<Ciccio> | |
<xsl:apply-templates select="@*|node()"/> | |
</Ciccio> | |
</xsl:template> | |
<xsl:template match="Content/variation/dialognode"> | |
<DialogNode> | |
<xsl:apply-templates select="@*|node()"/> | |
</DialogNode> | |
</xsl:template> | |
<xsl:template name="DialogNodeTemplate"> | |
<Address> | |
<Dialognodetitle><xsl:value-of select="dialognodetitle" /></Dialognodetitle> | |
<Dialognodecontent><xsl:value-of select="dialognodecontent" /></Dialognodecontent> | |
</Address> | |
</xsl:template> | |
--> | |
</xsl:stylesheet> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment