Click here to Skip to main content
15,911,646 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralTHIS_FILE and __FILE__ Pin
-Dy15-Jan-03 23:56
-Dy15-Jan-03 23:56 
GeneralRe: THIS_FILE and __FILE__ Pin
Joaquín M López Muñoz16-Jan-03 0:03
Joaquín M López Muñoz16-Jan-03 0:03 
GeneralRe: THIS_FILE and __FILE__ Pin
Rage16-Jan-03 1:10
professionalRage16-Jan-03 1:10 
GeneralWindows Timing performance Pin
Geert Craessaerts15-Jan-03 23:36
Geert Craessaerts15-Jan-03 23:36 
GeneralRe: Windows Timing performance Pin
Joel Lucsy16-Jan-03 3:26
Joel Lucsy16-Jan-03 3:26 
GeneralCapture the Packet Pin
summo15-Jan-03 23:29
summo15-Jan-03 23:29 
GeneralCapture the Packet Pin
summo15-Jan-03 23:26
summo15-Jan-03 23:26 
GeneralXSL help !! Pin
$iva15-Jan-03 23:16
$iva15-Jan-03 23:16 
Hi All Smile | :)

I have an xml which is passed thru a sytlesheet and in the resultant file, two tags IDValue and IDScheme are not properly output.

Could you please help me out !

Thanks

<b>Enclosed - Source XML </b>

<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="C:\ExpressPrototypes\Chi Interface Prototype 2\XMLFiles\RegisterPatientResponse.xsl"?>
<gen:RegisterPatientResponse xmlns:gen="http://www.show.scot.nhs.uk/isd/General" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<!-- xsi:schemaLocation="http://www.show.scot.nhs.uk/isd/General CHIRegisterPatientResponse.xsd" -->
<!-- Contains standard patient response header and a patient body which contains the CHI Number -->
<gen:StandardPatientResponseHeader>
<gen:ReturnCode>SUCCESS</gen:ReturnCode>
<gen:ErrorCode>0001</gen:ErrorCode>
<gen:ErrorText/>
</gen:StandardPatientResponseHeader>
<!-- Standard patient response body containing the CHI Number -->
<gen:StandardRegisterPatientResponseBody>
<gen:PatientDetails>
<gen:PatientId>
<gen:IdValue>1601025017</gen:IdValue>
<gen:IdScheme>CHI</gen:IdScheme>
</gen:PatientId>
</gen:PatientDetails>
</gen:StandardRegisterPatientResponseBody>
</gen:RegisterPatientResponse>

<b>Enclosed Source XSL</b>

<?xml version="1.0" encoding="UTF-16"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:gen="http://www.show.scot.nhs.uk/isd/General" xmlns:req="http://www.isoftplc.com/Express/Chi/RegisterPatientResponse" xmlns:hdr="http://www.isoftplc.com/Express/Chi/Header" exclude-result-prefixes="gen hdr">
<xsl:output method="xml" indent="yes"/>
<xsl:template match="*">
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="text()|@*"/>
<xsl:template match="gen:RegisterPatientResponse">
<gen:RegisterPatientResponse>
<xsl:apply-templates/>
</gen:RegisterPatientResponse>
</xsl:template>
<xsl:template match="gen:StandardPatientResponseHeader">
<gen:StandardPatientResponseHeader>
<gen:ReturnCode>
<xsl:value-of select="./gen:ReturnCode"/>
</gen:ReturnCode>
<gen:ErrorCode>
<xsl:value-of select="./gen:ErrorCode"/>
</gen:ErrorCode>
<gen:ErrorText>
<xsl:value-of select="./gen:ErrorText"/>
</gen:ErrorText>
</gen:StandardPatientResponseHeader>
</xsl:template>
<xsl:template match="gen:StandardRegisterPatientResponseBody">
<gen:StandardRegisterPatientResponseBody>
<gen:PatientDetails>
<gen:PatientId>
<gen:IdValue>
<xsl:value-of select="./gen:IdValue"/>
</gen:IdValue>
<gen:IdScheme>
<xsl:value-of select="/gen:IdScheme"/>
</gen:IdScheme>
</gen:PatientId>
</gen:PatientDetails>
</gen:StandardRegisterPatientResponseBody>
</xsl:template>
</xsl:stylesheet>

The values IDValue and IDScheme are not properly output

GeneralShow ContextMenu of other window Pin
MaxiGroovy15-Jan-03 22:31
MaxiGroovy15-Jan-03 22:31 
GeneralRe: Show ContextMenu of other window Pin
Rage16-Jan-03 1:14
professionalRage16-Jan-03 1:14 
GeneralRe: Show ContextMenu of other window Pin
MaxiGroovy16-Jan-03 1:42
MaxiGroovy16-Jan-03 1:42 
GeneralRe: Show ContextMenu of other window Pin
Rage16-Jan-03 3:35
professionalRage16-Jan-03 3:35 
GeneralSemi transparent icons.. Pin
Luke Murray15-Jan-03 22:07
Luke Murray15-Jan-03 22:07 
GeneralPrintDlg Pin
15-Jan-03 21:45
suss15-Jan-03 21:45 
Generalparse xml Pin
storein15-Jan-03 20:26
storein15-Jan-03 20:26 
GeneralDisplaying errors 10s Pin
Ohaiyo15-Jan-03 19:38
Ohaiyo15-Jan-03 19:38 
QuestionHow can I get application path ? Pin
AhMan15-Jan-03 18:23
AhMan15-Jan-03 18:23 
AnswerRe: How can I get application path ? Pin
Mazdak15-Jan-03 19:45
Mazdak15-Jan-03 19:45 
AnswerRe: How can I get application path ? Pin
Mazdak15-Jan-03 20:55
Mazdak15-Jan-03 20:55 
AnswerRe: How can I get application path ? Pin
Rage16-Jan-03 1:25
professionalRage16-Jan-03 1:25 
Generalplease help .... Pin
joshfl15-Jan-03 17:41
joshfl15-Jan-03 17:41 
GeneralRe: please help .... Pin
Christian Graus15-Jan-03 18:10
protectorChristian Graus15-Jan-03 18:10 
GeneralRe: please help .... Pin
Rage16-Jan-03 1:06
professionalRage16-Jan-03 1:06 
GeneralRe: please help .... Pin
kapil Patry16-Jan-03 1:57
kapil Patry16-Jan-03 1:57 
GeneralRe: please help .... Pin
joshfl16-Jan-03 3:27
joshfl16-Jan-03 3:27 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.