xsl-list
[Top] [All Lists]

Re: [xsl] using XSLT to replace @ref in XML schema

2010-10-07 02:31:18
Wolfgang,

something like

<xsl:template match="*[(_at_)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
Lösungen und Training, FrameScript, XML/XSL, Unicode
Blog: http://cap-studio.de/ - Tel. +49 (9131) 28747






--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>