Click here to Skip to main content
16,005,149 members
Home / Discussions / XML / XSL
   

XML / XSL

 
GeneralRe: xsl:if and xsl:apply-template Pin
Christian Graus19-Jan-03 11:05
protectorChristian Graus19-Jan-03 11:05 
GeneralRe: xsl:if and xsl:apply-template Pin
Stephane Rodriguez.20-Jan-03 9:01
Stephane Rodriguez.20-Jan-03 9:01 
GeneralRe: xsl:if and xsl:apply-template Pin
Christian Graus20-Jan-03 11:42
protectorChristian Graus20-Jan-03 11:42 
Questionwhat is wrong with it Pin
karanba16-Jan-03 11:10
karanba16-Jan-03 11:10 
AnswerRe: what is wrong with it Pin
Christian Graus19-Jan-03 11:07
protectorChristian Graus19-Jan-03 11:07 
GeneralRe: what is wrong with it Pin
karanba19-Jan-03 20:40
karanba19-Jan-03 20:40 
GeneralRe: what is wrong with it Pin
Christian Graus19-Jan-03 22:42
protectorChristian Graus19-Jan-03 22:42 
GeneralXSL help !! Pin
$iva15-Jan-03 23:07
$iva15-Jan-03 23:07 
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

GeneralRe: XSL help !! Pin
Wictor Wilén22-Jan-03 21:44
Wictor Wilén22-Jan-03 21:44 
GeneralXML and my data Pin
Lim Wei-Hui15-Jan-03 21:28
Lim Wei-Hui15-Jan-03 21:28 
GeneralRe: XML and my data Pin
SimonS16-Jan-03 21:39
SimonS16-Jan-03 21:39 
GeneralRe: XML and my data Pin
Lim Wei-Hui19-Jan-03 13:48
Lim Wei-Hui19-Jan-03 13:48 
Generalquestion about libxml Pin
storein15-Jan-03 20:09
storein15-Jan-03 20:09 
GeneralRe: question about libxml Pin
Stephane Rodriguez.16-Jan-03 2:12
Stephane Rodriguez.16-Jan-03 2:12 
GeneralRe: question about libxml Pin
storein16-Jan-03 13:48
storein16-Jan-03 13:48 
GeneralRe: question about libxml Pin
Stephane Rodriguez.16-Jan-03 18:47
Stephane Rodriguez.16-Jan-03 18:47 
GeneralRe: question about libxml Pin
storein16-Jan-03 19:40
storein16-Jan-03 19:40 
GeneralRe: question about libxml Pin
Stephane Rodriguez.16-Jan-03 21:10
Stephane Rodriguez.16-Jan-03 21:10 
GeneralRe: question about libxml Pin
storein16-Jan-03 22:39
storein16-Jan-03 22:39 
GeneralRe: question about libxml Pin
Michael A. Barnhart17-Jan-03 0:49
Michael A. Barnhart17-Jan-03 0:49 
GeneralRe: question about libxml Pin
storein17-Jan-03 15:43
storein17-Jan-03 15:43 
GeneralRe: question about libxml Pin
Michael A. Barnhart17-Jan-03 17:34
Michael A. Barnhart17-Jan-03 17:34 
GeneralRe: question about libxml Pin
storein19-Jan-03 14:49
storein19-Jan-03 14:49 
Generalreading attributes Pin
karanba15-Jan-03 4:01
karanba15-Jan-03 4:01 
GeneralRe: reading attributes Pin
Stephane Rodriguez.15-Jan-03 6:41
Stephane Rodriguez.15-Jan-03 6:41 

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.