[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Namespace problem

Subject: Namespace problem
From: "Uslu, Cihan Y (MED)" <Cihan.Uslu@xxxxxxxxxx>
Date: Wed, 24 Oct 2001 16:21:44 -0500
visio namespace
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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.