|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] elements in a namespace
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
|
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
|

Cart








