Custom Style Sheet

R

Richard

I am trying to have make a view with a given style sheet ( .xsl ) file.
I have tried infopathdev link on this topic , with no luck !!




Please help..
 
R

Richard

Hi Greg,
Thanks for quick response,

I am working with a large xml document with a given xsl file, this allows
the document to be nicely viewed in word.

I have a web service that returns theses kind of documents, and rather than
relying on infopath's view , I want to attach it to the given xsl file for
viewing.

the .xsl file starts like this:

<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:n1="urn:hl7-org:v3"
xmlns:n2="urn:hl7-org:v3/meta/voc" xmlns:voc="urn:hl7-org:v3/voc"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<xsl:eek:utput method="html" indent="yes" version="4.01" encoding="ISO-8859-1"
doctype-public="-//W3C//DTD HTML 4.01//EN"/>
<!-- CDA document -->

<xsl:variable name="tableWidth">50%</xsl:variable>

<xsl:variable name="title">
<xsl:choose>
<xsl:when test="/n1:ClinicalDocument/n1:title">
<xsl:value-of select="/n1:ClinicalDocument/n1:title"/>
</xsl:when>
<xsl:eek:therwise>Clinical Document</xsl:eek:therwise>
</xsl:choose>
</xsl:variable>

<xsl:template match="/">
<xsl:apply-templates select="n1:ClinicalDocument"/>
</xsl:template>
.....
.....

....




I have provided the link :
<link href="myfile.xsl" rel="stylesheet" type="text/xsl"/>

as suggested below the last <style> element in the view.xsl .
and added the file as the resource.

I get no errors, but the view is unchanged.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top