Subject: elements in a namespace From: "G. Hussain Chinoy" <hussain@xxxxxxxxxxxxxxx> Date: Fri, 4 Jun 1999 02:01:55 -0500 (CDT) |
I have a small xml document which has a namespace defined. I feel a bit daft... I don't know how to get at them! should something like this work? <xsl:template match="/Person"> <xsl:for-each select="./Identity/Name"> <xsl:value-of select="."/> </xsl:for-each> </xsl:template> or should it be ... match="/ghc:Person"> ...? maybe it's just too late but I feel like I'm missing something. powers.xml <?xml version="1.0"?> <Powers xmlns:ghc="urn:myElements"> <ghc:Person> <ghc:Identity> <ghc:Name>Dr. Evil</ghc:Name> <ghc:Kitties>1</ghc:Kitties> </ghc:Identity> </ghc:Person> <ghc:Person> <ghc:Identity> <ghc:Name>Mini Me</ghc:Name> <ghc:Kitties>1</ghc:Kitties> </ghc:Identity> </ghc:Person> </Powers> thanks h XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: Using XSLT to create an XHTML d, Francis Norton | Thread | Re: elements in a namespace, Francis Norton |
Re: XML/XSL and ASP/IIS, James Tauber | Date | Re: Another variable question, Christian NENTWICH |
Month |