I was at first unable to reference any elements within this XML from my XSLT, as I was unsure how to handle the XML namespace in my XSLT. So I created a new XSLT and dragged the value of CaseNumber onto my XSLT using the Stylus WYSIWYG then viewed the XSLT code to see how it referenced the CaseNumber element. It did it as follows:
The trouble is now if I try and add code to this the intelli-sense does not work. If I type the following:
<xsl:value-of select="a
Then the intelli-sense kicks in and shows vSSOData but not the a:vSSOData which is required. If I use vSSOData then I can continue to type the following:
<xsl:value-of select="vSSOData/
and the intelli-sense kicks in again but does not show the “Results” element which makes sense as vSSOData is not valid. If I go back and type the following:
<xsl:value-of select="a:vSSOData/
Then the intelli-sense shows “Result”, but not a:Result so I would get the same problem over again.
So is this a bug in Stylus Studio or am I doing something wrong? Is there a way around this? Is there some way I can get away with writing my XSLT and not having to use a: on every element and attribute reference? Could I some how reference the a: namespace at the start of my XSLT which then enables me to reference the XML elements and attributes without the a: on every one?