msxsl:node-set with default namespace

M

MoonStorm

Hi guys,


Please solve a puzzle I am trying to figure out for some time.
Let's say I have a fragment stored inside a variable, for instance:


<xsl:variable name="layoutSettings">
<module>
<size>345</size>
<title>whatever</title>
</module>
</xsl:variable>


My standard namespaces look like this:
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Tra­nsform"
xmlns:msxsl="urn:schemas-micro­soft-com:xslt">


The node-set function behaves as expected.
The trouble appears when I try to add a default namespace to the
xsl:stylesheet declaration. A
select="msxsl:node-set($layout­Settings)/module/title" will return
nothing.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,999
Messages
2,570,245
Members
46,839
Latest member
MartinaBur

Latest Threads

Top