This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Namespace problem
- To: xsl-list at lists dot mulberrytech dot com
- Subject: [xsl] Namespace problem
- From: "Uslu, Cihan Y (MED)" <Cihan dot Uslu at med dot ge dot com>
- Date: Wed, 24 Oct 2001 16:21:44 -0500
- Reply-To: xsl-list at lists dot mulberrytech dot com
What is wrong with this Stylesheet?
The problem is this: When I apply the stylesheet, I get no results
unless I remove the namespace from the XML document.
Thank you for your help.
-------------------------------XSL--------------------------
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:msxsl="urn:schemas-microsoft-com:xslt"
xmlns:user="urn:schemas-microsoft-com:office:visio"
version="1.0">
<xsl:template match="/">
<div class="tablecelltext">
<font size="+2"><b><xsl:value-of
select="/VisioDocument/Pages/Page/Shapes/Shape[@NameU='Application
name']/Text"></xsl:value-of>
</b></font>
<br/>
<xsl:if
test="string-length(/VisioDocument/Pages/Page/Shapes/Shape[@NameU='URL']
/Text) = 0"><![CDATA[--]]></xsl:if>
<xsl:value-of
select="/VisioDocument/Pages/Page/Shapes/Shape[@NameU='URL']/Text"></xsl
:value-of>
</div>
<br/>
</xsl:template>
</xsl:stylesheet>
-------------------------XML-------------------------------------
<?xml version='1.0' encoding='utf-8' ?>
<?integrity app='Visio' version='10.0' buildnum='525' metric='0'
key='16DD6B55ADAB3C6D5CB21049772E1390C41587654906493A93ACE652F54F3694DF9
45C98D1A071948AD9523EAF28F53723120D1CF53B993EA67590179C4BC811'
keystart='261' ?>
<VisioDocument xmlns='urn:schemas-microsoft-com:office:visio'>
<Pages>
<Page ID='0' NameU='Page-1' ViewScale='-2' ViewCenterX='4.25'
ViewCenterY='7.90625'>
<Shapes>
<Shape ID='1' NameU='Application name' Type='Group' Master='0'>
<Text><cp IX='0'/><pp IX='0'/>BST</Text>
</Shape>
</Shapes>
</Page>
</Pages>
</VisioDocument>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list