Subject: RE: [xsl] How can you turn off xslt reserved tags? From: "Michael Kay" <mike@xxxxxxxxxxxx> Date: Thu, 5 Jan 2006 09:41:14 -0000 |
Three points: (a) The only reserved element names in XSLT are names in the XSLT namespace. Using the local name param is no problem if it's in a different namespace. If you need to generate elements in the XSLT namespace there are ways of doing this (either use xsl:element, or use namespace aliasing), but I don't think you need this. (b) XSLT stylesheets must be well-formed XML documents. That means you can't have elements inside attributes. To construct the attribute value, use an AVT: value="{some/value}". (c) XSLT stylesheets must be well-formed XML documents. This means that the <param> start tag has to have a matching end tag. I'm not sure if this is a problem in your case as you only showed a snippet: but the answer to your stated wish "I don't want to have to make this well formed" is: you're out of luck. Michael Kay http://www.saxonica.com/ > -----Original Message----- > From: Cohen, Noah [mailto:noah.cohen@xxxxxxxxxx] > Sent: 05 January 2006 02:59 > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx > Subject: [xsl] How can you turn off xslt reserved tags? > > Hi, > > I'm using XSLT 1.0, using DOM to parse in my java app, and I have the > following issue: > > - parse XML file with XSL, output set to html > - one of my tags in my HTML will be for an applet, for example: > > <applet ...> > <param name="foo" value="bar"> > ... > </applet> > > - In XSL, param is a reserved tag. This is a problem because I don't > want to have to make this well formed. Not only that, XSLT processor > also complains about param tags in my XSL page that contain something > like the following: > > <param name="someName" value="<xsl:value-of select="some/value"/>"> > > XSL doesn't allow me to have a value-of tag nested here. > > Does anyone know how to turn XSL's param tag off - or how can I output > it to my own formatting and nested tags as shown above? > > Thx, > - Noah > > -------------------------------------------------------------- > ---------------- > This message is intended only for the personal and > confidential use of the designated recipient(s) named above. > If you are not the intended recipient of this message you are > hereby notified that any review, dissemination, distribution > or copying of this message is strictly prohibited. This > communication is for information purposes only and should not > be regarded as an offer to sell or as a solicitation of an > offer to buy any financial product, an official confirmation > of any transaction, or as an official statement of Lehman > Brothers. Email transmission cannot be guaranteed to be > secure or error-free. Therefore, we do not represent that > this information is complete or accurate and it should not be > relied upon as such. All information is subject to change > without notice. > -------- > IRS Circular 230 Disclosure: > Please be advised that any discussion of U.S. tax matters > contained within this communication (including any > attachments) is not intended or written to be used and cannot > be used for the purpose of (i) avoiding U.S. tax related > penalties or (ii) promoting, marketing or recommending to > another party any transaction or matter addressed herein.
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] How can you turn off xslt, Joe Fawcett | Thread | RE: [xsl] Input Filenames available, Agnisys |
Re: [xsl] Input Filenames available, George Cristian Bina | Date | RE: [xsl] Input Filenames available, Agnisys |
Month |