|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Param Element
Ok, I have a slight dilemna in that the single param I am passing to my stylesheet is the exact copy of the xml source (all though maybe not). For sure the structure is the same and a good chance that a few new elements will exist in the param element. How do I merge the two ending up with the unique result of both of them? The good news is, I have a unique ID field. One other dilemna: in order for the transformation to not complain, I have to do a select on my parameter declerations which looks like: <xsl:param name="xm" select="/" /> But since the source is the exact same as the parameter xml, how does the select know which source to grab from? Also, the above causes an overflow when the below transformation is processed, but I need the top level element of the paramter, which is in_proc, so would it be correct to express select as: select="in_proc"? <xsl:output method="xml"/> <xsl:param name="xm" select="in_proc" /> <xsl:template match="/"> <in_proc> <xsl:apply-templates select="node() | @*"/> </in_proc> </xsl:template> <xsl:template match="node() | @*"> <xsl:copy> <xsl:apply-templates select="node() | @*"/> </xsl:copy> </xsl:template> </xsl:stylesheet>
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








