[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] namespace and XPath question
I am trying to use this XSL:
<?xml version="1.0" ?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:output method="xml" version="1.0" indent="yes" encoding="UTF-8"/> <xsl:template match="/"> <PO> <BuyerOrderNumber> <xsl:value-of select="//Order/OrderHeader/OrderNumber/BuyerOrderNumber"/> </BuyerOrderNumber> </PO> </xsl:template> </xsl:stylesheet> to translate this XML:
However, I only get this (not able to get the value) <?xml version="1.0" encoding="UTF-8"?> <PO> <BuyerOrderNumber></BuyerOrderNumber> </PO> Is there something wrong with my XSL? Do I need to include the xmlns="XCBL30.sox" and how do I do that? Thanks in advance. _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp 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
|