Subject: Re: [xsl] using XSLT to replace @ref in XML schema From: Michael Müller-Hillebrand <mmh@xxxxxxxxxxxxx> Date: Thu, 7 Oct 2010 09:31:02 +0200 |
Wolfgang, something like <xsl:template match="*[@ref != '']"> <xsl:apply-templates select="document(@ref)" /> </xsl:template> (did something similar yesterday with XSLT1, assuming @ref contains an URI) - Michael Am 07.10.2010 um 08:03 schrieb Wolfgang Laun: > Inspired by an issue on another list (JAXB), I'd like to ask whether > someone here has ever seen or heard about an XSLT replacing all the > @ref by their respective target? > > AFAIK, they are just shortcuts, and such a replacement shouldn't make > any difference. Also, an XSLT would be a simple way of doing this - > or am I missing something? > > (I'm *not* asking for a solution in code; don't waste your time, please.) > Thanks > -W > > PS: Sorry if this slightly off-topic. -- _______________________________________________________________ Michael M|ller-Hillebrand: Dokumentations-Technologie Adobe Certified Expert, FrameMaker Lvsungen und Training, FrameScript, XML/XSL, Unicode Blog: http://cap-studio.de/ - Tel. +49 (9131) 28747
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] using XSLT to replace @ref in, Wolfgang Laun | Thread | Re: [xsl] using XSLT to replace @re, Michael Kay |
[xsl] using XSLT to replace @ref in, Wolfgang Laun | Date | Re: [xsl] using XSLT to replace @re, Michael Kay |
Month |