
Signature
Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/
Hi Martin,
Thanks, I know the problem now. But how can I change my code? Or do I
need to change xsl document? How, for instance, I can address this
<xsl:value-of
select="/Primetime_Screening/Report/Chief_Complaint/Narrative" />?
Thanks,
Alexander Kleshchevnikov
www.klalex.com
Martin Honnen написав:
> > Xml document contains the following namespace:
> >
[quoted text clipped - 4 lines]
> proper way to match/select elements in the default namespace:
> <http://www.faqts.com/knowledge_base/view.phtml/aid/34022/fid/616>
Martin Honnen - 15 Nov 2006 17:21 GMT
> Thanks, I know the problem now. But how can I change my code? Or do I
> need to change xsl document? How, for instance, I can address this
> <xsl:value-of
> select="/Primetime_Screening/Report/Chief_Complaint/Narrative" />?
Yes, you need to change the stylesheet, as described in
>> <http://www.faqts.com/knowledge_base/view.phtml/aid/34022/fid/616>
you need to bind a prefix to that namespace URI and use that prefix in
XPath expressions e.g.
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:ps="http://www.medicalhistory.com/PrimetimeScreening"
version="1.0">
<xsl:template match="/">
<xsl:value-of
select="/ps:Primetime_Screening/ps:Report/ps:Chief_Complaint/ps:Narrative"
/>
</xsl:template>
At least that is what I guess you have to do, you have only shown the
first line of your input XML.

Signature
Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/