cancel
Showing results for 
Search instead for 
Did you mean: 

XSLT Mapping: Insert href to other XSLT

Former Member
0 Kudos

Hi eevrybody,

we have an XSLT that generates an XML. The generated XML should have an reference to another XSLT.

With other words: The generated XML has to look like:

<?xml version="1.0" encoding="UTF-8"?>

<?xml-stylesheet type="text/xsl" href="X:\path\path\AnotherXSLT.xslt"?> // how do do that?

<ROOT> ......

How can we do that?

Thanks Regards Mario

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

no replies

Former Member
0 Kudos

Hi

Try

<xsl:processing-instruction name="xml-stylesheet">href="X:\path\path\AnotherXSLT.xslt" type="text/xml"</xsl:processing-instruction>

this should be deifned in the top level template e.g.

<xsl:template match="/">

<xsl:processing-instruction name="xml-stylesheet">href="X:\path\path\AnotherXSLT.xslt" type="text/xml"</xsl:processing-instruction>

</xsl:template>

Thanks

Damien