Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Access on element on XML document by XSLT.

From: "Joe Fawcett" <joefawcett@---------.------>
To: NULL
Date: 1/21/2008 1:57:00 PM

"guoqi zheng" <no@s...> wrote in message 
news:9fd53bcba51b4677bb9d9bc2a2c0c14e@n......
> Dear Sir,
>
> I have below XML file
> ------------ XML ------------
> <tcm:Content>
>    <Content xmlns="uuid:ACAB60FE-A0C2-4C97-BC61-914072147396">
> <Question>Aandelenfonds</Question>
> </Content>
> </tcm:Content>
> ------------ end of XML --------
>
> I am trying to select the value on <Question> by XSLT, I used the value of
> tag as below
>
> <xsl:value-of select="tcm:Content/Content/Question"/>
>
> Apparently, it does not work out because of the
> xmlns="uuid:ACAB60FE-A0C2-4C97-BC61-914072147396".
>
> What should I do here?
>
> regards,
>
> Guoqi Zheng
> http://www.ureader.com
>
> url:http://www.ureader.com/gp/1629-1.aspx

The XML doesn't have the tcm prefix mapped to a namespace URI so your 
selection shouldn't work anyway bit assuming there is something you aren't 
showing then you need to read about the default namespace. See 
http://www.dpawson.co.uk/xsl/sect2/N5536.html especially numbers 13 and 23.

-- 

Joe Fawcett (MVP - XML)

http://joe.fawcett.name




transparent
Print
Mail
Digg
delicious
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent