[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Namespace problem
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|